nl80211: Beacon set failed: -16 (Device or resource busy)

Sourav sourav.chakraborty at netcommwireless.com
Mon Nov 17 19:35:37 EST 2014


I am getting the following error on trying to run hostapd --
Can you suggest how to fix this


root:/tmp/cdcs/etc# hostapd -B hostapd.conf -dddd
random: Trying to read entropy from /dev/urandom
Configuration file: hostapd.conf
ctrl_interface_group=0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Using driver-based off-channel TX
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 9 iftype 3 (AP)
nl80211: Setup AP(wlan0) - device_ap_sme=0 use_monitor=1
nl80211: Create interface iftype 6 (MONITOR)
nl80211: New interface mon.wlan0 created: ifindex=173
nl80211: Add own interface ifindex 173
nl80211: if_indices[16]: 173
nl80211: Add own interface ifindex 7
nl80211: if_indices[16]: 173 7
nl80211: Add own interface ifindex 9
nl80211: if_indices[16]: 173 7 9
phy: phy0
BSS count 2, BSSID mask 00:00:00:00:00:02 (1 bits)
wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Previous country code AU, new country code AU
nl80211: Regulatory information - country=AU
nl80211: 2402-2482 @ 40 MHz 0 mBm
nl80211: 5170-5250 @ 80 MHz 0 mBm
nl80211: 5250-5330 @ 80 MHz 0 mBm
nl80211: 5490-5710 @ 80 MHz 0 mBm
nl80211: 5735-5835 @ 80 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=12 freq=2467 MHz max_tx_power=0 dBm
Allowed channel: mode=1 chan=13 freq=2472 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=12 freq=2467 MHz max_tx_power=0 dBm
Allowed channel: mode=0 chan=13 freq=2472 MHz max_tx_power=0 dBm
HT40: control channel: 11  secondary channel: 7
Completing interface initialization
Mode: IEEE 802.11g  Channel: 11  Frequency: 2462 MHz
DFS 0 channels required radar detection
nl80211: Set freq 2462 (ht_enabled=1, vht_enabled=0, bandwidth=40 MHz, 
cf1=2452 MHz, cf2=0 MHz)
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
hostapd_setup_bss(hapd=0x95690 (wlan0), first=1)
wlan0: Flushing old station entries
nl80211: flush -> DEL_STATION wlan0 (all)
wlan0: Deauthenticate all stations
nl80211: send_mlme - noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 
fc=0xc0 nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=2462
nl80211: send_frame(freq=2462 bss->freq=2462) -> send_mntr
wpa_driver_nl80211_set_key: ifindex=9 (wlan0) alg=0 addr=(nil) key_idx=0 
set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=9 (wlan0) alg=0 addr=(nil) key_idx=1 
set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=9 (wlan0) alg=0 addr=(nil) key_idx=2 
set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=9 (wlan0) alg=0 addr=(nil) key_idx=3 
set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr 00:60:64:e7:e9:60 and ssid "NetComm 2500"
Deriving WPA PSK based on passphrase
SSID - hexdump_ascii(len=12):
      4e 65 74 43 6f 6d 6d 20 32 35 30 30               NetComm 2500
PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
random: Got 20/20 bytes from /dev/urandom
Get randomness: len=32 entropy=0
random from os_get_random - hexdump(len=32): [REMOVED]
random_mix_pool - hexdump(len=20): [REMOVED]
random from internal pool - hexdump(len=16): [REMOVED]
random_mix_pool - hexdump(len=20): [REMOVED]
random from internal pool - hexdump(len=16): [REMOVED]
mixed random - hexdump(len=32): [REMOVED]
GMK - hexdump(len=32): [REMOVED]
Get randomness: len=32 entropy=0
random from os_get_random - hexdump(len=32): [REMOVED]
random_mix_pool - hexdump(len=20): [REMOVED]
random from internal pool - hexdump(len=16): [REMOVED]
random_mix_pool - hexdump(len=20): [REMOVED]
random from internal pool - hexdump(len=16): [REMOVED]
mixed random - hexdump(len=32): [REMOVED]
Key Counter - hexdump(len=32): [REMOVED]
WPA: Delay group state machine start until Beacon frames have been 
configured
nl80211: Set beacon (beacon_set=0)
nl80211: Beacon head - hexdump(len=63): 80 00 00 00 ff ff ff ff ff ff 00 
60 64 e7 e9 60 00 60 64 e7 e9 60 00 00 00 00 00 00 00 00 00 00 64 00 11 
04 00 0c 4e 65 74 43 6f 6d 6d 20 32 35 30 30 01 08 82 84 8b 96 0c 12 18 
24 03 01 0b
nl80211: Beacon tail - hexdump(len=119): 2a 01 04 32 04 30 48 60 6c 30 
14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00 2d 1a ee 
02 13 ff ff 00 00 01 00 00 00 00 00 00 00 07 00 00 00 00 00 00 00 00 00 
00 3d 16 0b 07 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 7f 08 00 00 00 00 00 00 00 40 dd 18 00 50 f2 02 01 01 00 00 03 a4 00 
00 27 a4 00 00 42 43 5e 00 62 32 2f 00
nl80211: ifindex=9
nl80211: beacon_int=100
nl80211: dtim_period=2
nl80211: ssid - hexdump_ascii(len=12):
      4e 65 74 43 6f 6d 6d 20 32 35 30 30               NetComm 2500
nl80211: hidden SSID not in use
nl80211: privacy=1
nl80211: auth_algs=0x1
nl80211: wpa_version=0x2
nl80211: key_mgmt_suites=0x2
nl80211: pairwise_ciphers=0x10
nl80211: group_cipher=0x10
nl80211: beacon_ies - hexdump(len=10): 7f 08 00 00 00 00 00 00 00 40
nl80211: proberesp_ies - hexdump(len=10): 7f 08 00 00 00 00 00 00 00 40
nl80211: assocresp_ies - hexdump(len=10): 7f 08 00 00 00 00 00 00 00 40
*nl80211: Beacon set failed: -16 (Device or resource busy)*
Failed to set beacon parameters
Interface initialization failed
wlan0: interface state COUNTRY_UPDATE->DISABLED
wlan0: AP-DISABLED
wlan0: Unable to setup interface.
hostapd_interface_deinit_free(0x932c8)
hostapd_interface_deinit_free: num_bss=2 conf->num_bss=2
hostapd_interface_deinit(0x932c8)
hostapd_bss_deinit: deinit bss wlan1
wlan0: Deauthenticate all stations
nl80211: send_mlme - noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 
fc=0xc0 nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=2462
nl80211: send_frame(freq=2462 bss->freq=2462) -> send_mntr
hostapd_cleanup(hapd=0x95ca0 (wlan1))
hostapd_free_hapd_data: Interface wlan1 wasn't started
hostapd_bss_deinit: deinit bss wlan0
wlan0: Deauthenticate all stations
nl80211: send_mlme - noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 
fc=0xc0 nlmode=3
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=2462
nl80211: send_frame(freq=2462 bss->freq=2462) -> send_mntr
hostapd_cleanup(hapd=0x95690 (wlan0))
hostapd_free_hapd_data(wlan0)
hostapd_interface_deinit_free: driver=0x769c4 drv_priv=0x964c8 -> 
hapd_deinit
nl80211: Remove monitor interface: refcount=0
nl80211: Remove interface ifindex=173
nl80211: if_indices[16]: 7 9
nl80211: Remove beacon (ifindex=9)
netlink: Operstate: ifindex=9 linkmode=0 (kernel-control), operstate=6 
(IF_OPER_UP)
hostapd_interface_free(0x932c8)
hostapd_interface_free: free hapd 0x95690
hostapd_interface_free: free hapd 0x95ca0
hostapd_cleanup_iface(0x932c8)
hostapd_cleanup_iface_partial(0x932c8)
hostapd_cleanup_iface: free iface=0x932c8
root:/tmp/cdcs/etc#

-- 
Warm Regards,
Sourav



______________________________________________________________________
This communication contains information which may be confidential or privileged. The information is intended solely for the use of the individual or entity named above.  If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.  If you have received this communication in error, please notify me by telephone immediately.
______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20141118/a3303894/attachment.htm>


More information about the HostAP mailing list