nl80211: Retrieve driver support for EHT puncturing

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>
This commit is contained in:
Aloka Dixit 2023-03-13 21:59:14 -07:00 committed by Jouni Malinen
parent 507be376cd
commit 9e79439fcb
2 changed files with 4 additions and 0 deletions

View 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;

View 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;