[PATCH] P2P: Failed to send the GO Negotiation Response

Masashi Honma honma
Tue Nov 23 23:49:52 PST 2010


Hello.

I have booted P2P GO with this command.

wpa_cli -i wlan0 p2p_group_add

And I booted P2P client with these commands.

wpa_cli -i wlan0 p2p_find
wpa_cli -i wlan0 p2p_connect xx:xx:xx:xx:xx:xx pbc go_intent=0

After those, P2P client sent GO negotiation request frame. After
that, P2P GO sent GO negotiation response frame. I could see these
frames on the air by caputuring. But the P2P GO side console said
"P2P: Failed to send the pending Action frame".

This patch solves this issue.


diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 6fca520..059f496 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5581,7 +5581,8 @@ static int wpa_driver_nl80211_send_action(void *priv, unsigned int freq,
 	os_memcpy(hdr->addr3, bssid, ETH_ALEN);
 
 	if (drv->nlmode == NL80211_IFTYPE_AP)
-		ret = wpa_driver_nl80211_send_mlme(priv, buf, 24 + data_len);
+		ret = wpa_driver_nl80211_send_mlme(priv, buf, 24 + data_len)
+			< 0;
 	else
 		ret = nl80211_send_frame_cmd(drv, freq, buf, 24 + data_len,
 					     &drv->send_action_cookie);


Regards,
Masashi Honma.



More information about the Hostap mailing list