OpenWrt Forum Archive

Topic: 11b mode is not working in AR9331

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Dear Community, I'm trying to configure AR9331 in DESIGNATED DRIVER (Bleeding Edge, 50104) for 11b mode and it fails during driver initialization. Below are the wireless settings and the kernel logs. Any help on this matter is highly appreciated.

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '11'
        option path 'platform/ar933x_wmac'
        option htmode 'HT20'
        option hwmode '11b'
        option disabled '0'

config wifi-iface
        option device 'radio0'
        option mode 'ap'
        option network 'wifi'
        option encryption 'psk2'
        option ssid 'RECOIL_BS'
        option key 'recoil123'



Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): Configuration file: /var/run/hostapd-phy0.conf
Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): HT (IEEE 802.11n) in 11b mode is not allowed, disabling HT capabilities
Sun Feb  5 12:08:17 2017 kern.info kernel: [   23.650764] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): Driver does not support configured HT capability [SHORT-GI-20]
Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): wlan0: interface state UNINITIALIZED->DISABLED
Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): wlan0: AP-DISABLED
Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): wlan0: Unable to setup interface.
Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): wlan0: interface state DISABLED->DISABLED
Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): wlan0: AP-DISABLED
Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): hostapd_free_hapd_data: Interface wlan0 wasn't started
Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): cat: can't open '/var/run/wifi-phy0.pid': No such file or directory
Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): Command failed: Invalid argument
Sun Feb  5 12:08:17 2017 daemon.notice netifd: radio0 (846): Device setup failed: HOSTAPD_START_FAILED

The driver should fall back to accept a b client in any mode. 

If you want to constrain the radio's operation to only the 11b mode-- not sure why you would-- but you can:
* set hwmode '11b'
* do not have any htmode line

Note that most b-only client devices were made before WPA existed, so they don't support it.

(Last edited by mk24 on 31 Mar 2017, 15:55)

The discussion might have continued from here.