hostapd hangs after "nl80211: Set beacon (beacon_set=0)"

Jue gc_hostapd at jfitschen.de
Wed Jan 30 13:03:13 EST 2013


Hi,

I'm trying to setup an access point with a "Raspberry Pi". I'm using a
wireless adapter with "Atheros AR9287" chipset. When starting hostapd
the initialization hangs after "nl80211: Set beacon (beacon_set=0)".
Aborting is not possible by pressing Ctrl+C. "ifconfig" doesn't response
as well. The process can only be aborted by unplugging the wireless adapter.

I tried using another wireless adapter ("Atheros AR9287" chipset as
well) and reinstalled the OS. Same problem.

uname -a:
> Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux

dmesg:
> [ 3350.737315] usb 1-1.3: new high-speed USB device number 6 using dwc_otg
> [ 3350.838875] usb 1-1.3: New USB device found, idVendor=0cf3, idProduct=7015
> [ 3350.838906] usb 1-1.3: New USB device strings: Mfr=16, Product=32, SerialNumber=48
> [ 3350.838923] usb 1-1.3: Product: USB WLAN
> [ 3350.838935] usb 1-1.3: Manufacturer: ATHEROS
> [ 3350.838987] usb 1-1.3: SerialNumber: 12345
> [ 3351.039179] usb 1-1.3: ath9k_htc: Transferred FW: htc_7010.fw, size: 72992
> [ 3351.101429] ath9k_htc 1-1.3:1.0: ath9k_htc: HTC initialized with 45 credits
> [ 3351.270418] ath9k_htc 1-1.3:1.0: ath9k_htc: FW Version: 1.3
> [ 3351.270446] ath: EEPROM regdomain: 0x809c
> [ 3351.270456] ath: EEPROM indicates we should expect a country code
> [ 3351.270471] ath: doing EEPROM country->regdmn map search
> [ 3351.270484] ath: country maps to regdmn code: 0x52
> [ 3351.270499] ath: Country alpha2 being used: CN
> [ 3351.270509] ath: Regpair used: 0x52
> [ 3351.284908] ieee80211 phy1: Atheros AR9287 Rev:2
> [ 3351.286266] Registered led device: ath9k_htc-phy1
> [ 3351.286295] usb 1-1.3: ath9k_htc: USB layer initialized

hostapd.conf:
> interface=wlan0
> driver=nl80211
> logger_syslog=-1
> logger_syslog_level=2
> logger_stdout=-1
> logger_stdout_level=2
> dump_file=/tmp/hostapd.dump
> ctrl_interface=/var/run/hostapd
> ctrl_interface_group=0
> ssid=test
> hw_mode=g
> channel=1
> beacon_int=100
> dtim_period=2
> max_num_sta=255
> rts_threshold=2347
> fragm_threshold=2346
> macaddr_acl=0
> auth_algs=3
> ignore_broadcast_ssid=0
> wpa=2
> wpa_passphrase=secret passphrase

hostapd -dd:
> random: Trying to read entropy from /dev/random
> Configuration file: /etc/hostapd/hostapd.conf
> ctrl_interface_group=0
> nl80211: interface wlan0 in phy phy3
> rfkill: Cannot open RFKILL control device
> nl80211: RFKILL status not available
> nl80211: Using driver-based off-channel TX
> nl80211: Add own interface ifindex 10
> nl80211: Set mode ifindex 10 iftype 3 (AP)
> nl80211: Create interface iftype 6 (MONITOR)
> nl80211: New interface mon.wlan0 created: ifindex=11
> nl80211: Add own interface ifindex 11
> BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
> nl80211: Regulatory information - country=00
> nl80211: 2402-2472 @ 40 MHz
> nl80211: 2457-2482 @ 20 MHz
> nl80211: 2474-2494 @ 20 MHz
> nl80211: 5170-5250 @ 40 MHz
> nl80211: 5735-5835 @ 40 MHz
> nl80211: Added 802.11b mode based on 802.11g information
> Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
> Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
> Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
> Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
> Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
> Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
> Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
> Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
> Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
> Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
> Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
> Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
> Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
> Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
> Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
> Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
> Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
> Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
> Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
> Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
> Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
> Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
> Completing interface initialization
> Mode: IEEE 802.11g  Channel: 1  Frequency: 2412 MHz
> nl80211: Set freq 2412 (ht_enabled=0 sec_channel_offset=0)
> 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
> Flushing old station entries
> Deauthenticate all stations
> wpa_driver_nl80211_set_key: ifindex=10 alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
> wpa_driver_nl80211_set_key: ifindex=10 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
> wpa_driver_nl80211_set_key: ifindex=10 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
> wpa_driver_nl80211_set_key: ifindex=10 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
> Using interface wlan0 with hwaddr 64:70:02:21:10:20 and ssid 'test'
> Deriving WPA PSK based on passphrase
> SSID - hexdump_ascii(len=4):
>      74 65 73 74                                       test            
> PSK (ASCII passphrase) - hexdump_ascii(len=17): [REMOVED]
> PSK (from passphrase) - hexdump(len=32): [REMOVED]
> random: Got 20/20 bytes from /dev/random
> Get randomness: len=32 entropy=0
> GMK - hexdump(len=32): [REMOVED]
> Get randomness: len=32 entropy=0
> Key Counter - hexdump(len=32): [REMOVED]
> WPA: Delay group state machine start until Beacon frames have been configured
> VLAN: vlan_set_name_type(name_type=2)
> nl80211: Set beacon (beacon_set=0)

Does anyone here have an idea how to solve this problem?


Thanks a lot,
Jue


More information about the HostAP mailing list