802.11n ht connects then disconnects
Daniel Havey
dhavey
Tue Apr 3 20:10:37 PDT 2012
I must be misunderstanding something here.
I'm using auth_algs=1 and wpa=0, just for testing but my hostapd starts a RADIUS accounting session then disconnects. I don't get it.
I get:
AP-STA-CONNECTED
MLME-ASSOCIATE.indication
MLME-DELETEKEYS.request
RADIUS: starting accounting session
nl80211: Event message available
nl80211: Ignored unknown event (cmd=19)
mgmt::deauth
deauthentication: STA=00:0b:6b:b1:20:14 reason_code=3
AP-STA-DISCONNECTED
Why does it need the RADIUS server if everything is open? Reason code 3 means that the client disconnected? Why? Hmmmm...
Is there something wrong with my driver? It seems like it's compiled okay. All the ht stuff is compiled in.
Is there something wrong with my hostapd.conf? I'm confused %^)
thanxs ;^)
...Daniel
Here is the output from hostapd:
Configuration file: hostapd.conf
ctrl_interface_group=0
nl80211: Register Action command failed: ret=-114 (Operation already in progress)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 5
nl80211: New interface mon.wlan0 created: ifindex=18
nl80211: Add own interface ifindex 18
nl80211: Add own interface ifindex 19
nl80211: Adding interface wlan0 into bridge br0
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Added 802.11b mode based on 802.11g information
RATE[0] rate=60 flags=0x1
RATE[1] rate=90 flags=0x0
RATE[2] rate=120 flags=0x1
RATE[3] rate=180 flags=0x0
RATE[4] rate=240 flags=0x1
RATE[5] rate=360 flags=0x0
RATE[6] rate=480 flags=0x0
RATE[7] rate=540 flags=0x0
Scan for neighboring BSSes prior to enabling 40 MHz channel
Scan requested (ret=0) - scan timeout 10 seconds
Interface initialization will be completed in a callback
nl80211: Event message available
nl80211: Scan trigger
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'br0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 19 for bridge br0
nl80211: Add own interface ifindex 19
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 19 for bridge br0
nl80211: Add own interface ifindex 19
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Add ifindex 19 for bridge br0
nl80211: Add own interface ifindex 19
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
mgmt::proberesp cb
nl80211: Ignore event for foreign ifindex 4
nl80211: Event message available
nl80211: New scan results available
Received scan results (32 BSSes)
Completing interface initialization
Mode: IEEE 802.11a Channel: 161 Frequency: 5805 MHz
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=5 alg=0 addr=(nil) key_idx=0 set_tx=1 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=5 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=5 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=5 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr 00:0b:6b:b1:20:00 and ssid '4gtcp'
nl80211: Set beacon (beacon_set=0)
wlan0: Setup of interface done.
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
nl80211: Ignore event for foreign ifindex 4
nl80211: Ignore event for foreign ifindex 4
nl80211: Ignore event for foreign ifindex 4
mgmt::proberesp cb
mgmt::auth
authentication: STA=00:0b:6b:b1:20:14 auth_alg=0 auth_transaction=1 status_code=0 wep=0
New STA
wlan0: STA 00:0b:6b:b1:20:14 IEEE 802.11: authentication OK (open system)
wlan0: STA 00:0b:6b:b1:20:14 MLME: MLME-AUTHENTICATE.indication(00:0b:6b:b1:20:14, OPEN_SYSTEM)
wlan0: STA 00:0b:6b:b1:20:14 MLME: MLME-DELETEKEYS.request(00:0b:6b:b1:20:14)
authentication reply: STA=00:0b:6b:b1:20:14 auth_alg=0 auth_transaction=2 resp=0 (IE len=0)
mgmt::auth cb
wlan0: STA 00:0b:6b:b1:20:14 IEEE 802.11: authenticated
mgmt::assoc_req
association request: STA=00:0b:6b:b1:20:14 capab_info=0x01 listen_interval=10
Validating WMM IE: OUI 00:50:f2 OUI type 2 OUI sub-type 0 version 1 QoS info 0x0
new AID 1
HT: STA 00:0b:6b:b1:20:14 HT Capabilities Info: 0x104e
update_sta_ht STA 00:0b:6b:b1:20:14 - no greenfield, num of non-gf stations 1
hostapd_ht_operation_update current operation mode=0x0
hostapd_ht_operation_update new operation mode=0x7 changes=2
nl80211: Set beacon (beacon_set=1)
wlan0: STA 00:0b:6b:b1:20:14 IEEE 802.11: association OK (aid 1)
mgmt::assoc_resp cb
wlan0: STA 00:0b:6b:b1:20:14 IEEE 802.11: associated (aid 1)
AP-STA-CONNECTED 00:0b:6b:b1:20:14
wlan0: STA 00:0b:6b:b1:20:14 MLME: MLME-ASSOCIATE.indication(00:0b:6b:b1:20:14)
wlan0: STA 00:0b:6b:b1:20:14 MLME: MLME-DELETEKEYS.request(00:0b:6b:b1:20:14)
wlan0: STA 00:0b:6b:b1:20:14 RADIUS: starting accounting session 4F7BB7D4-00000000
nl80211: Event message available
nl80211: Ignored unknown event (cmd=19)
mgmt::deauth
deauthentication: STA=00:0b:6b:b1:20:14 reason_code=3
AP-STA-DISCONNECTED 00:0b:6b:b1:20:14
wlan0: STA 00:0b:6b:b1:20:14 IEEE 802.11: deauthenticated
wlan0: STA 00:0b:6b:b1:20:14 MLME: MLME-DEAUTHENTICATE.indication(00:0b:6b:b1:20:14, 3)
wlan0: STA 00:0b:6b:b1:20:14 MLME: MLME-DELETEKEYS.request(00:0b:6b:b1:20:14)
hostapd_ht_operation_update current operation mode=0x7
hostapd_ht_operation_update new operation mode=0x0 changes=2
nl80211: Set beacon (beacon_set=1)
nl80211: Event message available
nl80211: Ignored unknown event (cmd=20)
nl80211: Ignore event for foreign ifindex 4
nl80211: Ignore event for foreign ifindex 4
mgmt::proberesp cb
nl80211: Ignore event for foreign ifindex 4
Signal 2 received - terminating
Flushing old station entries
Deauthenticate all stations
nl80211: Remove interface ifindex=18
netlink: Operstate: linkmode=0, operstate=6
and the config file:
interface=wlan0
bridge=br0
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=4gtcp
hw_mode=a
channel=161
beacon_int=100
dtim_period=2
max_num_sta=255
rts_threshold=2347
fragm_threshold=2346
macaddr_acl=0
auth_algs=1
wpa=0
ignore_broadcast_ssid=0
wmm_enabled=1
wmm_ac_bk_cwmin=4
wmm_ac_bk_cwmax=10
wmm_ac_bk_aifs=7
wmm_ac_bk_txop_limit=0
wmm_ac_bk_acm=0
wmm_ac_be_aifs=3
wmm_ac_be_cwmin=4
wmm_ac_be_cwmax=10
wmm_ac_be_txop_limit=0
wmm_ac_be_acm=0
wmm_ac_vi_aifs=2
wmm_ac_vi_cwmin=3
wmm_ac_vi_cwmax=4
wmm_ac_vi_txop_limit=94
wmm_ac_vi_acm=0
wmm_ac_vo_aifs=2
wmm_ac_vo_cwmin=2
wmm_ac_vo_cwmax=3
wmm_ac_vo_txop_limit=47
wmm_ac_vo_acm=0
ieee80211n=1
ht_capab=[HT40-][HT40+][DSSS_CCK-40][SHORT-GI-20][SHORT-GI-40]
eapol_key_index_workaround=0
eap_server=0
own_ip_addr=192.168.1.1
More information about the Hostap
mailing list