]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: P2P: Pass cookie parameter in send action frame
authorDeepthi Gowri <deepthi@codeaurora.org>
Mon, 23 Jan 2012 18:12:06 +0000 (20:12 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 23 Jan 2012 18:12:06 +0000 (20:12 +0200)
The cookie value needs to be fetched in GO mode, too, to be able to
indicate TX status callbacks with drivers that handle AP mode SME
functionality internally. This fixes issues with client discoverability
where TX status callback for GO Discoverability Request is needed to
trigger the GO to send Device Discoverability Response.

src/drivers/driver_nl80211.c

index 6af8cc9cb1a22791031920b6ca6ea82b360d593f..82f5664cbecef44a9d30f1c24b74805688e98a5c 100644 (file)
@@ -5168,7 +5168,8 @@ static int wpa_driver_nl80211_send_mlme(void *priv, const u8 *data,
 
        if (drv->device_ap_sme && is_ap_interface(drv->nlmode)) {
                return nl80211_send_frame_cmd(bss, bss->freq, 0,
-                                             data, data_len, NULL,
+                                             data, data_len,
+                                             &drv->send_action_cookie,
                                              0, noack, 0);
        }