core
core copied to clipboard
Wireless issues - WLE200NX (Atheros AR9280) - no 5Ghz option
- [x ] I have read the contributing guide lines at https://github.com/opnsense/core/blob/master/CONTRIBUTING.md
- [x ] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue
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:
- Interfaces: Wireless: Devices -> add new device
- Interfaces: Assignments -> assign the new wireless device
- A new interface is created : 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.
root@OPNsense:/ # ifconfig ath0_wlan1 mode 11na
root@OPNsense:/ # ifconfig ath0_wlan1 channel 36:ht/20
root@OPNsense:/ # ifconfig
ath0_wlan1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
description: OPT1
ether 01:01:01:01:01:01
inet6 ee00::0000:0000:0000:00ee%ath0_wlan1 prefixlen 64 scopeid 0x8
groups: wlan
ssid bartolo channel 36 (5180 MHz 11a ht/40+) bssid 00:00:00:00:00:00
regdomain FCC country US ecm authmode WPA privacy MIXED deftxkey 3
TKIP 2:128-bit TKIP 3:128-bit txpower 17 mcastrate 6 mgmtrate 6
scanvalid 60 ampdulimit 64k ampdudensity 8 shortgi -ldpc -uapsd wme
burst -apbridge dtimperiod 1 -dfs
parent interface: ath0
media: IEEE 802.11 Wireless Ethernet autoselect mode 11na
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 :(