hostapd: bump to 2024-03-09
[openwrt/openwrt.git] / package / network / services / hostapd / patches / 350-nl80211_del_beacon_bss.patch
1 --- a/src/drivers/driver_nl80211.c
2 +++ b/src/drivers/driver_nl80211.c
3 @@ -3075,12 +3075,12 @@ static int wpa_driver_nl80211_del_beacon
4 return 0;
5
6 wpa_printf(MSG_DEBUG, "nl80211: Remove beacon (ifindex=%d)",
7 - drv->ifindex);
8 + bss->ifindex);
9 link->beacon_set = 0;
10 link->freq = 0;
11
12 nl80211_put_wiphy_data_ap(bss);
13 - msg = nl80211_drv_msg(drv, 0, NL80211_CMD_DEL_BEACON);
14 + msg = nl80211_bss_msg(bss, 0, NL80211_CMD_DEL_BEACON);
15 if (!msg)
16 return -ENOBUFS;
17
18 @@ -6176,8 +6176,7 @@ static void nl80211_teardown_ap(struct i
19 nl80211_mgmt_unsubscribe(bss, "AP teardown");
20
21 nl80211_put_wiphy_data_ap(bss);
22 - if (bss->flink)
23 - bss->flink->beacon_set = 0;
24 + wpa_driver_nl80211_del_beacon_all(bss);
25 }
26
27
28 @@ -8977,8 +8976,6 @@ static int wpa_driver_nl80211_if_remove(
29 } else {
30 wpa_printf(MSG_DEBUG, "nl80211: First BSS - reassign context");
31 nl80211_teardown_ap(bss);
32 - if (!bss->added_if && !drv->first_bss->next)
33 - wpa_driver_nl80211_del_beacon_all(bss);
34 nl80211_destroy_bss(bss);
35 if (!bss->added_if)
36 i802_set_iface_flags(bss, 0);