]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Rename driver capability for radar background detection
authorGokul Sivakumar <gokulkumar.sivakumar@infineon.com>
Wed, 26 Apr 2023 10:45:56 +0000 (16:15 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 6 Nov 2023 13:07:01 +0000 (15:07 +0200)
Use the WPA_DRIVER_FLAGS2_ prefer for this to be more consistent.

Signed-off-by: Gokul Sivakumar <gokulkumar.sivakumar@infineon.com>
src/ap/dfs.c
src/drivers/driver.h
src/drivers/driver_nl80211_capa.c

index 414e546cfe488d994ceb0a5627575ea02c5d73cf..9a5d3c80a475472ca585e7e13ab2a7e39c697ac9 100644 (file)
@@ -34,7 +34,7 @@ dfs_downgrade_bandwidth(struct hostapd_iface *iface, int *secondary_channel,
 
 static bool dfs_use_radar_background(struct hostapd_iface *iface)
 {
-       return (iface->drv_flags2 & WPA_DRIVER_RADAR_BACKGROUND) &&
+       return (iface->drv_flags2 & WPA_DRIVER_FLAGS2_RADAR_BACKGROUND) &&
                iface->conf->enable_background_radar;
 }
 
index b23853a6b7cf4cfc396296342f1f8d5cc8d3b91c..24016b3449d8d382172af9b1fa15b9cb96c13df6 100644 (file)
@@ -2265,7 +2265,7 @@ struct wpa_driver_capa {
 /** Driver handles SA Query procedures in AP mode */
 #define WPA_DRIVER_FLAGS2_SA_QUERY_OFFLOAD_AP  0x0000000000000200ULL
 /** Driver supports background radar/CAC detection */
-#define WPA_DRIVER_RADAR_BACKGROUND            0x0000000000000400ULL
+#define WPA_DRIVER_FLAGS2_RADAR_BACKGROUND     0x0000000000000400ULL
 /** Driver supports secure LTF in STA mode */
 #define WPA_DRIVER_FLAGS2_SEC_LTF_STA          0x0000000000000800ULL
 /** Driver supports secure RTT measurement exchange in STA mode */
index 600d4b67f0f63fab70a4b8d25f6148b1cfff7749..84b24e654ac85b21f48b7e7771986c34b49d7bd6 100644 (file)
@@ -681,7 +681,7 @@ static void wiphy_info_ext_feature_flags(struct wiphy_info_data *info,
 
        if (ext_feature_isset(ext_features, len,
                              NL80211_EXT_FEATURE_RADAR_BACKGROUND))
-               capa->flags2 |= WPA_DRIVER_RADAR_BACKGROUND;
+               capa->flags2 |= WPA_DRIVER_FLAGS2_RADAR_BACKGROUND;
 
        if (ext_feature_isset(ext_features, len,
                              NL80211_EXT_FEATURE_SECURE_LTF)) {