-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wireless issues - WLE200NX (Atheros AR9280) - no 5Ghz option #5765
Comments
This issue has been automatically timed-out (after 180 days of inactivity). For more information about the policies for this repository, If someone wants to step up and work on this issue, |
@adamast0r how about 23a6d680db instead? I looked at the page and it's a bit unfortunate that it can select a standard and a mismatching channel. I suppose we could prevent that in validation, but for now I've just made it more visible in the channel selection. |
That looks good, I can confirm it displayed correctly after I patched the interfaces.php file... I know wireles is probably not a priority on opnsense but since your are improving the code why not allowing the user to submit also the channel width (HT) on that dropbox or by creating other drop box ? This is the ifconfig command you are extracting the info:
The channel width could be displayed using the -v flag:
The options on my specific card seem to be (ht/20, ht/40+, ht/40-), I am currently configuring this with a external bash script:
|
@adamast0r that sounds like a plan. my proposal:
agreed? If you don't mind can you make a ticket for step 2 with all the info you posted here that would be lovely. Cheers, |
@fichtner thanks for you work into fixing this problem, that sounds like a good plan. I have created the new ticket for the improvement. Like I mentioned in the ticket my WLE200NX (Atheros AR9280) crashes with specific channel width configurations (ht/20), what is the best way for reporting/fixing in freeBSD? should I bother to report this upstream or are we moving soon to freeBSD 14 and I it is probably better to wait and see if the same happens there? |
@adamast0r can you try skimming https://bugs.freebsd.org/bugzilla/ first for similar issues? I'm discussing with FreeBSD when and how to make upstream tickets so we may have to test against a "clean" kernel from their code state (e.g. 13.2-RELEASE) beforehand. I can also look for patches in the source code if you give me a bit of time. Typically we only try to be up to date with wired drivers but maybe something was already fixed for this one. |
@fichtner I spend some time already searching for similar bugs but I can't find any that looks similar. While I was convinced that the bug was related with 5Ghz with ht/20 it already crashed with ht/40 also. The crash happens sometimes when I configure the card:
If it does not crash after 5 min it keeps working without any issues., the problem is that it seems there is a high probability it will crash. Of course this might mean that there is a crash boot loop, because it will setup wireless and crash again.
Happy to raise other ticket with these details if it is easier to track... |
@adamast0r I looked at what stable/13 branch had to offer and it comes up completely empty in this regard. Not too surprising since we use 13.2 so all that was on stable/13 we already have WRT fixes available. stable/14 and main branches are not too promising either but at least have a bunch of changes to them, but not specific fixes for the issue describe here. It doesn't look like it's being actively worked on at the moment. |
@fichtner thanks for checking, what would be the next step, openning a new bug with freeBSD regarding this? |
What we could do is try a debug kernel first and get a backtrace of the panic. Do you have a textdump available already from a previous crash? I'd briefly look at the code, see if a fix exists in that area and try that out otherwise we'd move to a FreeBSD 13.2 debug kernel and reproduce there to make a report over at FreeBSD. |
I am assuming this will be the relevant kernel message you are looking for:
I don't see anything anything else relevant on the textdump but let me know if you need the tar file. |
Pretty interesting... the Internet can't find this particular panic... but it gives a number of hints here: Both this file and the other end
seem to indicate a passed pointer is NULL and from previous issues/fixes in other drivers you can see that it is most likely the mbuf: So we could try a simple patch first before making this too complicated. |
thanks for checking, that last commit fix type looks very plausible to me (without being an expert) to be able to fix the issue. I am happy to test any kernel patches when you have time to supply them. |
@fichtner I just noticed that this ticket was closed, should I create a new ticket for that patch related with the atheros wireless driver? |
#6967 still good and this channel thing was a bug and fixed. 😊 |
Oh sorry you mean for the src.git. Let me give you a test kernel and see what happens tomorrow. |
@fichtner I created other ticket (opnsense/src#190) only related with the wireless driver crash so it is easy to track the issue, I hope that is not a problem... |
Describe the bug
When using a very supported wireless card (WLE200NX (Atheros AR9280) in AP mode I cannot select 802.11NA to allow channel 36 in 5Ghz.
To Reproduce
Steps to reproduce the behavior:
3.1 in the " Standard" there is only 802.11B, 802.11GN 802.11N
3.2 In the channel there are only 2.4GHz channels
Expected behavior
The wireless card supports the 802.11NA. I want to select channel 36, no 5GHz channels are there.
The wireless card works fine after this.
Describe alternatives you considered
I tried to modify the wireless configuration directly to restore a config file where I changed the:
<wireless>
<mode>hostap</mode>
<standard>11na</standard>
....
<channel>36</channel>
</wireless>
However it didn't work, since I don't have any other 5GHz card I also cannot confirm if the config was fully correct for 5Ghz.
By running the following script at boot it seems to work, but not sure how reliable is long term?
/usr/local/etc/rc.syshook.d/start/96-wireless-5GHz-hack
ifconfig ath0_wlan1 down;ifconfig ath0_wlan2 down; ifconfig ath0_wlan3 down;
ifconfig ath0_wlan1 mode 11na; ifconfig ath0_wlan2 mode 11na; ifconfig ath0_wlan3 mode 11na
ifconfig ath0_wlan1 channel 36:ht/20; ifconfig ath0_wlan2 channel 36:ht/20; ifconfig ath0_wlan3 channel 36:ht/20
ifconfig ath0_wlan1 up;ifconfig ath0_wlan2 up; ifconfig ath0_wlan3 up;
in the end this should be fixed in the web interface. If there is other option I am happy to try it.
Screenshots
Environment
OPNsense OPNsense-22.1.2L (amd64, OpenSSL).
PCengines APU2 with WLE200NX a/b/g/n wireless card - https://www.pcengines.ch/wle200nx.htm
Update 22/06/2022
I can confirm the script works long term however don't try to change wireless configurations in the web interface after running the script.
Just tried to do "wireless" -> "devices" -> "add" and I got an infinite crash loop and had to reinstall :(
Update 26/10/2023
I have updated to opnsense 23.11 and it seems the channel 36:ht/20 config now was crashing, but it seems that 36:ht/40 works fine:
ifconfig ath0_wlan1 channel 36:ht/40; ifconfig ath0_wlan2 channel 36:ht/40; ifconfig ath0_wlan3 channel 36:ht/40
The text was updated successfully, but these errors were encountered: