From: Nagasai Bharat Gatkeshwar Sainoji Date: Thu, 29 Feb 2024 15:47:58 +0000 (+0530) Subject: Add QCA vendor attribute indicating the spectral transport mode X-Git-Tag: hostap_2_11~262 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f9da72d2e183890bedf60181aa54cc720a8d0a9;p=thirdparty%2Fhostap.git Add QCA vendor attribute indicating the spectral transport mode Add a vendor attribute QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE to indicate the current spectral data transport mechanism to be used to get spectral scan samples from the driver to userspace. Signed-off-by: Jouni Malinen --- diff --git a/src/common/qca-vendor.h b/src/common/qca-vendor.h index 0856cf2ff..05fe09837 100644 --- a/src/common/qca-vendor.h +++ b/src/common/qca-vendor.h @@ -7763,6 +7763,12 @@ enum qca_wlan_vendor_attr_spectral_scan { QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31, /* Attribute used for padding for 64-bit alignment */ QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PAD = 32, + /* Spectral data transport mode. u32 attribute. It uses values + * defined in enum qca_wlan_vendor_spectral_data_transport_mode. + * This is an optional attribute. If this attribute is not populated, + * the driver should configure the default transport mode to netlink. + */ + QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE = 33, QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX = @@ -16951,4 +16957,18 @@ enum qca_wlan_vendor_attr_adjust_tx_power { QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST - 1, }; +/** + * enum qca_wlan_vendor_spectral_data_transport_mode - Attribute + * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE. + * + * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK: Use netlink to + * send spectral data to userspace applications. + * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY: Use relay interface + * to send spectral data to userspace applications. + */ +enum qca_wlan_vendor_spectral_data_transport_mode { + QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK = 0, + QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY = 1, +}; + #endif /* QCA_VENDOR_H */