[PATCH] Fix sending NL80211_CMD_DEL_BEACON command to wrong interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 1183aeff28f7bf8f9290dbe08d8c17b6d741b0c9 Mon Sep 17 00:00:00 2001
From: Nikita Chernikov <nchernikov@xxxxxxxxxxxxx>
Date: Mon, 11 Mar 2024 18:58:21 +0200
Subject: [PATCH] Fix sending NL80211_CMD_DEL_BEACON command to wrong interface
To: hostap@xxxxxxxxxxxxxxxxxxx

Currently NL80211_CMD_DEL_BEACON command is always sent to master interface of the radio instead of the desired bss interface.
i.e. when sending STOP_AP ctrl interface command from upper layer.

Signed-off-by: Nikita Chernikov <nchernikov@xxxxxxxxxxxxx>
---
 src/drivers/driver_nl80211.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index b3e9e6f2f..8cdd21fa1 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -3078,12 +3078,12 @@ static int wpa_driver_nl80211_del_beacon(struct i802_bss *bss,
 		return 0;
 
 	wpa_printf(MSG_DEBUG, "nl80211: Remove beacon (ifindex=%d)",
-		   drv->ifindex);
+		   bss->ifindex);
 	link->beacon_set = 0;
 	link->freq = 0;
 
 	nl80211_put_wiphy_data_ap(bss);
-	msg = nl80211_drv_msg(drv, 0, NL80211_CMD_DEL_BEACON);
+	msg = nl80211_ifindex_msg(drv, bss->ifindex, 0, NL80211_CMD_DEL_BEACON);
 	if (!msg)
 		return -ENOBUFS;
 
-- 
2.17.1

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux