[openwrt/openwrt] hostapd: fix 350-nl80211_del_beacon_bss.patch
LEDE Commits
lede-commits at lists.infradead.org
Tue Dec 13 11:04:37 PST 2022
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/2d36f60d88e9fe3af858a8d4661f0601770f5baa
commit 2d36f60d88e9fe3af858a8d4661f0601770f5baa
Author: Andre Heider <a.heider at gmail.com>
AuthorDate: Fri Nov 25 17:37:59 2022 +0100
hostapd: fix 350-nl80211_del_beacon_bss.patch
Pass the expected struct:
../src/drivers/driver_nl80211.c: In function 'wpa_driver_nl80211_del_beacon':
../src/drivers/driver_nl80211.c:2945:31: warning: passing argument 1 of 'nl80211_bss_msg' from incompatible pointer type [-Wincompatible-pointer-types]
2945 | msg = nl80211_bss_msg(drv, 0, NL80211_CMD_DEL_BEACON);
| ^~~
| |
| struct wpa_driver_nl80211_data *
../src/drivers/driver_nl80211.c:695:50: note: expected 'struct i802_bss *' but argument is of type 'struct wpa_driver_nl80211_data *'
695 | struct nl_msg * nl80211_bss_msg(struct i802_bss *bss, int flags, uint8_t cmd)
| ~~~~~~~~~~~~~~~~~^~~
Fixes: 35ff1affe8 "hostapd: update to 2022-05-08"
Signed-off-by: Andre Heider <a.heider at gmail.com>
---
.../network/services/hostapd/patches/350-nl80211_del_beacon_bss.patch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/network/services/hostapd/patches/350-nl80211_del_beacon_bss.patch b/package/network/services/hostapd/patches/350-nl80211_del_beacon_bss.patch
index 85298df7ea..a88b63e913 100644
--- a/package/network/services/hostapd/patches/350-nl80211_del_beacon_bss.patch
+++ b/package/network/services/hostapd/patches/350-nl80211_del_beacon_bss.patch
@@ -10,7 +10,7 @@
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);
++ msg = nl80211_bss_msg(bss, 0, NL80211_CMD_DEL_BEACON);
return send_and_recv_msgs(drv, msg, NULL, NULL, NULL, NULL);
}
More information about the lede-commits
mailing list