45 lines
1.5 KiB
Diff
45 lines
1.5 KiB
Diff
From e89b089b1b199a7332e704de84f261c437d9f510 Mon Sep 17 00:00:00 2001
|
|
From: Patrick Walther <patrick.walther@netmodule.com>
|
|
Date: Fri, 24 Jul 2020 14:41:09 +0200
|
|
|
|
---
|
|
src/drivers/driver_nl80211.c | 8 +++-----
|
|
1 file changed, 3 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
|
|
index d2b30a0b8..a9ae0fbe2 100644
|
|
--- a/src/drivers/driver_nl80211.c
|
|
+++ b/src/drivers/driver_nl80211.c
|
|
@@ -2932,11 +2932,11 @@ static int wpa_driver_nl80211_del_beacon(struct i802_bss *bss)
|
|
struct wpa_driver_nl80211_data *drv = bss->drv;
|
|
|
|
wpa_printf(MSG_DEBUG, "nl80211: Remove beacon (ifindex=%d)",
|
|
- drv->ifindex);
|
|
+ bss->ifindex);
|
|
bss->beacon_set = 0;
|
|
bss->freq = 0;
|
|
nl80211_put_wiphy_data_ap(bss);
|
|
- msg = nl80211_drv_msg(drv, 0, NL80211_CMD_DEL_BEACON);
|
|
+ msg = nl80211_bss_msg(drv, 0, NL80211_CMD_DEL_BEACON);
|
|
return send_and_recv_msgs(drv, msg, NULL, NULL, NULL, NULL);
|
|
}
|
|
|
|
@@ -5650,7 +5650,7 @@ static void nl80211_teardown_ap(struct i802_bss *bss)
|
|
nl80211_mgmt_unsubscribe(bss, "AP teardown");
|
|
|
|
nl80211_put_wiphy_data_ap(bss);
|
|
- bss->beacon_set = 0;
|
|
+ wpa_driver_nl80211_del_beacon(bss);
|
|
}
|
|
|
|
|
|
@@ -8104,8 +8104,6 @@ static int wpa_driver_nl80211_if_remove(struct i802_bss *bss,
|
|
} else {
|
|
wpa_printf(MSG_DEBUG, "nl80211: First BSS - reassign context");
|
|
nl80211_teardown_ap(bss);
|
|
- if (!bss->added_if && !drv->first_bss->next)
|
|
- wpa_driver_nl80211_del_beacon(bss);
|
|
nl80211_destroy_bss(bss);
|
|
if (!bss->added_if)
|
|
i802_set_iface_flags(bss, 0);
|