P2P_GROUP_REMOVE in supplicant 2.4

Atul Joshi Atul.Joshi
Thu Jun 11 23:16:46 PDT 2015

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.517411: P2P-GROUP-REMOVED p2p-wlan1-0 GO reason=REQUESTED
1434015304.517461: CTRL_IFACE monitor sent successfully to /tmp/wpa_ctrl_7799-3\x00
1434015304.517476: P2P: Remove group interface p2p-wlan1-0
1434015304.517493: p2p-wlan1-0: Removing interface 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)

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.
I could trace the functions and could not find out why it should not call  NL80211_CMD_DEUTHETICATE in P2PGO case

wpas_p2p_group_remove-> wpas_p2p_disconnect_safely-> wpas_p2p_disconnect-> wpas_p2p_group_delete-> wpa_supplicant_remove_iface-> wpa_supplicant_deinit_iface-> wpa_supplicant_deauthenticate

Am I missing something? Can somebody help me to understand why wpa_supplicant_deauthenticate is called which will bound to fail?


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Keep up to date with CSR on our technical blog, www.csr.com/blog, CSR people blog, www.csr.com/people, YouTube, www.youtube.com/user/CSRplc, Facebook, www.facebook.com/pages/CSR/191038434253534, or follow us on Twitter at www.twitter.com/CSR_plc.
You can now access the wide range of products powered by aptX at www.aptx.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20150612/99a0b38d/attachment.htm>

More information about the Hostap mailing list