[PATCH 03/21] AP: Pass STA flags as 64bit integer
Benjamin Berg
benjamin at sipsolutions.net
Tue Oct 27 06:16:49 PDT 2026
From: Benjamin Berg <benjamin.berg at intel.com>
The variable was increased but some of the calls were not updated.
Change this so that the upper bits are not lost.
Signed-off-by: Benjamin Berg <benjamin.berg at intel.com>
Reviewed-by: Andrei Otcheretianski <andrei.otcheretianski at intel.com>
---
src/ap/ap_drv_ops.c | 4 ++--
src/ap/ap_drv_ops.h | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
index dd2f5c5427..9dc8a07aef 100644
--- a/src/ap/ap_drv_ops.c
+++ b/src/ap/ap_drv_ops.c
@@ -27,7 +27,7 @@
#include "ap_drv_ops.h"
-u32 hostapd_sta_flags_to_drv(u32 flags)
+u32 hostapd_sta_flags_to_drv(u64 flags)
{
int res = 0;
if (flags & WLAN_STA_AUTHORIZED)
@@ -506,7 +506,7 @@ int hostapd_sta_add(struct hostapd_data *hapd,
const struct ieee80211_uhr_capabilities *uhr_capab,
size_t uhr_capab_len,
const struct ieee80211_he_6ghz_band_cap *he_6ghz_capab,
- u32 flags, u8 qosinfo, u8 vht_opmode, int supp_p2p_ps,
+ u64 flags, u8 qosinfo, u8 vht_opmode, int supp_p2p_ps,
int set, const u8 *link_addr, bool mld_link_sta,
u16 eml_cap, bool epp_sta)
{
diff --git a/src/ap/ap_drv_ops.h b/src/ap/ap_drv_ops.h
index cd86fb7623..5b7391e838 100644
--- a/src/ap/ap_drv_ops.h
+++ b/src/ap/ap_drv_ops.h
@@ -16,7 +16,7 @@ struct ieee80211_ht_capabilities;
struct ieee80211_vht_capabilities;
struct hostapd_freq_params;
-u32 hostapd_sta_flags_to_drv(u32 flags);
+u32 hostapd_sta_flags_to_drv(u64 flags);
int hostapd_build_ap_extra_ies(struct hostapd_data *hapd,
struct wpabuf **beacon,
struct wpabuf **proberesp,
@@ -50,7 +50,7 @@ int hostapd_sta_add(struct hostapd_data *hapd,
const struct ieee80211_uhr_capabilities *uhr_capab,
size_t uhr_capab_len,
const struct ieee80211_he_6ghz_band_cap *he_6ghz_capab,
- u32 flags, u8 qosinfo, u8 vht_opmode, int supp_p2p_ps,
+ u64 flags, u8 qosinfo, u8 vht_opmode, int supp_p2p_ps,
int set, const u8 *link_addr, bool mld_link_sta,
u16 eml_cap, bool epp_sta);
int hostapd_set_privacy(struct hostapd_data *hapd, int enabled);
--
2.56.0
More information about the Hostap
mailing list