]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Use wdev id when cancelling wait for frame using P2P_DEVICE
authorArend van Spriel <arend@broadcom.com>
Sun, 30 Jun 2013 07:46:19 +0000 (10:46 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 30 Jun 2013 07:50:13 +0000 (10:50 +0300)
Another function that needs the wdev id when P2P management is done
using the P2P_DEVICE interface.

Signed-hostap: Arend van Spriel <arend@broadcom.com>

src/drivers/driver_nl80211.c

index 2bbe50ec6b9e51cc8fcea89486902eedf5ae5a6a..f3a02a25b6f612de37517d4c41f4cee0724ba8c1 100644 (file)
@@ -9268,7 +9268,8 @@ static void wpa_driver_nl80211_send_action_cancel_wait(void *priv)
                   (long long unsigned int) drv->send_action_cookie);
        nl80211_cmd(drv, msg, 0, NL80211_CMD_FRAME_WAIT_CANCEL);
 
-       NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, drv->ifindex);
+       if (nl80211_set_iface_id(msg, bss) < 0)
+               goto nla_put_failure;
        NLA_PUT_U64(msg, NL80211_ATTR_COOKIE, drv->send_action_cookie);
 
        ret = send_and_recv_msgs(drv, msg, NULL, NULL);