wpa_supplicant 2.9 : Cannot connect to secure Access Point

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am using wpa_supplicant version 2.9 compiled from build root using
uclibc toolchain for my target board. I am not able to connect with
any of the secured Access Point using WPA-PSK or WPA2-PSK key whereas
I am able to connect to an open network. I always get an error of
wlan0: deauthenticating from 08:25:25:70:d3:68 by local choice
(Reason: 1=UNSPECIFIED)

I am attaching the wpa_supplicant.conf and the wpa_supplicant output
with debugs enabled.
I added dump_stack in my net/mac80211/mlme.c to identify where
actually this error came and below is my dumpstack.
Can anyone let me know what could be the issue.

----
wpa_supplicant.conf
ctrl_interface=/customer/wpa_supplicant

network={
ssid="RedmiAP"
key_mgmt=WPA-PSK
proto=WPA
pairwise=TKIP
group=TKIP
psk="apsredmi"
}
----
----
wpa_supplicant debugs  enabled
/customer/SD/strip_modules # ./wpa_supplicant -B -iwlan0
-c/customer/wpa_supplicant.conf -dddd
wpa_supplicant v2.9
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/customer/wpa_supplicant.conf'
driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/customer/wpa_supplicant.conf' ->
'/customer/wpa_supplicant.conf'
Reading configuration file '/customer/wpa_supplicant.conf'
Line: 7 - start of a new network block
ssid - hexdump_ascii(len=7):
     52 65 64 6d 69 41 50                              RedmiAP
scan_ssid=1 (0x1)
key_mgmt: 0x2
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 0
   id=0 ssid='RedmiAP'
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: Supported cipher 00-0f-ac:10
nl80211: Supported cipher 00-0f-ac:8
nl80211: Supported cipher 00-0f-ac:9
nl80211: Using driver-based off-channel TX
nl80211: Driver-advertised extended capabilities (default) -
hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: Driver-advertised extended capabilities mask (default) -
hexdump(len=8): 00 00 00 00 00 00 00 40
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0xda770
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=0104
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=040a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=040b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=040c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=040d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=090a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=090b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=090c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=090d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=0801
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=0a1a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=0505
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION)
nl_handle=0xda770 match=0500
rfkill: Cannot open RFKILL control device
nl80211: RFKILL status not available
netlink: Operstate: ifindex=3 linkmode=1 (userspace-control),
operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 80 MHz 20 mBm (no IR)
nl80211: 5250-5330 @ 80 MHz 20 mBm (DFS) (no IR)
nl80211: 5490-5730 @ 160 MHz 20 mBm (DFS) (no IR)
nl80211: 5735-5835 @ 80 MHz 20 mBm (no IR)
nl80211: 57240-63720 @ 2160 MHz 0 mBm
nl80211: Added 802.11b mode based on 802.11g information
nl80211: Mode IEEE 802.11g: 2412 2417 2422 2427 2432 2437 2442 2447
2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[NO_IR]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447
2452 2457 2462 2467[NO_IR] 2472[NO_IR] 2484[NO_IR]
wlan0: Own MAC address: 14:6b:9c:d0:6b:f3
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil)
key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil)
key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil)
key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil)
key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil)
key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=3 (wlan0) alg=0 addr=(nil)
key_idx=5 set_tx=0 seq_len=0 key_len=0
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
wlan0: Setting scan request: 0.100000 sec
wlan0: WPS: UUID based on MAC address: c82e597d-c392-5776-9a66-07906f0d4374
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=3 linkmode=-1 (no change), operstate=5
(IF_OPER_DORMANT)
Daemonize..
wlan0: authenticate with 08:25:25:70:d3:68
wlan0: send auth to 08:25:25:70:d3:68 (try 1/3)
wlan0: authenticated
wlan0: associate with 08:25:25:70:d3:68 (try 1/3)
wlan0: RX AssocResp from 08:25:25:70:d3:68 (capab=0x1431 status=0 aid=1)
wlan0: associated
wlan0: deauthenticating from 08:25:25:70:d3:68 by local choice
(Reason: 1=UNSPECIFIED)
wlan0: authenticate with 08:25:25:70:d3:68
wlan0: send auth to 08:25:25:70:d3:68 (try 1/3)
wlan0: authenticated
wlan0: associate with 08:25:25:70:d3:68 (try 1/3)
wlan0: RX AssocResp from 08:25:25:70:d3:68 (capab=0x1431 status=0 aid=2)
wlan0: associated
wlan0: deauthenticating from 08:25:25:70:d3:68 by local choice
(Reason: 1=UNSPECIFIED)
wlan0: authenticate with 08:25:25:70:d3:68
wlan0: send auth to 08:25:25:70:d3:68 (try 1/3)
wlan0: authenticated
wlan0: associate with 08:25:25:70:d3:68 (try 1/3)
wlan0: RX AssocResp from 08:25:25:70:d3:68 (capab=0x1431 status=0 aid=3)
wlan0: associated
wlan0: deauthenticating from 08:25:25:70:d3:68 by local choice
(Reason: 1=UNSPECIFIED)
----
----
DumpStack:
wlan0: send auth to 08:25:25:70:d3:68 (try 1/3) wlan0: authenticated
wlan0: associate with 08:25:25:70:d3:68 (try 1/3) wlan0: RX AssocResp
from 08:25:25:70:d3:68 (capab=0x1431 status=0 aid=1) wlan0: associated
 CPU: 0 PID: 648 Comm: wpa_supplicant Tainted: G O 4.9.84 #78 Hardware
name: SStar Soc (Flattened Device Tree) [<c00114a1>]
(unwind_backtrace) from [<c000fc4f>] (show_stack+0xb/0xc) [<c000fc4f>]
(show_stack) from [<bfc8cf91>] (ieee80211_mgd_deauth+0x150/0x22c
[mac80211]) [<bfc8cf91>] (ieee80211_mgd_deauth [mac80211]) from
[<bfc792c5>] (ieee80211_deauth+0xc/0xe [mac80211]) [<bfc792c5>]
(ieee80211_deauth [mac80211]) from [<bfc40907>]
(cfg80211_mlme_deauth+0x48/0x50 [cfg80211]) [<bfc40907>]
(cfg80211_mlme_deauth [cfg80211]) from [<bfc3a637>]
(nl80211_deauthenticate+0x72/0x96 [cfg80211]) [<bfc3a637>]
(nl80211_deauthenticate [cfg80211]) from [<c01860bb>]
(genl_rcv_msg+0x19f/0x1fc) [<c01860bb>] (genl_rcv_msg) from
[<c01858af>] (netlink_rcv_skb+0x33/0x66) [<c01858af>]
(netlink_rcv_skb) from [<c0185f09>] (genl_rcv+0x15/0x28) [<c0185f09>]
(genl_rcv) from [<c01854d3>] (netlink_unicast+0xcf/0x148) [<c01854d3>]
(netlink_unicast) from [<c018579b>] (netlink_sendmsg+0x1e1/0x202)
[<c018579b>] (netlink_sendmsg) from [<c015f593>]
(sock_sendmsg+0xb/0x16) [<c015f593>] (sock_sendmsg) from [<c015fa89>]
(___sys_sendmsg+0x135/0x168) [<c015fa89>] (___sys_sendmsg) from
[<c01602d5>] (__sys_sendmsg+0x25/0x36) [<c01602d5>] (__sys_sendmsg)
from [<c000d2e1>] (ret_fast_syscall+0x1/0x54) wlan0: deauthenticating
from 08:25:25:70:d3:68 by local choice (Reason: 1=UNSPECIFIED)

-- 
Thanks & Regards,
Arjav Parikh

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux