From: Pabitra Dash Date: Tue, 13 Jan 2026 11:21:47 +0000 (+0530) Subject: Define QCA vendor attribute for QSH Wi-Fi scan control X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d302ce1871f8c539d92352867690a2c7d1edbe1;p=thirdparty%2Fhostap.git Define QCA vendor attribute for QSH Wi-Fi scan control Context-aware modules like Qualcomm Sensing Hub (QSH) run in low-power domains (e.g., Sensor DSP) and require Wi-Fi scan and ranging services for location and context-awareness purposes. These services often operate continuously, even while the host system is in power-save sleep mode, without involving the host subsystem. However, during critical latency-sensitive use cases, the host subsystem needs to temporarily suspend these services. To enable that, add an attribute QCA_WLAN_VENDOR_ATTR_CONFIG_QSH_SCAN_CTRL in the existing vendor subcmd QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION for managing QSH Wi-Fi scanning. Signed-off-by: Pabitra Dash --- diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index d27fcd812..749309f41 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -4205,6 +4205,19 @@ enum qca_wlan_vendor_attr_config { */ QCA_WLAN_VENDOR_ATTR_CONFIG_ALLOW_STA_DFS_CH_SCC_P2P = 140, + /* + * 8-bit unsigned value to enable or disable QSH-initiated Wi-Fi scans, + * providing a mechanism to optimize power consumption. By default, this + * feature is enabled. + * + * Valid values: + * 0 - Disable + * 1 - Enable + * + * Values other than 0 or 1 are invalid and shall be rejected. + */ + QCA_WLAN_VENDOR_ATTR_CONFIG_QSH_SCAN_CTRL = 141, + /* keep last */ QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =