Interface conflict on Raspberry PI DPP

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

 



 Hi All,

I am using a Raspberry PI with 4.14y kernel on Raspbian and running wpa_supplicant 2.9-release version. I could see following observation and would like to confirm whether these are to be handled in Wi-Fi driver or in user space? 

1] There are two interfaces on running wpa_supplicant. The wlan0 and p2p-dev-wlan0. I am using wlan0 interface for my operations on DPP. On issuing the DPP listen command, I observed that the DPP listen stops working after 5 seconds when the event CANCEL_REMAIN_ON_CHANNEL is received. I could see that REMAIN_ON_CHANNEL event is coming on wlan0 but the CANCEL_REMAIN_ON_CHANNEL event is coming on p2p-dev-wlan0. This cause the DPP listen to stop working as the cookie check fails since cookie comparison is done with the p2p-dev-wlan0 interface whereas cookie value is actually set on wlan0. Is there any way to get wlan0 listen continously ?

Log :
------
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=0x1 (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)
P2P: remain-on-channel callback (off_channel_freq=2412 pending_listen_freq=0 roc_waiting_drv_freq=0 freq=2412 duration=5000)
P2P: Ignore remain-on-channel callback (off_channel_freq=2412 pending_listen_freq=0 freq=2412 duration=5000)
nl80211: Drv Event 56 (NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL) received for p2p-dev-wlan0
nl80211: Remain-on-channel event (cancel=1 freq=2412 channel_type=0 duration=0 cookie=0x1 (unknown))
--------------------------------End of Log-------------------------------------------------------

2] Anyway, since the DPP listen works for the first 5 seconds, I could initiate an authentication request from AP. The AP got an authentication response from the supplicant. However all the authentication response received where having the MAC address of p2p-dev-wlan0 even though interface is selected wlan0 in wpa_cli? Is there any way to send authentication frames from wlan0 interface by disabling virtual interface p2p-dev-wlan0?
 
Interface Details :
--------------------

MAC address of wlan0: b8:27:eb:16:48:ab

MAC address of p2p-dev-wlan0: 1e:50:bf:b4:d3:70

MAC address of AP: 00:c0:ca:96:c7:d9
 

Client side log showing that it received DP request and sending authentication response:

Log :
-------
DPP: Authentication Response frame attributes - hexdump(len=238): 04 09 50 6f 9a 1a 01 01 00 10 01 00 00 02 10 20 00 f2 28 97 8b bc dc 69 e0 08 bf a0 b3 c4 21 db 28 8e c1 91 90 90 0c 1a 2d 97 1c 2d 0c 91 fd 34 4d 09 10 40 00 99 38 6b fb 14 d0 c7 51 dd 0c 74 09 40 e5 a4 6c 65 a1 dd b0 f9 db 5e 61 21 a5 87 d5 ec 7e 00 c8 15 56 7b 53 04 2e 26 ae 96 8f cd f2 4b 80 99 35 83 01 ac 4e 6e 37 4b 6a eb 27 91 6a f3 b4 a5 f1 04 10 75 00 91 7b 91 4e f7 1c aa 5e d0 73 5f 86 23 98 66 66 9b 64 73 6d c1 7c 80 3a 4d 90 1a ea 22 75 71 7e bb de 79 02 ca 7a c3 9b 29 d6 a2 29 ad f3 1d 37 f1 dc 27 e2 1f be 8c 73 3f 3e 97 a2 ff fb 39 8f 6f e6 34 d4 67 74 10 da 46 6e 3f 9a 72 f4 d3 9e c8 4a 59 45 22 cb 48 5f 59 f1 f3 de 17 33 79 53 3b 64 ec be 51 ef 17 e8 4f 75 1e 7c f4 17 70 92 4a 4b 45 1b 7c

wlan0: DPP-TX dst=00:c0:ca:96:c7:d9 freq=2412 type=1

Off-channel: Send action frame: freq=2412 dst=00:c0:ca:96:c7:d9 src=b8:27:eb:16:48:ab bssid=ff:ff:ff:ff:ff:ff len=238

Off-channel: Stored pending action frame (dst=00:c0:ca:96:c7:d9 pending_action_tx=0x5a75b8)

nl80211: Send Action frame (ifindex=3, freq=2412 MHz wait=500 ms no_cck=0)

nl80211: Drv Event 56 (NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL) received for p2p-dev-wlan0

nl80211: Remain-on-channel event (cancel=1 freq=2412 channel_type=0 duration=0 cookie=0x1 (unknown))

nl80211: Ignored event 60 (NL80211_CMD_FRAME_TX_STATUS) for foreign interface (ifindex 3 wdev 0x0)

nl80211: Drv Event 60 (NL80211_CMD_FRAME_TX_STATUS) received for wlan0

nl80211: Frame TX status event

nl80211: Action TX status: cookie=0x0 (match) (ack=1)

wlan0: Event TX_STATUS (16) received

wlan0: EVENT_TX_STATUS dst=00:c0:ca:96:c7:d9 type=0 stype=13

Off-channel: Delete matching pending action frame (dst=00:c0:ca:96:c7:d9 pending_action_tx=0x5a75b8)

Off-channel: TX status result=0 cb=0x4d8b4

DPP: TX status: freq=2412 dst=00:c0:ca:96:c7:d9 result=SUCCESS

wlan0: DPP-TX-STATUS dst=00:c0:ca:96:c7:d9 freq=2412 result=SUCCESS
-----------------------------------End of Log---------------------------------------
 
AP side log showing a mismatch of MAC since the action frame is received from p2p-dev-wlan0 where as it was expecting wlan0 interface.

Log:
-----
lx00c0ca96c7d9: Event RX_MGMT (18) received

mgmt::action

RX_ACTION category 4 action 9 sa 1e:50:bf:b4:d3:70 da 00:c0:ca:96:c7:d9 len 262 freq 2412

DPP: Received DPP Public Action frame crypto suite 1 type 1 from 1e:50:bf:b4:d3:70 freq=2412

wlx00c0ca96c7d9: DPP-RX src=1e:50:bf:b4:d3:70 freq=2412 type=1

CTRL_IFACE monitor send /tmp/wpa_ctrl_21720-1\x00

DPP: Authentication Response from 1e:50:bf:b4:d3:70

DPP: MAC address mismatch (expected b8:27:eb:16:48:ab) - drop

nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlx00c0ca96c7d9

nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=78:94:b4:f3:f7:7a bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-44 fc=0x40 seq_ctrl=0x160 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=57

nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlx00c0ca96c7d9

nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=78:94:b4:f3:f7:7a bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-45 fc=0x40 seq_ctrl=0x200 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=57

nl80211: BSS Event 59 (NL80211_CMD_FRAME) received for wlx00c0ca96c7d9

nl80211: RX frame da=ff:ff:ff:ff:ff:ff sa=78:94:b4:f3:f7:7a bssid=ff:ff:ff:ff:ff:ff freq=2412 ssi_signal=-56 fc=0x40 seq_ctrl=0x220 stype=4 (WLAN_FC_STYPE_PROBE_REQ) len=57

DPP: Reply wait timeout - wait_time=2000 diff_ms=2010

DPP: No response received from responder - stopping initiation attempt

wlx00c0ca96c7d9: DPP-AUTH-INIT-FAILED

CTRL_IFACE monitor send /tmp/wpa_ctrl_21720-1\x00

-----------------------------End of Log ----------------------------------------------------------


Any information on this is highly appreaciated . Thanks in advance.

--
Regards,
Livin​
_______________________________________________
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