]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Send link_id on sta_deauth()
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Thu, 28 Mar 2024 18:16:34 +0000 (23:46 +0530)
committerJouni Malinen <j@w1.fi>
Tue, 16 Apr 2024 07:56:05 +0000 (10:56 +0300)
i802_sta_deauth() already has the link_id passed to it in its arguments.
Use that to pass it down to send MLME handler as well.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
src/drivers/driver_nl80211.c

index 2e0f06c70f8cad864eb5874117a7928c44bbb1e9..bf38eea68a5e56ccbce33709b679f78f63a017c0 100644 (file)
@@ -8249,7 +8249,7 @@ static int i802_sta_deauth(void *priv, const u8 *own_addr, const u8 *addr,
        return wpa_driver_nl80211_send_mlme(bss, (u8 *) &mgmt,
                                            IEEE80211_HDRLEN +
                                            sizeof(mgmt.u.deauth), 0, 0, 0, 0,
-                                           0, NULL, 0, 0, -1);
+                                           0, NULL, 0, 0, link_id);
 }