From bb96540ef55326b324e953da5b331bbcf529d9db Mon Sep 17 00:00:00 2001 From: Purushottam Kushwaha Date: Tue, 30 Jul 2024 19:01:51 +0530 Subject: [PATCH] Add QCA vendor attribute to skip recently scanned channels Add a new vendor attribute QCA_WLAN_VENDOR_ATTR_SCAN_SKIP_CHANNEL_RECENCY_PERIOD for sub command QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN to skip the recently scanned channels within specified time (in ms), thus reducing the number of channels for requested scan. Signed-off-by: Purushottam Kushwaha --- src/common/qca-vendor.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index f5dc60c59..89b5c9260 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -2700,6 +2700,9 @@ enum qca_wlan_vendor_scan_priority { * when AP is operating as MLD to specify which link is requesting the * scan or which link the scan result is for. No need of this attribute * in other cases. + * @QCA_WLAN_VENDOR_ATTR_SCAN_SKIP_CHANNEL_RECENCY_PERIOD: Optional (u32). Skip + * scanning channels which are scanned recently within configured time + * (in ms). */ enum qca_wlan_vendor_attr_scan { QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, @@ -2718,6 +2721,7 @@ enum qca_wlan_vendor_attr_scan { QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13, QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14, QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID = 15, + QCA_WLAN_VENDOR_ATTR_SCAN_SKIP_CHANNEL_RECENCY_PERIOD = 16, QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_SCAN_MAX = QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1