From 29073d2cf53091754dca8f7d63ee493aa0dc5a70 Mon Sep 17 00:00:00 2001 From: Surabhi Vishnoi Date: Wed, 1 Jun 2022 10:21:24 +0530 Subject: [PATCH] qcacmn: Add QCA vendor attribute for DO_ACS to allow using existing scan entries Add a new QCA vendor attribute QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME to QCA_NL80211_VENDOR_SUBCMD_DO_ACS and opportunistically optimize time taken for ACS scan. Avoid scanning the channels which were scanned within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME milliseconds and use scan results from scan results cache for ACS scoring. For other channels, perform ACS scan and use the received scan results. Change-Id: I5f57002566870fea7444358711205392e5e84053 CRs-Fixed: 3226134 --- os_if/linux/qca_vendor.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/os_if/linux/qca_vendor.h b/os_if/linux/qca_vendor.h index 9516bd1df6..0e553d7d66 100644 --- a/os_if/linux/qca_vendor.h +++ b/os_if/linux/qca_vendor.h @@ -4340,6 +4340,12 @@ enum wifi_logger_supported_features { * Used with command to configure ACS operation for EHT mode. * Disable (flag attribute not present) - EHT disabled and * Enable (flag attribute present) - EHT enabled. + * + * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32). + * Used with command to configure how older scan can be considered for ACS + * scoring. In case scan was performed on partial set of channels configured + * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME + * (in ms), then scan only remaining channels. */ enum qca_wlan_vendor_attr_acs_offload { QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, @@ -4362,6 +4368,7 @@ enum qca_wlan_vendor_attr_acs_offload { QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17, QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18, QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19, + QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20, /* keep last */ QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST,