From 9e79439fcbd93b2097863bbc519884f9be617f1a Mon Sep 17 00:00:00 2001 From: Aloka Dixit Date: Mon, 13 Mar 2023 21:59:14 -0700 Subject: [PATCH] nl80211: Retrieve driver support for EHT puncturing Retrieve the driver support for preamble puncturing. Signed-off-by: Aloka Dixit Signed-off-by: Muna Sinada --- src/drivers/driver_nl80211.h | 1 + src/drivers/driver_nl80211_capa.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/drivers/driver_nl80211.h b/src/drivers/driver_nl80211.h index 2c4faa373..8bfbdd571 100644 --- a/src/drivers/driver_nl80211.h +++ b/src/drivers/driver_nl80211.h @@ -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; diff --git a/src/drivers/driver_nl80211_capa.c b/src/drivers/driver_nl80211_capa.c index 53b50045c..27ab1d9c2 100644 --- a/src/drivers/driver_nl80211_capa.c +++ b/src/drivers/driver_nl80211_capa.c @@ -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;