From a147951eec5c37f60dcdef0dc92de28ecbba93e8 Mon Sep 17 00:00:00 2001 From: Shiva Krishna Pittala Date: Wed, 11 Aug 2021 16:49:30 +0530 Subject: [PATCH] Add QCA vendor attribute indicating the spectral scan bandwidth Add the following vendor attribute to indicate the bandwidth to be used for spectral scan operation: - QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH Signed-off-by: Jouni Malinen --- src/common/qca-vendor.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 8d07a8e4c..bcb79fe79 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -6289,6 +6289,14 @@ enum qca_wlan_vendor_attr_spectral_scan { * u32 attribute. */ QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29, + /* This attribute specifies the bandwidth to be used for spectral scan + * operation. This is an u8 attribute and uses the values in enum + * nl80211_chan_width. This is an optional attribute. + * If this attribute is not populated, the driver should configure the + * spectral scan bandwidth to the maximum value supported by the target + * for the current operating bandwidth. + */ + QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30, QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX =