P2P_GROUP_REMOVE in supplicant 2.4

Jouni Malinen j
Sun Jun 14 01:24:09 PDT 2015


On Fri, Jun 12, 2015 at 06:16:46AM +0000, Atul Joshi wrote:
> I am facing an issue while removing the P2P group when we are a P2PGO.
> As a part of a test, we send P2P_GROUP_REMOVE on the  interface on which P2P Group is created.
> We can see from supplicant logs is
> 1434015304.517338: wlan1: Control interface command 'P2P_GROUP_REMOVE p2p-wlan1-0'
...
> 1434015304.517521: p2p-wlan1-0: Request to deauthenticate - bssid=02:02:5b:00:30:74 pending_bssid=00:00:00:00:00:00 reason=3 state=COMPLETED
> 1434015304.517535: wpa_driver_nl80211_deauthenticate(addr=02:02:5b:00:30:74 reason_code=3)
> 1434015304.517636: p2p-wlan1-0: nl80211: MLME command failed: reason=3 ret=-95 (Operation not supported)

This operation is really meant only for station (including P2P Client)
side disconnection. wpa_supplicant issues it even when stopping a P2P
GO, but not really for the purpose of sending out a Deauthentication
frame.

> Here I can see that supplciant is calling NL80211_CMD_DEUTHETICATE to nl80211 driver. In cfg80211, it is accepted only if the interface is P2P_CLI or STA. but in our case it is P2PGO hence it fails. The results in we not sending deauth before going down as a group owner.

The a broadcast Deauthentication frame from P2P GO should be going out
even when this operation fails. That frame is sent by
hostapd_flush_old_stations():

p2p-wlan6-0: Deauthenticate all stations
nl80211: send_mlme - da= ff:ff:ff:ff:ff:ff noack=0 freq=0 no_cck=0 offchanok=0 wait_time=0 fc=0xc0 (WLAN_FC_STYPE_DEAUTH) nlmode=9
nl80211: send_mlme -> send_frame
nl80211: send_frame - Use bss->freq=2412
nl80211: send_frame -> send_frame_cmd
nl80211: CMD_FRAME freq=2412 wait=0 no_cck=0 no_ack=0 offchanok=0
CMD_FRAME - hexdump(len=26): c0 00 00 00 ff ff ff ff ff ff 46 00 00 00 06 00 46 00 00 00 06 00 00 00 03 00

Maybe this does not work with the driver you are using here.. Are you
using driver-based AP SME? Can you please share a debug log showing the
lines following that "Deauthenticate all stations" entry?

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list