]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
QCA vendor attribute to configure direct data path for audio traffic
authorPurushottam Kushwaha <quic_pkushwah@quicinc.com>
Fri, 3 Jun 2022 09:44:24 +0000 (15:14 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 16 Jun 2022 14:49:45 +0000 (17:49 +0300)
Add a new QCA vendor attribute
QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH to
QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION to configure audio data
path.

Possible audio data paths are defined in enum qca_wlan_audio_data_path.

Signed-off-by: Purushottam Kushwaha <quic_pkushwah@quicinc.com>
src/common/qca-vendor.h

index 950bb8738cde649923897b9397e69c1e0e614239..acf35543fe0e1cea2ea4368f15a0b9bd767b1b00 100644 (file)
@@ -2660,6 +2660,13 @@ enum qca_wlan_vendor_attr_config {
         */
        QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81,
 
+       /*
+        * 8-bit unsigned value. This attribute can be used to configure the
+        * data path mode to be followed for audio traffic. Possible values
+        * are defined in enum qca_wlan_audio_data_path.
+        */
+       QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82,
+
        /* keep last */
        QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST,
        QCA_WLAN_VENDOR_ATTR_CONFIG_MAX =
@@ -12298,4 +12305,18 @@ enum qca_wlan_vendor_attr_ratemask_params {
        QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1,
 };
 
+/**
+ * enum qca_wlan_audio_data_path - Defines the data path to be used for audio
+ * traffic.
+ *
+ * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR:
+ * Send audio traffic through the host processor.
+ * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP:
+ * Send audio traffic using the low power DSP to/from the encoder.
+ */
+enum qca_wlan_audio_data_path {
+       QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0,
+       QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1,
+};
+
 #endif /* QCA_VENDOR_H */