]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Retrieve driver support for EHT puncturing
authorAloka Dixit <quic_alokad@quicinc.com>
Tue, 14 Mar 2023 04:59:14 +0000 (21:59 -0700)
committerJouni Malinen <j@w1.fi>
Wed, 15 Mar 2023 20:07:29 +0000 (22:07 +0200)
Retrieve the driver support for preamble puncturing.

Signed-off-by: Aloka Dixit <quic_alokad@quicinc.com>
Signed-off-by: Muna Sinada <quic_msinada@quicinc.com>
src/drivers/driver_nl80211.h
src/drivers/driver_nl80211_capa.c

index 2c4faa373c9bd955b1078cff17673818a55e129a..8bfbdd5715e2286bbfd1c956fd215e101bd5acdc 100644 (file)
@@ -198,6 +198,7 @@ struct wpa_driver_nl80211_data {
        unsigned int brcm_do_acs:1;
        unsigned int uses_6ghz:1;
        unsigned int secure_ranging_ctx_vendor_cmd_avail:1;
+       unsigned int puncturing:1;
 
        u64 vendor_scan_cookie;
        u64 remain_on_chan_cookie;
index 53b50045c46c8839116287a47b320fb875605e6e..27ab1d9c2bfdecfc92dd47768454936bfc341f49 100644 (file)
@@ -664,6 +664,9 @@ static void wiphy_info_ext_feature_flags(struct wiphy_info_data *info,
                              NL80211_EXT_FEATURE_UNSOL_BCAST_PROBE_RESP))
                info->drv->unsol_bcast_probe_resp = 1;
 
+       if (ext_feature_isset(ext_features, len, NL80211_EXT_FEATURE_PUNCT))
+               info->drv->puncturing = 1;
+
        if (ext_feature_isset(ext_features, len,
                              NL80211_EXT_FEATURE_BEACON_PROTECTION_CLIENT))
                capa->flags2 |= WPA_DRIVER_FLAGS2_BEACON_PROTECTION_CLIENT;