wpa_supplicant not receiving authentication request

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

 



I have built hostapd and wpa_supplicant per the instructions and am having trouble getting the negotiation to complete. Using wireshark (airtool), I can see that hostapd is sending the authentication request OTA. On the wpa_supplicant machine, I cannot see any nl80211 debug messages showing that any management frames have been received. (but I can see that it has registered for the correct frame types).

I've tried two diffent STA machines (Pi and NUC) - each one can function properly as an AP, so I know the radios work.

I'm hoping it is a simple configuration issue - any suggestions greatly appreciated.

============================================
wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant
ctrl_interface_group=micronets
update_config=1
pmf=2
dpp_config_processing=2


CLI commands
============================================
wpa_supplicant machine: 

  sudo ./wpa_cli dpp_bootstrap_gen type=qrcode mac=50:3e:aa:44:73:95 chan=81/1

    > DPP:C:81/1;M:50:3e:aa:44:73:95;K:MDkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDIgACBlDWHDXoIIlJ7IWVk2EPhaXsB1WgrpIWl6r99cJuQKw=;;

  sudo ./wpa_cli dpp_listen 2412

    > Selected interface 'wlan0' OK

hostapd machine:

  sudo ./hostapd_cli dpp_configurator_add

    > 4

  sudo ./hostapd_cli dpp_qr_code 'DPP:C:81/1;M:50:3e:aa:44:73:95;K:MDkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDIgACBlDWHDXoIIlJ7IWVk2EPhaXsB1WgrpIWl6r99cJuQKw=;;'

    > 4
  
  sudo ./hostapd_cli dpp_auth_init peer=4 conf=sta-dpp configurator=4

    > OK

============================================
wpa_supplicant logs:

wpa_supplicant v2.8-devel-hostap_2_7-325-g0dab47733+
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf 'wpa_supplicant_dpp.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A'
Configuration file 'wpa_supplicant_dpp.conf' -> '/home/micronets/github/hostap/wpa_supplicant/wpa_supplicant_dpp.conf'
Reading configuration file '/home/micronets/github/hostap/wpa_supplicant/wpa_supplicant_dpp.conf'
ctrl_interface='DIR=/var/run/wpa_supplicant'
ctrl_interface_group='micronets'
update_config=1
pmf=2
dpp_config_processing=2
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 vendor command: vendor_id=0x1a11 subcmd=4608
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4609
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4610
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4106
nl80211: Supported vendor command: vendor_id=0x1a11 subcmd=4107
nl80211: interface wlan0 in phy phy1
nl80211: Set mode ifindex 4 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0xc0dfb8
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=040a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=040b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=040c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=040d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=090a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=090b
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=090c
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=090d
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=0409506f9a1a
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=0801
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=06
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=0a07
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=0a11
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=1101
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=1102
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=0505
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xc0dfb8 match=0500
rfkill: initial event: idx=2 type=1 op=0 soft=0 hard=0
netlink: Operstate: ifindex=4 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
Add interface wlan0 to a new radio phy1
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[DISABLED] 2472[DISABLED] 2484[DISABLED]
nl80211: Mode IEEE 802.11a: 5180 5200 5220 5240 5260[NO_IR][RADAR] 5280[NO_IR][RADAR] 5300[NO_IR][RADAR] 5320[NO_IR][RADAR] 5500[NO_IR][RADAR] 5520[NO_IR][RADAR] 5540[NO_IR][RADAR] 5560[NO_IR][RADAR] 5580[NO_IR][RADAR]
nl80211: Mode IEEE 802.11b: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467[DISABLED] 2472[DISABLED] 2484[DISABLED]
wlan0: Own MAC address: 50:3e:aa:44:73:95
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (wlan0) alg=0 addr=(nil) key_idx=4 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=4 (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: State: DISCONNECTED -> INACTIVE
ENGINE: Loading dynamic engine
ENGINE: Loading dynamic engine
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: INACTIVE -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=4 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
random: Got 20/20 bytes from /dev/random
RTM_NEWLINK: ifi_index=4 ifname=wlan0 operstate=2 linkmode=0 ifi_family=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK: ifi_index=4 ifname=wlan0 operstate=2 linkmode=1 ifi_family=0 ifi_flags=0x1003 ([UP])
EAPOL: disable timer tick
wlan0: Control interface command 'DPP_BOOTSTRAP_GEN type=qrcode mac=50:3e:aa:44:73:95 chan=81/1'
DPP: Generating a keypair
DPP: Compressed public key (DER) - hexdump(len=59): 30 39 30 13 06 07 2a 86 48 ce 3d 02 01 06 08 2a 86 48 ce 3d 03 01 07 03 22 00 02 06 50 d6 1c 35 e8 20 89 49 ec 85 95 93 61 0f 85 a5 ec 07 55 a0 ae 92 16 97 aa fd f5 c2 6e 40 ac
DPP: Public key hash - hexdump(len=32): 23 5b 3c 62 d6 11 85 cb 52 21 f7 d6 ba 0c 84 33 78 29 f4 04 3a 94 fe 5e 59 89 fa ce de 1c b1 de
DPP: URI channel-list: opclass=81 channel=1 ==> freq=2412
DPP: URI mac: 50:3e:aa:44:73:95
CTRL-DEBUG: ctrl_sock-sendto: sock=13 sndbuf=163840 outq=0 send_len=1
wlan0: Control interface command 'DPP_BOOTSTRAP_GET_URI 1'
CTRL-DEBUG: ctrl_sock-sendto: sock=13 sndbuf=163840 outq=0 send_len=115
wlan0: Control interface command 'DPP_LISTEN 2412'
wlan0: Add radio work 'dpp-listen'@0xc153b8
wlan0: First radio work item in the queue - schedule start immediately
CTRL-DEBUG: ctrl_sock-sendto: sock=13 sndbuf=163840 outq=0 send_len=3
wlan0: Starting radio work 'dpp-listen'@0xc153b8 after 0.000053 second wait
nl80211: Remain-on-channel cookie 0xc5 for freq=2412 MHz duration=5000
nl80211: Event message available
nl80211: Drv Event 55 (NL80211_CMD_REMAIN_ON_CHANNEL) received for wlan0
nl80211: Remain-on-channel event (cancel=0 freq=2412 channel_type=0 duration=5000 cookie=0xc5 (match))
wlan0: Event REMAIN_ON_CHANNEL (19) received
Off-channel: Send Action callback (without_roc=0 pending_action_tx=(nil) pending_action_tx_done=0)
nl80211: Event message available
nl80211: Drv Event 56 (NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL) received for wlan0
nl80211: Remain-on-channel event (cancel=1 freq=2412 channel_type=0 duration=0 cookie=0xc5 (match))
wlan0: Event CANCEL_REMAIN_ON_CHANNEL (20) received


============================================
hostapd logs: ( grep DPP )

     44 50 50 5f 43 4f 4e 46 49 47 55 52 41 54 4f 52   DPP_CONFIGURATOR
DPP: Generating a keypair
     44 50 50 5f 51 52 5f 43 4f 44 45 20 44 50 50 3a   DPP_QR_CODE DPP:
DPP: URI - hexdump_ascii(len=115):
     44 50 50 3a 43 3a 38 31 2f 31 3b 4d 3a 35 30 3a   DPP:C:81/1;M:50:
DPP: URI channel-list: opclass=81 channel=1 ==> freq=2412
DPP: URI mac: 50:3e:aa:44:73:95
DPP: Base64 decoded URI public-key - hexdump(len=59): 30 39 30 13 06 07 2a 86 48 ce 3d 02 01 06 08 2a 86 48 ce 3d 03 01 07 03 22 00 02 4a 0e 23 5e 84 04 e9 22 b8 81 f8 24 11 5d ce 2c 83 9c c2 1a 6f 8e ca cf 24 08 63 52 26 39 d2 21
DPP: Public key hash - hexdump(len=32): 78 e9 b1 38 1d e6 ed 27 c7 7f 9a 5f 01 5b 17 3a 41 40 7c 36 4e 20 30 65 d3 c0 e0 9e 09 15 7a b8
DPP: URI subjectPublicKey algorithm: id-ecPublicKey
DPP: URI subjectPublicKey parameters: prime256v1
DPP: URI subjectPublicKey - hexdump(len=33): 02 4a 0e 23 5e 84 04 e9 22 b8 81 f8 24 11 5d ce 2c 83 9c c2 1a 6f 8e ca cf 24 08 63 52 26 39 d2 21
     44 50 50 5f 41 55 54 48 5f 49 4e 49 54 20 70 65   DPP_AUTH_INIT pe
DPP: Generating a keypair
DPP: Compressed public key (DER) - hexdump(len=59): 30 39 30 13 06 07 2a 86 48 ce 3d 02 01 06 08 2a 86 48 ce 3d 03 01 07 03 22 00 03 2b 4d e5 f3 ff d5 e7 33 45 52 64 03 af 32 a1 89 30 dc 01 2e 58 35 75 a6 7f f1 05 52 e1 aa 16 14
DPP: Public key hash - hexdump(len=32): 64 80 b2 7a 0c 15 bb 8f ed 4f 3e 26 2d 56 e1 29 7e 54 4f 70 4c f0 3c 2b 35 9d d9 74 e7 a2 0d 5b
DPP: Auto-generated own bootstrapping key info: URI DPP:K:MDkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDIgADK03l8//V5zNFUmQDrzKhiTDcAS5YNXWmf/EFUuGqFhQ=;;
DPP: Possible frequencies for initiating: 2412
DPP: I-nonce - hexdump(len=16): c4 6b 38 bc 9c a1 8f 8c 30 e7 e7 46 a3 47 7e 15
DPP: Generating a keypair
DPP: ECDH shared secret (M.x) - hexdump(len=32): [REMOVED]
DPP: PRK = HKDF-Extract(<>, IKM=M.x) - hexdump(len=32): [REMOVED]
DPP: k1 = HKDF-Expand(PRK, info, L) - hexdump(len=32): [REMOVED]
DPP: R-Bootstrap Key Hash
DPP: I-Bootstrap Key Hash
DPP: AES-SIV cleartext - hexdump(len=25): 05 10 10 00 c4 6b 38 bc 9c a1 8f 8c 30 e7 e7 46 a3 47 7e 15 06 10 01 00 02
DPP: AES-SIV ciphertext - hexdump(len=41): 29 0a fd d2 87 1f 3f 27 db 29 c8 91 e3 f5 c1 44 6d 18 14 78 25 a9 46 a4 6d 27 2a 4b 20 25 14 0e 9d 07 41 97 2d ba 4d 96 ff
DPP: Authentication Request frame attributes - hexdump(len=193): 04 09 50 6f 9a 1a 01 00 02 10 20 00 78 e9 b1 38 1d e6 ed 27 c7 7f 9a 5f 01 5b 17 3a 41 40 7c 36 4e 20 30 65 d3 c0 e0 9e 09 15 7a b8 01 10 20 00 64 80 b2 7a 0c 15 bb 8f ed 4f 3e 26 2d 56 e1 29 7e 54 4f 70 4c f0 3c 2b 35 9d d9 74 e7 a2 0d 5b 03 10 40 00 6b 9f c6 79 c2 2c 12 cd 6f ac c7 bd 6f 86 92 84 63 df e3 31 ec 7f da 1e 81 f2 8e c7 65 61 00 5b c5 72 52 e0 2a 57 1d 62 0c 52 81 51 7e 04 50 7b 36 ec 60 52 0b 28 09 5d 47 9b cb a6 52 15 86 c2 04 10 29 00 29 0a fd d2 87 1f 3f 27 db 29 c8 91 e3 f5 c1 44 6d 18 14 78 25 a9 46 a4 6d 27 2a 4b 20 25 14 0e 9d 07 41 97 2d ba 4d 96 ff
DPP: Set configurator parameters:  peer=1 conf=sta-dpp configurator=1
wlp2s0: DPP-TX dst=50:3e:aa:44:73:95 freq=2412 type=0
DPP: TX status: dst=50:3e:aa:44:73:95 ok=1
wlp2s0: DPP-TX-STATUS dst=50:3e:aa:44:73:95 result=SUCCESS
DPP: Reply wait timeout - wait_time=2000 diff_ms=2011
DPP: No response received from responder - stopping initiation attempt
wlp2s0: DPP-AUTH-INIT-FAILED 

============================================



_______________________________________________
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