aredn icon indicating copy to clipboard operation
aredn copied to clipboard

Channel 6 disallowed for 2GHz LAN AP mode

Open ab7pa opened this issue 3 years ago • 3 comments

As reported in the AREDN forum, several people are having issues with the LAN Access Point failing if they use the 2GHz radio on channel 6. The issue appears across hardware vendors (GL.iNet, Mikrotik, Ubiquiti). The issue first appeared in release 3.22.6.0. Firmware 3.22.1.0 does not exhibit the issue.

hostapd correctly starts and runs on all other channels, but the attached file shows the logread messages for hostapd when using channel 6. There are some messages in the OpenWRT forum about disallowed channels, but nothing specific to our issue of using all channels except channel 6. hostapd-logread.txt

ab7pa avatar Aug 30 '22 14:08 ab7pa

in the log file: "IEEE 802.11 Configured channel (6) not found from the channel list of current mode (1) IEEE 802.11g" What is unusual is that we want the AP to be using 802.11n mode, then revert if 1 of the multiple connecting clients is only 802.11g. Nothing in the AREDN patches appears to impact the use of ch 6 -- it's in the middle of all the regulatory and country code settings. Wild guess, but I'd test by removing 'htmode' and/or 'hwmode' options, to fallback to a default, and see what happens. Remove from /etc/config/wireless and reboot (this is the section on an hap ac lite where 2GHz is radio1):

config wifi-device 'radio1' option type 'mac80211' option disabled '0' option channel '6' option hwmode '11g' option htmode 'HT20' option path 'platform/qca953x_wmac'

Also what does this output look like on a node that fails? "iw reg get"

ae6xe avatar Aug 30 '22 22:08 ae6xe

Good thoughts. I removed both the hwmode and htmode options from /etc/config/wireless and rebooted. Same behavior with channel 6 not allowed and hostapd disabled.

iw reg get for 2.4ghz = (2400 - 2472 @ 40), (N/A, 30), (N/A)

When I look at the auto-generated hostapd-phy0.conf file it seems to have defaulted to hw_mode=g even without specifying it in /etc/config/wireless. Even if I try forcing it to '11n' via /etc/config/wireless, it still defaults to 11g mode.

ab7pa avatar Aug 31 '22 00:08 ab7pa

This is related to: https://github.com/aredn/aredn/issues/39. When we added 2 more channels (-3 and -4), the symptoms shifted 2 channels from 8 down to 6 (note the correlation of adding 2 channels and shifting symptoms down 2 channels). Good chance I found the code that needs updated that explains this.

ae6xe avatar Sep 05 '22 01:09 ae6xe

@ae6xe didn't this get fixed already?

dman776 avatar Dec 22 '22 16:12 dman776

I just tested this again. All 2.4ghz LAN AP channels are usable EXCEPT for channel 6. Channel 6 is not available when using 2.4ghz LAN AP.

ab7pa avatar Dec 22 '22 16:12 ab7pa

Ch 6 failure still exists that I know. Note, before adding ch -3 and -4, Ch 8 was failing. Might still be an open issue on ch 8?

Adding 2 channels, and then symptoms shifting 2 channels is interesting, maybe a clue to root cause.

ae6xe avatar Dec 27 '22 18:12 ae6xe

@ae6xe @aanon4 did we fix this?

dman776 avatar Apr 19 '23 02:04 dman776

Not knowingly unless it got fixed by the latest openwrt version.

aanon4 avatar Apr 19 '23 03:04 aanon4

This is very easy to test. I'll test it again tomorrow after our family visitors are gone.

ab7pa avatar Apr 19 '23 03:04 ab7pa

Channel 6 appears to be working when the 2.4ghz radio is configured as a LAN AP on my AR750. I now see it in the list of wifi APs on a couple of my 2.4ghz wifi devices in the shack. THX

ab7pa avatar Apr 19 '23 14:04 ab7pa