|
@@ -43,7 +43,7 @@
|
|
|
*
|
|
|
* Return: 0 for success or error code
|
|
|
*/
|
|
|
-int32_t wmi_unified_vdev_create_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_vdev_create_send(void *wmi_hdl,
|
|
|
uint8_t macaddr[IEEE80211_ADDR_LEN],
|
|
|
struct vdev_create_params *param)
|
|
|
{
|
|
@@ -63,7 +63,7 @@ int32_t wmi_unified_vdev_create_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or error code
|
|
|
*/
|
|
|
-int32_t wmi_unified_vdev_delete_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_vdev_delete_send(void *wmi_hdl,
|
|
|
uint8_t if_id)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -82,7 +82,7 @@ int32_t wmi_unified_vdev_delete_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or erro code
|
|
|
*/
|
|
|
-int32_t wmi_unified_vdev_stop_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_vdev_stop_send(void *wmi_hdl,
|
|
|
uint8_t vdev_id)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -101,7 +101,7 @@ int32_t wmi_unified_vdev_stop_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or error code
|
|
|
*/
|
|
|
-int32_t wmi_unified_vdev_down_send(void *wmi_hdl, uint8_t vdev_id)
|
|
|
+CDF_STATUS wmi_unified_vdev_down_send(void *wmi_hdl, uint8_t vdev_id)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
|
|
@@ -119,7 +119,7 @@ int32_t wmi_unified_vdev_down_send(void *wmi_hdl, uint8_t vdev_id)
|
|
|
*
|
|
|
* Return: 0 for sucess or error code
|
|
|
*/
|
|
|
-int32_t wmi_unified_peer_flush_tids_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_peer_flush_tids_send(void *wmi_hdl,
|
|
|
uint8_t peer_addr[IEEE80211_ADDR_LEN],
|
|
|
struct peer_flush_params *param)
|
|
|
{
|
|
@@ -140,7 +140,7 @@ int32_t wmi_unified_peer_flush_tids_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or error code
|
|
|
*/
|
|
|
-int32_t wmi_unified_peer_delete_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_peer_delete_send(void *wmi_hdl,
|
|
|
uint8_t
|
|
|
peer_addr[IEEE80211_ADDR_LEN],
|
|
|
uint8_t vdev_id)
|
|
@@ -162,7 +162,7 @@ int32_t wmi_unified_peer_delete_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or error code
|
|
|
*/
|
|
|
-int32_t wmi_set_peer_param_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_set_peer_param_send(void *wmi_hdl,
|
|
|
uint8_t peer_addr[IEEE80211_ADDR_LEN],
|
|
|
struct peer_set_params *param)
|
|
|
{
|
|
@@ -183,7 +183,7 @@ int32_t wmi_set_peer_param_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or error code
|
|
|
*/
|
|
|
-int32_t wmi_unified_vdev_up_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_vdev_up_send(void *wmi_hdl,
|
|
|
uint8_t bssid[IEEE80211_ADDR_LEN],
|
|
|
struct vdev_up_params *params)
|
|
|
{
|
|
@@ -205,7 +205,7 @@ int32_t wmi_unified_vdev_up_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or error code
|
|
|
*/
|
|
|
-int32_t wmi_unified_peer_create_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_peer_create_send(void *wmi_hdl,
|
|
|
struct peer_create_params *param)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -225,7 +225,7 @@ int32_t wmi_unified_peer_create_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or error code
|
|
|
*/
|
|
|
-int32_t wmi_unified_green_ap_ps_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_green_ap_ps_send(void *wmi_hdl,
|
|
|
uint32_t value, uint8_t mac_id)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -237,7 +237,7 @@ int32_t wmi_unified_green_ap_ps_send(void *wmi_hdl,
|
|
|
return CDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
#else
|
|
|
-int32_t wmi_unified_green_ap_ps_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_green_ap_ps_send(void *wmi_hdl,
|
|
|
uint32_t value, uint8_t mac_id)
|
|
|
{
|
|
|
return 0;
|
|
@@ -252,7 +252,7 @@ int32_t wmi_unified_green_ap_ps_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or error code
|
|
|
*/
|
|
|
-int32_t
|
|
|
+CDF_STATUS
|
|
|
wmi_unified_pdev_utf_cmd_send(void *wmi_hdl,
|
|
|
struct pdev_utf_params *param,
|
|
|
uint8_t mac_id)
|
|
@@ -274,7 +274,7 @@ wmi_unified_pdev_utf_cmd_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success, errno on failure
|
|
|
*/
|
|
|
-int32_t
|
|
|
+CDF_STATUS
|
|
|
wmi_unified_pdev_param_send(void *wmi_hdl,
|
|
|
struct pdev_params *param,
|
|
|
uint8_t mac_id)
|
|
@@ -296,7 +296,7 @@ wmi_unified_pdev_param_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t wmi_unified_suspend_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_suspend_send(void *wmi_hdl,
|
|
|
struct suspend_params *param,
|
|
|
uint8_t mac_id)
|
|
|
{
|
|
@@ -316,7 +316,7 @@ int32_t wmi_unified_suspend_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t wmi_unified_resume_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_resume_send(void *wmi_hdl,
|
|
|
uint8_t mac_id)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -336,7 +336,7 @@ int32_t wmi_unified_resume_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t wmi_unified_wow_enable_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_wow_enable_send(void *wmi_hdl,
|
|
|
struct wow_cmd_params *param,
|
|
|
uint8_t mac_id)
|
|
|
{
|
|
@@ -357,7 +357,7 @@ int32_t wmi_unified_wow_enable_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or error code
|
|
|
*/
|
|
|
-int32_t wmi_unified_ap_ps_cmd_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_ap_ps_cmd_send(void *wmi_hdl,
|
|
|
uint8_t *peer_addr,
|
|
|
struct ap_ps_params *param)
|
|
|
{
|
|
@@ -379,7 +379,7 @@ int32_t wmi_unified_ap_ps_cmd_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or error code
|
|
|
*/
|
|
|
-int32_t wmi_unified_sta_ps_cmd_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_sta_ps_cmd_send(void *wmi_hdl,
|
|
|
struct sta_ps_params *param)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -398,7 +398,7 @@ int32_t wmi_unified_sta_ps_cmd_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or return error
|
|
|
*/
|
|
|
-int32_t wmi_crash_inject(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_crash_inject(void *wmi_hdl,
|
|
|
struct crash_inject *param)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -417,7 +417,7 @@ int32_t wmi_crash_inject(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t
|
|
|
+CDF_STATUS
|
|
|
wmi_unified_dbglog_cmd_send(void *wmi_hdl,
|
|
|
struct dbglog_params *dbglog_param)
|
|
|
{
|
|
@@ -438,7 +438,7 @@ wmi_unified_dbglog_cmd_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t wmi_unified_vdev_set_param_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_vdev_set_param_send(void *wmi_hdl,
|
|
|
struct vdev_set_params *param)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -458,7 +458,7 @@ int32_t wmi_unified_vdev_set_param_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t wmi_unified_stats_request_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_stats_request_send(void *wmi_hdl,
|
|
|
uint8_t macaddr[IEEE80211_ADDR_LEN],
|
|
|
struct stats_request_params *param)
|
|
|
{
|
|
@@ -479,7 +479,7 @@ int32_t wmi_unified_stats_request_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t wmi_unified_packet_log_enable_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_packet_log_enable_send(void *wmi_hdl,
|
|
|
uint8_t macaddr[IEEE80211_ADDR_LEN],
|
|
|
struct packet_enable_params *param)
|
|
|
{
|
|
@@ -500,7 +500,7 @@ int32_t wmi_unified_packet_log_enable_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t wmi_unified_beacon_send_cmd(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_beacon_send_cmd(void *wmi_hdl,
|
|
|
struct beacon_params *param)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -520,7 +520,7 @@ int32_t wmi_unified_beacon_send_cmd(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t wmi_unified_peer_assoc_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_peer_assoc_send(void *wmi_hdl,
|
|
|
struct peer_assoc_params *param)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -540,7 +540,7 @@ int32_t wmi_unified_peer_assoc_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t wmi_unified_scan_start_cmd_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_scan_start_cmd_send(void *wmi_hdl,
|
|
|
struct scan_start_params *param)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -560,7 +560,7 @@ int32_t wmi_unified_scan_start_cmd_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t wmi_unified_scan_stop_cmd_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_scan_stop_cmd_send(void *wmi_hdl,
|
|
|
struct scan_stop_params *param)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -580,7 +580,7 @@ int32_t wmi_unified_scan_stop_cmd_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t wmi_unified_scan_chan_list_cmd_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_scan_chan_list_cmd_send(void *wmi_hdl,
|
|
|
struct scan_chan_list_params *param)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -599,7 +599,7 @@ int32_t wmi_unified_scan_chan_list_cmd_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success and -ve on failure.
|
|
|
*/
|
|
|
-int32_t wmi_mgmt_unified_cmd_send(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_mgmt_unified_cmd_send(void *wmi_hdl,
|
|
|
struct wmi_mgmt_params *param)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -618,7 +618,7 @@ int32_t wmi_mgmt_unified_cmd_send(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or error code
|
|
|
*/
|
|
|
-int32_t wmi_unified_modem_power_state(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_modem_power_state(void *wmi_hdl,
|
|
|
uint32_t param_value)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -638,7 +638,7 @@ int32_t wmi_unified_modem_power_state(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 for success or error code.
|
|
|
*/
|
|
|
-int32_t wmi_unified_set_sta_ps_mode(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_set_sta_ps_mode(void *wmi_hdl,
|
|
|
uint32_t vdev_id, uint8_t val)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -658,7 +658,7 @@ int32_t wmi_unified_set_sta_ps_mode(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: CDF_STATUS_SUCCESS for success or error code.
|
|
|
*/
|
|
|
-int32_t wmi_unified_set_mimops(void *wmi_hdl, uint8_t vdev_id, int value)
|
|
|
+CDF_STATUS wmi_unified_set_mimops(void *wmi_hdl, uint8_t vdev_id, int value)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
|
|
@@ -677,7 +677,7 @@ int32_t wmi_unified_set_mimops(void *wmi_hdl, uint8_t vdev_id, int value)
|
|
|
*
|
|
|
* Return: CDF_STATUS_SUCCESS for success or error code.
|
|
|
*/
|
|
|
-int32_t wmi_unified_set_smps_params(void *wmi_hdl, uint8_t vdev_id,
|
|
|
+CDF_STATUS wmi_unified_set_smps_params(void *wmi_hdl, uint8_t vdev_id,
|
|
|
int value)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -697,7 +697,7 @@ int32_t wmi_unified_set_smps_params(void *wmi_hdl, uint8_t vdev_id,
|
|
|
*
|
|
|
* Return: none
|
|
|
*/
|
|
|
-int32_t wmi_unified_set_p2pgo_oppps_req(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_set_p2pgo_oppps_req(void *wmi_hdl,
|
|
|
struct p2p_ps_params *oppps)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -716,7 +716,7 @@ int32_t wmi_unified_set_p2pgo_oppps_req(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: none
|
|
|
*/
|
|
|
-int32_t wmi_unified_set_p2pgo_noa_req_cmd(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_set_p2pgo_noa_req_cmd(void *wmi_hdl,
|
|
|
struct p2p_ps_params *noa)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -734,7 +734,7 @@ int32_t wmi_unified_set_p2pgo_noa_req_cmd(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: CDF_STATUS_SUCCESS for success or error code.
|
|
|
*/
|
|
|
-int32_t wmi_unified_get_temperature(void *wmi_hdl)
|
|
|
+CDF_STATUS wmi_unified_get_temperature(void *wmi_hdl)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
|
|
@@ -757,7 +757,7 @@ int32_t wmi_unified_get_temperature(void *wmi_hdl)
|
|
|
*
|
|
|
* Return: 0 for success or error code.
|
|
|
*/
|
|
|
-int32_t
|
|
|
+CDF_STATUS
|
|
|
wmi_unified_set_sta_uapsd_auto_trig_cmd(void *wmi_hdl,
|
|
|
struct sta_uapsd_trig_params *param)
|
|
|
{
|
|
@@ -778,7 +778,7 @@ wmi_unified_set_sta_uapsd_auto_trig_cmd(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on succes
|
|
|
*/
|
|
|
-int32_t wmi_unified_ocb_start_timing_advert(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_ocb_start_timing_advert(void *wmi_hdl,
|
|
|
struct ocb_timing_advert_param *timing_advert)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -798,7 +798,7 @@ int32_t wmi_unified_ocb_start_timing_advert(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on succes
|
|
|
*/
|
|
|
-int32_t wmi_unified_ocb_stop_timing_advert(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_ocb_stop_timing_advert(void *wmi_hdl,
|
|
|
struct ocb_timing_advert_param *timing_advert)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -817,7 +817,7 @@ int32_t wmi_unified_ocb_stop_timing_advert(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on succes
|
|
|
*/
|
|
|
-int32_t wmi_unified_ocb_set_utc_time_cmd(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_ocb_set_utc_time_cmd(void *wmi_hdl,
|
|
|
struct ocb_utc_param *utc)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -836,7 +836,7 @@ int32_t wmi_unified_ocb_set_utc_time_cmd(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on succes
|
|
|
*/
|
|
|
-int32_t wmi_unified_ocb_get_tsf_timer(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_ocb_get_tsf_timer(void *wmi_hdl,
|
|
|
uint8_t vdev_id)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -855,7 +855,7 @@ int32_t wmi_unified_ocb_get_tsf_timer(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on succes
|
|
|
*/
|
|
|
-int32_t wmi_unified_dcc_get_stats_cmd(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_dcc_get_stats_cmd(void *wmi_hdl,
|
|
|
struct dcc_get_stats_param *get_stats_param)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -874,7 +874,7 @@ int32_t wmi_unified_dcc_get_stats_cmd(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on succes
|
|
|
*/
|
|
|
-int32_t wmi_unified_dcc_clear_stats(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_dcc_clear_stats(void *wmi_hdl,
|
|
|
uint32_t vdev_id, uint32_t dcc_stats_bitmap)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -893,7 +893,7 @@ int32_t wmi_unified_dcc_clear_stats(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success
|
|
|
*/
|
|
|
-int32_t wmi_unified_dcc_update_ndl(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_dcc_update_ndl(void *wmi_hdl,
|
|
|
struct dcc_update_ndl_param *update_ndl_param)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -912,7 +912,7 @@ int32_t wmi_unified_dcc_update_ndl(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: 0 on success
|
|
|
*/
|
|
|
-int32_t wmi_unified_ocb_set_config(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_ocb_set_config(void *wmi_hdl,
|
|
|
struct ocb_config_param *config, uint32_t *ch_mhz)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -933,7 +933,7 @@ int32_t wmi_unified_ocb_set_config(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: CDF_STATUS_SUCCESS for sucess or error code
|
|
|
*/
|
|
|
-int32_t wmi_unified_set_enable_disable_mcc_adaptive_scheduler_cmd(
|
|
|
+CDF_STATUS wmi_unified_set_enable_disable_mcc_adaptive_scheduler_cmd(
|
|
|
void *wmi_hdl, uint32_t mcc_adaptive_scheduler)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -957,8 +957,7 @@ int32_t wmi_unified_set_enable_disable_mcc_adaptive_scheduler_cmd(
|
|
|
*
|
|
|
* Return: CDF status
|
|
|
*/
|
|
|
-int32_t wmi_unified_set_mcc_channel_time_latency_cmd
|
|
|
- (void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_set_mcc_channel_time_latency_cmd(void *wmi_hdl,
|
|
|
uint32_t mcc_channel_freq, uint32_t mcc_channel_time_latency)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -980,10 +979,9 @@ int32_t wmi_unified_set_mcc_channel_time_latency_cmd
|
|
|
*
|
|
|
* Return: CDF status
|
|
|
*/
|
|
|
-int32_t wmi_unified_set_mcc_channel_time_quota_cmd
|
|
|
- (void *wmi_hdl,
|
|
|
- uint32_t adapter_1_chan_freq,
|
|
|
- uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq)
|
|
|
+CDF_STATUS wmi_unified_set_mcc_channel_time_quota_cmd(void *wmi_hdl,
|
|
|
+ uint32_t adapter_1_chan_freq,
|
|
|
+ uint32_t adapter_1_quota, uint32_t adapter_2_chan_freq)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
|
|
@@ -1006,7 +1004,7 @@ int32_t wmi_unified_set_mcc_channel_time_quota_cmd
|
|
|
*
|
|
|
* Return: CDF_STATUS_SUCCESS for success otherwise failure
|
|
|
*/
|
|
|
-int32_t wmi_unified_set_thermal_mgmt_cmd(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_set_thermal_mgmt_cmd(void *wmi_hdl,
|
|
|
struct thermal_cmd_params *thermal_info)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -1030,7 +1028,7 @@ int32_t wmi_unified_set_thermal_mgmt_cmd(void *wmi_hdl,
|
|
|
*
|
|
|
* Return: CDF_STATUS_SUCCESS for success otherwise failure
|
|
|
*/
|
|
|
-int32_t wmi_unified_lro_config_cmd(void *wmi_hdl,
|
|
|
+CDF_STATUS wmi_unified_lro_config_cmd(void *wmi_hdl,
|
|
|
struct wmi_lro_config_cmd_t *wmi_lro_cmd)
|
|
|
{
|
|
|
wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
@@ -1041,3 +1039,640 @@ int32_t wmi_unified_lro_config_cmd(void *wmi_hdl,
|
|
|
|
|
|
return CDF_STATUS_E_FAILURE;
|
|
|
}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_bcn_buf_ll_cmd() - prepare and send beacon buffer to fw for LL
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @param: bcn ll cmd parameter
|
|
|
+ *
|
|
|
+ * Return: CDF_STATUS_SUCCESS for success otherwise failure
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_bcn_buf_ll_cmd(void *wmi_hdl,
|
|
|
+ wmi_bcn_send_from_host_cmd_fixed_param *param)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_bcn_buf_ll_cmd)
|
|
|
+ return wmi_handle->ops->send_bcn_buf_ll_cmd(wmi_handle,
|
|
|
+ param);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_set_sta_sa_query_param_cmd() - set sta sa query parameters
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @vdev_id: vdev id
|
|
|
+ * @max_retries: max retries
|
|
|
+ * @retry_interval: retry interval
|
|
|
+ * This function sets sta query related parameters in fw.
|
|
|
+ *
|
|
|
+ * Return: CDF_STATUS_SUCCESS for success otherwise failure
|
|
|
+ */
|
|
|
+
|
|
|
+CDF_STATUS wmi_unified_set_sta_sa_query_param_cmd(void *wmi_hdl,
|
|
|
+ uint8_t vdev_id, uint32_t max_retries,
|
|
|
+ uint32_t retry_interval)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_set_sta_sa_query_param_cmd)
|
|
|
+ return wmi_handle->ops->send_set_sta_sa_query_param_cmd(wmi_handle,
|
|
|
+ vdev_id, max_retries,
|
|
|
+ retry_interval);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_set_sta_keep_alive_cmd() - set sta keep alive parameters
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @params: sta keep alive parameter
|
|
|
+ *
|
|
|
+ * This function sets keep alive related parameters in fw.
|
|
|
+ *
|
|
|
+ * Return: none
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_set_sta_keep_alive_cmd(void *wmi_hdl,
|
|
|
+ struct sta_params *params)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_set_sta_keep_alive_cmd)
|
|
|
+ return wmi_handle->ops->send_set_sta_keep_alive_cmd(wmi_handle,
|
|
|
+ params);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_vdev_set_gtx_cfg_cmd() - set GTX params
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @if_id: vdev id
|
|
|
+ * @gtx_info: GTX config params
|
|
|
+ *
|
|
|
+ * This function set GTX related params in firmware.
|
|
|
+ *
|
|
|
+ * Return: 0 for success or error code
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_vdev_set_gtx_cfg_cmd(void *wmi_hdl, uint32_t if_id,
|
|
|
+ struct wmi_gtx_config *gtx_info)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_vdev_set_gtx_cfg_cmd)
|
|
|
+ return wmi_handle->ops->send_vdev_set_gtx_cfg_cmd(wmi_handle,
|
|
|
+ if_id, gtx_info);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_process_update_edca_param() - update EDCA params
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @edca_params: edca parameters
|
|
|
+ *
|
|
|
+ * This function updates EDCA parameters to the target
|
|
|
+ *
|
|
|
+ * Return: CDF Status
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_process_update_edca_param(void *wmi_hdl,
|
|
|
+ uint8_t vdev_id,
|
|
|
+ wmi_wmm_vparams gwmm_param[WMI_MAX_NUM_AC])
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_process_update_edca_param_cmd)
|
|
|
+ return wmi_handle->ops->send_process_update_edca_param_cmd(wmi_handle,
|
|
|
+ vdev_id, gwmm_param);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_probe_rsp_tmpl_send_cmd() - send probe response template to fw
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @vdev_id: vdev id
|
|
|
+ * @probe_rsp_info: probe response info
|
|
|
+ *
|
|
|
+ * Return: 0 for success or error code
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_probe_rsp_tmpl_send_cmd(void *wmi_hdl,
|
|
|
+ uint8_t vdev_id,
|
|
|
+ struct wmi_probe_resp_params *probe_rsp_info,
|
|
|
+ uint8_t *frm)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_probe_rsp_tmpl_send_cmd)
|
|
|
+ return wmi_handle->ops->send_probe_rsp_tmpl_send_cmd(wmi_handle,
|
|
|
+ vdev_id, probe_rsp_info,
|
|
|
+ frm);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_p2p_go_set_beacon_ie_cmd() - set beacon IE for p2p go
|
|
|
+ * @wma_handle: wma handle
|
|
|
+ * @vdev_id: vdev id
|
|
|
+ * @p2p_ie: p2p IE
|
|
|
+ *
|
|
|
+ * Return: 0 for success or error code
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_p2p_go_set_beacon_ie_cmd(void *wmi_hdl,
|
|
|
+ A_UINT32 vdev_id, uint8_t *p2p_ie)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_p2p_go_set_beacon_ie_cmd)
|
|
|
+ return wmi_handle->ops->send_p2p_go_set_beacon_ie_cmd(wmi_handle,
|
|
|
+ vdev_id, p2p_ie);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_set_gateway_params_cmd() - set gateway parameters
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @req: gateway parameter update request structure
|
|
|
+ *
|
|
|
+ * This function reads the incoming @req and fill in the destination
|
|
|
+ * WMI structure and sends down the gateway configs down to the firmware
|
|
|
+ *
|
|
|
+ * Return: CDF_STATUS
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_set_gateway_params_cmd(void *wmi_hdl,
|
|
|
+ struct gateway_update_req_param *req)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_set_gateway_params_cmd)
|
|
|
+ return wmi_handle->ops->send_set_gateway_params_cmd(wmi_handle,
|
|
|
+ req);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_set_rssi_monitoring_cmd() - set rssi monitoring
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @req: rssi monitoring request structure
|
|
|
+ *
|
|
|
+ * This function reads the incoming @req and fill in the destination
|
|
|
+ * WMI structure and send down the rssi monitoring configs down to the firmware
|
|
|
+ *
|
|
|
+ * Return: 0 on success; error number otherwise
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_set_rssi_monitoring_cmd(void *wmi_hdl,
|
|
|
+ struct rssi_monitor_param *req)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_pno_start_cmd)
|
|
|
+ return wmi_handle->ops->send_set_rssi_monitoring_cmd(wmi_handle,
|
|
|
+ req);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_scan_probe_setoui_cmd() - set scan probe OUI
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @psetoui: OUI parameters
|
|
|
+ *
|
|
|
+ * set scan probe OUI parameters in firmware
|
|
|
+ *
|
|
|
+ * Return: CDF status
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_scan_probe_setoui_cmd(void *wmi_hdl,
|
|
|
+ struct scan_mac_oui *psetoui)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_scan_probe_setoui_cmd)
|
|
|
+ return wmi_handle->ops->send_scan_probe_setoui_cmd(wmi_handle,
|
|
|
+ psetoui);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_reset_passpoint_network_list_cmd() - reset passpoint network list
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @req: passpoint network request structure
|
|
|
+ *
|
|
|
+ * This function sends down WMI command with network id set to wildcard id.
|
|
|
+ * firmware shall clear all the config entries
|
|
|
+ *
|
|
|
+ * Return: CDF_STATUS enumeration
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_reset_passpoint_network_list_cmd(void *wmi_hdl,
|
|
|
+ struct wifi_passpoint_req_param *req)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_reset_passpoint_network_list_cmd)
|
|
|
+ return wmi_handle->ops->send_reset_passpoint_network_list_cmd(wmi_handle,
|
|
|
+ req);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_set_passpoint_network_list_cmd() - set passpoint network list
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @req: passpoint network request structure
|
|
|
+ *
|
|
|
+ * This function reads the incoming @req and fill in the destination
|
|
|
+ * WMI structure and send down the passpoint configs down to the firmware
|
|
|
+ *
|
|
|
+ * Return: CDF_STATUS enumeration
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_set_passpoint_network_list_cmd(void *wmi_hdl,
|
|
|
+ struct wifi_passpoint_req_param *req)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_set_passpoint_network_list_cmd)
|
|
|
+ return wmi_handle->ops->send_set_passpoint_network_list_cmd(wmi_handle,
|
|
|
+ req);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/** wmi_unified_set_epno_network_list_cmd() - set epno network list
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @req: epno config params request structure
|
|
|
+ *
|
|
|
+ * This function reads the incoming epno config request structure
|
|
|
+ * and constructs the WMI message to the firmware.
|
|
|
+ *
|
|
|
+ * Returns: 0 on success, error number otherwise
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_set_epno_network_list_cmd(void *wmi_hdl,
|
|
|
+ struct wifi_enhanched_pno_params *req)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_set_epno_network_list_cmd)
|
|
|
+ return wmi_handle->ops->send_set_epno_network_list_cmd(wmi_handle,
|
|
|
+ req);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/** wmi_unified_ipa_offload_control_cmd() - ipa offload control parameter
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @ipa_offload: ipa offload control parameter
|
|
|
+ *
|
|
|
+ * Returns: 0 on success, error number otherwise
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_ipa_offload_control_cmd(void *wmi_hdl,
|
|
|
+ struct ipa_offload_control_params *ipa_offload)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_ipa_offload_control_cmd)
|
|
|
+ return wmi_handle->ops->send_ipa_offload_control_cmd(wmi_handle,
|
|
|
+ ipa_offload);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_extscan_get_capabilities_cmd() - extscan get capabilities
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @pgetcapab: get capabilities params
|
|
|
+ *
|
|
|
+ * This function send request to fw to get extscan capabilities.
|
|
|
+ *
|
|
|
+ * Return: CDF status
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_extscan_get_capabilities_cmd(void *wmi_hdl,
|
|
|
+ struct extscan_capabilities_params *pgetcapab)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_extscan_get_capabilities_cmd)
|
|
|
+ return wmi_handle->ops->send_extscan_get_capabilities_cmd(wmi_handle,
|
|
|
+ pgetcapab);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_extscan_get_cached_results_cmd() - extscan get cached results
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @pcached_results: cached results parameters
|
|
|
+ *
|
|
|
+ * This function send request to fw to get cached results.
|
|
|
+ *
|
|
|
+ * Return: CDF status
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_extscan_get_cached_results_cmd(void *wmi_hdl,
|
|
|
+ struct extscan_cached_result_params *pcached_results)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_extscan_get_cached_results_cmd)
|
|
|
+ return wmi_handle->ops->send_extscan_get_cached_results_cmd(wmi_handle,
|
|
|
+ pcached_results);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_extscan_stop_change_monitor_cmd() - send stop change monitor cmd
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @reset_req: Reset change request params
|
|
|
+ *
|
|
|
+ * This function sends stop change monitor request to fw.
|
|
|
+ *
|
|
|
+ * Return: CDF status
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_extscan_stop_change_monitor_cmd(void *wmi_hdl,
|
|
|
+ struct extscan_capabilities_reset_params *reset_req)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_extscan_stop_change_monitor_cmd)
|
|
|
+ return wmi_handle->ops->send_extscan_stop_change_monitor_cmd(wmi_handle,
|
|
|
+ reset_req);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_extscan_start_change_monitor_cmd() - start change monitor cmd
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @psigchange: change monitor request params
|
|
|
+ *
|
|
|
+ * This function sends start change monitor request to fw.
|
|
|
+ *
|
|
|
+ * Return: CDF status
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_extscan_start_change_monitor_cmd(void *wmi_hdl,
|
|
|
+ struct extscan_set_sig_changereq_params *
|
|
|
+ psigchange)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_extscan_start_change_monitor_cmd)
|
|
|
+ return wmi_handle->ops->send_extscan_start_change_monitor_cmd(wmi_handle,
|
|
|
+ psigchange);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_extscan_stop_hotlist_monitor_cmd() - stop hotlist monitor
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @photlist_reset: hotlist reset params
|
|
|
+ *
|
|
|
+ * This function configures hotlist monitor to stop in fw.
|
|
|
+ *
|
|
|
+ * Return: CDF status
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_extscan_stop_hotlist_monitor_cmd(void *wmi_hdl,
|
|
|
+ struct extscan_bssid_hotlist_reset_params *photlist_reset)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_extscan_stop_hotlist_monitor_cmd)
|
|
|
+ return wmi_handle->ops->send_extscan_stop_hotlist_monitor_cmd(wmi_handle,
|
|
|
+ photlist_reset);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_stop_extscan_cmd() - stop extscan command to fw.
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @pstopcmd: stop scan command request params
|
|
|
+ *
|
|
|
+ * This function sends stop extscan request to fw.
|
|
|
+ *
|
|
|
+ * Return: CDF Status.
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_stop_extscan_cmd(void *wmi_hdl,
|
|
|
+ struct extscan_stop_req_params *pstopcmd)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_stop_extscan_cmd)
|
|
|
+ return wmi_handle->ops->send_stop_extscan_cmd(wmi_handle,
|
|
|
+ pstopcmd);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_start_extscan_cmd() - start extscan command to fw.
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @pstart: scan command request params
|
|
|
+ *
|
|
|
+ * This function sends start extscan request to fw.
|
|
|
+ *
|
|
|
+ * Return: CDF Status.
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_start_extscan_cmd(void *wmi_hdl,
|
|
|
+ struct wifi_scan_cmd_req_params *pstart)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_start_extscan_cmd)
|
|
|
+ return wmi_handle->ops->send_start_extscan_cmd(wmi_handle,
|
|
|
+ pstart);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_plm_stop_cmd() - plm stop request
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @plm: plm request parameters
|
|
|
+ *
|
|
|
+ * This function request FW to stop PLM.
|
|
|
+ *
|
|
|
+ * Return: CDF status
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_plm_stop_cmd(void *wmi_hdl,
|
|
|
+ const struct plm_req_params *plm)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_plm_stop_cmd)
|
|
|
+ return wmi_handle->ops->send_plm_stop_cmd(wmi_handle,
|
|
|
+ plm);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_plm_start_cmd() - plm start request
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @plm: plm request parameters
|
|
|
+ *
|
|
|
+ * This function request FW to start PLM.
|
|
|
+ *
|
|
|
+ * Return: CDF status
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_plm_start_cmd(void *wmi_hdl,
|
|
|
+ const struct plm_req_params *plm,
|
|
|
+ uint32_t *gchannel_list)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_plm_start_cmd)
|
|
|
+ return wmi_handle->ops->send_plm_start_cmd(wmi_handle,
|
|
|
+ plm, gchannel_list);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * send_pno_stop_cmd() - PNO stop request
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @vdev_id: vdev id
|
|
|
+ *
|
|
|
+ * This function request FW to stop ongoing PNO operation.
|
|
|
+ *
|
|
|
+ * Return: CDF status
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_pno_stop_cmd(void *wmi_hdl, uint8_t vdev_id)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_pno_stop_cmd)
|
|
|
+ return wmi_handle->ops->send_pno_stop_cmd(wmi_handle,
|
|
|
+ vdev_id);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_pno_start_cmd() - PNO start request
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @pno: PNO request
|
|
|
+ * @gchannel_freq_list: channel frequency list
|
|
|
+ *
|
|
|
+ * This function request FW to start PNO request.
|
|
|
+ * Request: CDF status
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_pno_start_cmd(void *wmi_hdl,
|
|
|
+ struct pno_scan_req_params *pno,
|
|
|
+ uint32_t *gchannel_freq_list)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_pno_start_cmd)
|
|
|
+ return wmi_handle->ops->send_pno_start_cmd(wmi_handle,
|
|
|
+ pno, gchannel_freq_list);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/* wmi_unified_set_ric_req_cmd() - set ric request element
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @msg: message
|
|
|
+ * @is_add_ts: is addts required
|
|
|
+ *
|
|
|
+ * This function sets ric request element for 11r roaming.
|
|
|
+ *
|
|
|
+ * Return: none
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_set_ric_req_cmd(void *wmi_hdl, void *msg,
|
|
|
+ uint8_t is_add_ts)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_set_ric_req_cmd)
|
|
|
+ return wmi_handle->ops->send_set_ric_req_cmd(wmi_handle, msg,
|
|
|
+ is_add_ts);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_process_ll_stats_clear_cmd() - clear link layer stats
|
|
|
+ * @wmi_hdl: wmi handle
|
|
|
+ * @clear_req: ll stats clear request command params
|
|
|
+ * @addr: mac address
|
|
|
+ *
|
|
|
+ * Return: CDF_STATUS_SUCCESS for success or error code
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_process_ll_stats_clear_cmd(void *wmi_hdl,
|
|
|
+ const struct ll_stats_clear_params *clear_req,
|
|
|
+ uint8_t addr[IEEE80211_ADDR_LEN])
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_process_ll_stats_clear_cmd)
|
|
|
+ return wmi_handle->ops->send_process_ll_stats_clear_cmd(wmi_handle,
|
|
|
+ clear_req, addr);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_process_ll_stats_get_cmd() - link layer stats get request
|
|
|
+ * @wmi_hdl:wmi handle
|
|
|
+ * @get_req:ll stats get request command params
|
|
|
+ *
|
|
|
+ * Return: CDF_STATUS_SUCCESS for success or error code
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_process_ll_stats_get_cmd(void *wmi_hdl,
|
|
|
+ const struct ll_stats_get_params *get_req,
|
|
|
+ uint8_t addr[IEEE80211_ADDR_LEN])
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_process_ll_stats_get_cmd)
|
|
|
+ return wmi_handle->ops->send_process_ll_stats_get_cmd(wmi_handle,
|
|
|
+ get_req, addr);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_get_stats_cmd() - get stats request
|
|
|
+ * @wmi_hdl: wma handle
|
|
|
+ * @get_stats_param: stats params
|
|
|
+ * @addr: mac address
|
|
|
+ *
|
|
|
+ * Return: none
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_get_stats_cmd(void *wmi_hdl,
|
|
|
+ struct pe_stats_req *get_stats_param,
|
|
|
+ uint8_t addr[IEEE80211_ADDR_LEN])
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_get_stats_cmd)
|
|
|
+ return wmi_handle->ops->send_get_stats_cmd(wmi_handle,
|
|
|
+ get_stats_param, addr);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|
|
|
+
|
|
|
+/**
|
|
|
+ * wmi_unified_process_ll_stats_set_cmd() - link layer stats set request
|
|
|
+ * @wmi_handle: wmi handle
|
|
|
+ * @set_req: ll stats set request command params
|
|
|
+ *
|
|
|
+ * Return: CDF_STATUS_SUCCESS for success or error code
|
|
|
+ */
|
|
|
+CDF_STATUS wmi_unified_process_ll_stats_set_cmd(void *wmi_hdl,
|
|
|
+ const struct ll_stats_set_params *set_req)
|
|
|
+{
|
|
|
+ wmi_unified_t wmi_handle = (wmi_unified_t) wmi_hdl;
|
|
|
+
|
|
|
+ if (wmi_handle->ops->send_process_ll_stats_set_cmd)
|
|
|
+ return wmi_handle->ops->send_process_ll_stats_set_cmd(wmi_handle,
|
|
|
+ set_req);
|
|
|
+
|
|
|
+ return CDF_STATUS_E_FAILURE;
|
|
|
+}
|