#20179: ieee80211w option rejected by hostapd
---------------------------+----------------------------------
Reporter: simon.vetter | Owner: developers
Type: defect | Status: closed
Priority: normal | Milestone: Chaos Calmer (trunk)
Component: base system | Version: Trunk
Resolution: fixed | Keywords:
---------------------------+----------------------------------
Comment (by anonymous):
Hey,
i try to get the 802.11w aka Authenticated Management Frames working.
I use the current chaos calmer branch (commit
a83b8bd5fd94b1c2c4f4f89eafebe98f5e572366)
The router is a Tp-Link WR1043ND Version 1.
I build the firmware with built-in hostapd-full package.
I insert this manually: https://dev.openwrt.org/changeset/46737
But as soon as I add this line into /etc/config/wireless
option ieee80211w '1'
and restart wifi/router, WiFi isn't available.
the syslog shows:
{{{
Sat Aug 29 14:40:07 2015 daemon.info procd: - init complete -
Sat Aug 29 14:40:07 2015 daemon.notice netifd: radio0 (1630): 20/40 MHz
operation not permitted on channel pri=9 sec=13 based on overlapping BSSes
Sat Aug 29 14:40:07 2015 daemon.notice netifd: radio0 (1630): Using
interface wlan0 with hwaddr 90:f6:52:dc:16:80 and ssid "TP-WR1043ND"
Sat Aug 29 14:40:09 2015 user.notice root: starting ntpclient
Sat Aug 29 14:40:09 2015 daemon.notice netifd: radio0 (1630): WPS:
Converting push_button to virtual_push_button for WPS 2.0 compliance
Sat Aug 29 14:40:09 2015 kern.info kernel: [ 44.560000] br-lan: port
2(wlan0) entered forwarding state
Sat Aug 29 14:40:09 2015 kern.info kernel: [ 44.560000] br-lan: port
2(wlan0) entered forwarding state
Sat Aug 29 14:40:09 2015 kern.info kernel: [ 44.570000] IPv6:
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Sat Aug 29 14:40:09 2015 daemon.notice netifd: radio0 (1630): Interface
initialization failed
Sat Aug 29 14:40:09 2015 daemon.notice netifd: radio0 (1630): wlan0:
interface state HT_SCAN->DISABLED
Sat Aug 29 14:40:09 2015 daemon.notice netifd: radio0 (1630): wlan0: AP-
DISABLED
Sat Aug 29 14:40:09 2015 daemon.notice netifd: radio0 (1630): wlan0:
interface state DISABLED->DISABLED
Sat Aug 29 14:40:09 2015 daemon.notice netifd: radio0 (1630): wlan0: AP-
DISABLED
Sat Aug 29 14:40:09 2015 daemon.notice netifd: radio0 (1630):
hostapd_free_hapd_data: Interface wlan0 wasn't started
Sat Aug 29 14:40:09 2015 daemon.notice netifd: radio0 (1630): nl80211:
deinit ifname=wlan0 disabled_11b_rates=0
Sat Aug 29 14:40:10 2015 kern.info kernel: [ 44.590000] device wlan0
left promiscuous mode
Sat Aug 29 14:40:10 2015 kern.info kernel: [ 44.600000] br-lan: port
2(wlan0) entered disabled state
Sat Aug 29 14:43:56 2015 daemon.notice netifd: radio0 (1630): ELOOP:
remaining socket: sock=18 eloop_data=0xb78a70 user_data=(nil)
handler=0x418661
Sat Aug 29 14:43:56 2015 daemon.notice netifd: radio0 (1630): cat: can't
open '/var/run/wifi-phy0.pid': No such file or directory
Sat Aug 29 14:43:56 2015 daemon.notice netifd: radio0 (1630): Command
failed: Invalid argument
Sat Aug 29 14:43:56 2015 kern.info kernel: [ 45.200000] IPv6:
ADDRCONF(NETDEV_UP): wlan0: link is not ready
Sat Aug 29 14:43:57 2015 kern.info kernel: [ 45.580000] device wlan0
entered promiscuous mode
}}}
my try to start hostapd manually (fake MAC):
{{{
root@TP-WR1043ND:~# hostapd -P /var/run/wifi-phy0.pid /var/run/hostapd-
phy0.conf
Configuration file: /var/run/hostapd-phy0.conf
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
ACS: Automatic channel selection started, this may take a bit
wlan0: interface state COUNTRY_UPDATE->ACS
wlan0: ACS-STARTED
wlan0: ACS-COMPLETED freq=2447 channel=8
wlan0: interface state ACS->HT_SCAN
20/40 MHz operation not permitted on channel pri=8 sec=12 based on
overlapping BSSes
Using interface wlan0 with hwaddr 90:XX:XX:XX:XX:XX and ssid "TP-WR1043ND"
WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance
Interface initialization failed
wlan0: interface state HT_SCAN->DISABLED
wlan0: AP-DISABLED
wlan0: interface state DISABLED->DISABLED
wlan0: AP-DISABLED
hostapd_free_hapd_data: Interface wlan0 wasn't started
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
ELOOP: remaining socket: sock=13 eloop_data=0x5aaa18 user_data=(nil)
handler=0x418661
}}}
If you comment the 80211w part:
{{{
root@TP-WR1043ND:~# vim /etc/config/wireless
root@TP-WR1043ND:~# vim /var/run/hostapd-phy0.conf
root@TP-WR1043ND:~# hostapd -P /var/run/wifi-phy0.pid /var/run/hostapd-
phy0.conf
Configuration file: /var/run/hostapd-phy0.conf
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
ACS: Automatic channel selection started, this may take a bit
wlan0: interface state COUNTRY_UPDATE->ACS
wlan0: ACS-STARTED
wlan0: ACS-COMPLETED freq=2452 channel=9
wlan0: interface state ACS->HT_SCAN
20/40 MHz operation not permitted on channel pri=9 sec=13 based on
overlapping BSSes
Using interface wlan0 with hwaddr 90:XX:XX:XX:XX:XX and ssid "TP-WR1043ND"
WPS: Converting push_button to virtual_push_button for WPS 2.0 compliance
wlan0: interface state HT_SCAN->ENABLED
wlan0: AP-ENABLED
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/20179#comment:11>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets