wlan: Add support to send BT advertisement via bt_profile
Add support to send BT advertisement via bt_profile.
Usaage:
Enable BT advertisement:
echo BT_ENABLED 1 BT_ADV 1 BLE 0 A2DP 0 SCO 0 >
/sys/devices/platform/soc/a000000.qcom,wcnss-wlan/bt_profile
Disable BT advertisement:
echo BT_ENABLED 1 BT_ADV 0 BLE 0 A2DP 0 SCO 0 >
/sys/devices/platform/soc/a000000.qcom,wcnss-wlan/bt_profile
Change-Id: I234a71cc251b2c0f103aea492ab3b3b223779ff6
CRs-Fixed: 2813885
diff --git a/riva/inc/wlan_hal_msg.h b/riva/inc/wlan_hal_msg.h
index 8e038fb..23b8e25 100644
--- a/riva/inc/wlan_hal_msg.h
+++ b/riva/inc/wlan_hal_msg.h
@@ -9775,30 +9775,19 @@
#ifdef FEATURE_WLAN_SW_PTA
/**
- * enum hal_sw_pta_param_type - Type of sw pta coex param
- * @WDI_SCO_STATUS: Enable/Disable SCO
- * @WDI_NUD_STATUS: Enable/Disable NUD
- * @WDI_BT_STATUS: Enable/Disable BT
- */
-/* Copied from sirApi.h to avoid compile error */
-enum hal_sw_pta_param_type {
- HAL_SW_PTA_SCO_STATUS = 0,
- HAL_SW_PTA_NUD_STATUS = 1,
- HAL_SW_PTA_BT_STATUS = 2,
- HAL_SW_PTA_MAX = WLAN_HAL_MAX_ENUM_SIZE
-};
-
-#define HAL_SW_PTA_COEX_PARAMS_MAX_LEN 32
-/**
* hal_sw_pta_req - SW PTA coex params request
- * @param_type: sw pta coex param type
- * @length: sw pta coex params value length
- * @value: sw pta coex params value
+ * @bt_enabled: BT status
+ * @bt_adv: BT advertisement status
+ * @ble_on: BLE status
+ * @bt_a2dp: BT A2DP status
+ * @bt_sco: BT SCO status
*/
typedef PACKED_PRE struct PACKED_POST {
- enum hal_sw_pta_param_type param_type;
- uint8_t length;
- uint8_t value[HAL_SW_PTA_COEX_PARAMS_MAX_LEN];
+ uint8_t bt_enabled;
+ uint8_t bt_adv;
+ uint8_t ble_enabled;
+ uint8_t bt_a2dp;
+ uint8_t bt_sco;
} tHalSwPTAReq, *tpHalSwPTAReq;
#endif
#endif /* _WLAN_HAL_MSG_H_ */