]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Define QCA vendor attribute for QSH Wi-Fi scan control
authorPabitra Dash <pdash@qti.qualcomm.com>
Tue, 13 Jan 2026 11:21:47 +0000 (16:51 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 22 Jan 2026 15:53:24 +0000 (17:53 +0200)
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 <pdash@qti.qualcomm.com>
src/common/qca-vendor.h

index d27fcd8122ae0c50fa3a05e796a8ecb0c8fe19bd..749309f4105ad60fdf7a95180837e9514ee0c2bd 100644 (file)
@@ -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 =