qcacmn: Add tlv formation of wmi scan roam commands in common wmi layer
Move tlv formation of wmi scan roaming and management commands from umac to common wmi layer. Change-Id: I99b2651c0054d03e58da697ab7b902b5629eeb4a CRs-Fixed: 983619
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -38,7 +38,7 @@
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or error code
|
* Return: 0 for success or error code
|
||||||
*/
|
*/
|
||||||
int32_t send_vdev_create_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_vdev_create_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
uint8_t macaddr[IEEE80211_ADDR_LEN],
|
uint8_t macaddr[IEEE80211_ADDR_LEN],
|
||||||
struct vdev_create_params *param)
|
struct vdev_create_params *param)
|
||||||
{
|
{
|
||||||
@@ -52,7 +52,7 @@ int32_t send_vdev_create_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or error code
|
* Return: 0 for success or error code
|
||||||
*/
|
*/
|
||||||
int32_t send_vdev_delete_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_vdev_delete_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
uint8_t if_id)
|
uint8_t if_id)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -65,7 +65,7 @@ int32_t send_vdev_delete_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or erro code
|
* Return: 0 for success or erro code
|
||||||
*/
|
*/
|
||||||
int32_t send_vdev_stop_cmd_non_tlv(wmi_unified_t wmi,
|
CDF_STATUS send_vdev_stop_cmd_non_tlv(wmi_unified_t wmi,
|
||||||
uint8_t vdev_id)
|
uint8_t vdev_id)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -78,7 +78,7 @@ int32_t send_vdev_stop_cmd_non_tlv(wmi_unified_t wmi,
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or error code
|
* Return: 0 for success or error code
|
||||||
*/
|
*/
|
||||||
int32_t send_vdev_down_cmd_non_tlv(wmi_unified_t wmi, uint8_t vdev_id)
|
CDF_STATUS send_vdev_down_cmd_non_tlv(wmi_unified_t wmi, uint8_t vdev_id)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -91,7 +91,7 @@ int32_t send_vdev_down_cmd_non_tlv(wmi_unified_t wmi, uint8_t vdev_id)
|
|||||||
*
|
*
|
||||||
* Return: 0 for sucess or error code
|
* Return: 0 for sucess or error code
|
||||||
*/
|
*/
|
||||||
int32_t send_peer_flush_tids_cmd_non_tlv(wmi_unified_t wmi,
|
CDF_STATUS send_peer_flush_tids_cmd_non_tlv(wmi_unified_t wmi,
|
||||||
uint8_t peer_addr[IEEE80211_ADDR_LEN],
|
uint8_t peer_addr[IEEE80211_ADDR_LEN],
|
||||||
struct peer_flush_params *param)
|
struct peer_flush_params *param)
|
||||||
{
|
{
|
||||||
@@ -106,7 +106,7 @@ int32_t send_peer_flush_tids_cmd_non_tlv(wmi_unified_t wmi,
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or error code
|
* Return: 0 for success or error code
|
||||||
*/
|
*/
|
||||||
int32_t send_peer_delete_cmd_non_tlv(wmi_unified_t wmi,
|
CDF_STATUS send_peer_delete_cmd_non_tlv(wmi_unified_t wmi,
|
||||||
uint8_t
|
uint8_t
|
||||||
peer_addr[IEEE80211_ADDR_LEN],
|
peer_addr[IEEE80211_ADDR_LEN],
|
||||||
uint8_t vdev_id)
|
uint8_t vdev_id)
|
||||||
@@ -122,7 +122,7 @@ int32_t send_peer_delete_cmd_non_tlv(wmi_unified_t wmi,
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or error code
|
* Return: 0 for success or error code
|
||||||
*/
|
*/
|
||||||
int32_t send_peer_param_cmd_non_tlv(wmi_unified_t wmi,
|
CDF_STATUS send_peer_param_cmd_non_tlv(wmi_unified_t wmi,
|
||||||
uint8_t peer_addr[IEEE80211_ADDR_LEN],
|
uint8_t peer_addr[IEEE80211_ADDR_LEN],
|
||||||
struct peer_set_params *param)
|
struct peer_set_params *param)
|
||||||
{
|
{
|
||||||
@@ -137,7 +137,7 @@ int32_t send_peer_param_cmd_non_tlv(wmi_unified_t wmi,
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or error code
|
* Return: 0 for success or error code
|
||||||
*/
|
*/
|
||||||
int32_t send_vdev_up_cmd_non_tlv(wmi_unified_t wmi,
|
CDF_STATUS send_vdev_up_cmd_non_tlv(wmi_unified_t wmi,
|
||||||
uint8_t bssid[IEEE80211_ADDR_LEN],
|
uint8_t bssid[IEEE80211_ADDR_LEN],
|
||||||
struct vdev_up_params *params)
|
struct vdev_up_params *params)
|
||||||
{
|
{
|
||||||
@@ -153,7 +153,7 @@ int32_t send_vdev_up_cmd_non_tlv(wmi_unified_t wmi,
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or error code
|
* Return: 0 for success or error code
|
||||||
*/
|
*/
|
||||||
int32_t send_peer_create_cmd_non_tlv(wmi_unified_t wmi,
|
CDF_STATUS send_peer_create_cmd_non_tlv(wmi_unified_t wmi,
|
||||||
struct peer_create_params *param)
|
struct peer_create_params *param)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -167,7 +167,7 @@ int32_t send_peer_create_cmd_non_tlv(wmi_unified_t wmi,
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or error code
|
* Return: 0 for success or error code
|
||||||
*/
|
*/
|
||||||
int32_t send_green_ap_ps_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_green_ap_ps_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
uint32_t value, uint8_t mac_id)
|
uint32_t value, uint8_t mac_id)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -181,7 +181,7 @@ int32_t send_green_ap_ps_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or error code
|
* Return: 0 for success or error code
|
||||||
*/
|
*/
|
||||||
int32_t
|
CDF_STATUS
|
||||||
send_pdev_utf_cmd_non_tlv(wmi_unified_t wmi_handle,
|
send_pdev_utf_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct pdev_utf_params *param,
|
struct pdev_utf_params *param,
|
||||||
uint8_t mac_id)
|
uint8_t mac_id)
|
||||||
@@ -197,7 +197,7 @@ send_pdev_utf_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success, errno on failure
|
* Return: 0 on success, errno on failure
|
||||||
*/
|
*/
|
||||||
int32_t
|
CDF_STATUS
|
||||||
send_pdev_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
send_pdev_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct pdev_params *param,
|
struct pdev_params *param,
|
||||||
uint8_t mac_id)
|
uint8_t mac_id)
|
||||||
@@ -213,7 +213,7 @@ send_pdev_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success and -ve on failure.
|
* Return: 0 on success and -ve on failure.
|
||||||
*/
|
*/
|
||||||
int32_t send_suspend_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_suspend_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct suspend_params *param,
|
struct suspend_params *param,
|
||||||
uint8_t mac_id)
|
uint8_t mac_id)
|
||||||
{
|
{
|
||||||
@@ -228,7 +228,7 @@ int32_t send_suspend_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success and -ve on failure.
|
* Return: 0 on success and -ve on failure.
|
||||||
*/
|
*/
|
||||||
int32_t send_resume_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_resume_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
uint8_t mac_id)
|
uint8_t mac_id)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -242,7 +242,7 @@ int32_t send_resume_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success and -ve on failure.
|
* Return: 0 on success and -ve on failure.
|
||||||
*/
|
*/
|
||||||
int32_t send_wow_enable_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_wow_enable_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct wow_cmd_params *param,
|
struct wow_cmd_params *param,
|
||||||
uint8_t mac_id)
|
uint8_t mac_id)
|
||||||
{
|
{
|
||||||
@@ -257,7 +257,7 @@ int32_t send_wow_enable_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or error code
|
* Return: 0 for success or error code
|
||||||
*/
|
*/
|
||||||
int32_t send_set_ap_ps_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_set_ap_ps_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
uint8_t *peer_addr,
|
uint8_t *peer_addr,
|
||||||
struct ap_ps_params *param)
|
struct ap_ps_params *param)
|
||||||
{
|
{
|
||||||
@@ -272,7 +272,7 @@ int32_t send_set_ap_ps_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or error code
|
* Return: 0 for success or error code
|
||||||
*/
|
*/
|
||||||
int32_t send_set_sta_ps_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_set_sta_ps_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct sta_ps_params *param)
|
struct sta_ps_params *param)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -285,7 +285,7 @@ int32_t send_set_sta_ps_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 for success or return error
|
* Return: 0 for success or return error
|
||||||
*/
|
*/
|
||||||
int32_t send_crash_inject_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_crash_inject_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct crash_inject *param)
|
struct crash_inject *param)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -298,7 +298,7 @@ int32_t send_crash_inject_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success and -ve on failure.
|
* Return: 0 on success and -ve on failure.
|
||||||
*/
|
*/
|
||||||
int32_t
|
CDF_STATUS
|
||||||
send_dbglog_cmd_non_tlv(wmi_unified_t wmi_handle,
|
send_dbglog_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct dbglog_params *dbglog_param)
|
struct dbglog_params *dbglog_param)
|
||||||
{
|
{
|
||||||
@@ -313,7 +313,7 @@ send_dbglog_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success and -ve on failure.
|
* Return: 0 on success and -ve on failure.
|
||||||
*/
|
*/
|
||||||
int32_t send_vdev_set_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_vdev_set_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct vdev_set_params *param)
|
struct vdev_set_params *param)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -327,7 +327,7 @@ int32_t send_vdev_set_param_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success and -ve on failure.
|
* Return: 0 on success and -ve on failure.
|
||||||
*/
|
*/
|
||||||
int32_t send_stats_request_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_stats_request_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
uint8_t macaddr[IEEE80211_ADDR_LEN],
|
uint8_t macaddr[IEEE80211_ADDR_LEN],
|
||||||
struct stats_request_params *param)
|
struct stats_request_params *param)
|
||||||
{
|
{
|
||||||
@@ -342,7 +342,7 @@ int32_t send_stats_request_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success and -ve on failure.
|
* Return: 0 on success and -ve on failure.
|
||||||
*/
|
*/
|
||||||
int32_t send_packet_log_enable_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_packet_log_enable_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
uint8_t macaddr[IEEE80211_ADDR_LEN],
|
uint8_t macaddr[IEEE80211_ADDR_LEN],
|
||||||
struct packet_enable_params *param)
|
struct packet_enable_params *param)
|
||||||
{
|
{
|
||||||
@@ -357,7 +357,7 @@ int32_t send_packet_log_enable_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success and -ve on failure.
|
* Return: 0 on success and -ve on failure.
|
||||||
*/
|
*/
|
||||||
int32_t send_beacon_send_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_beacon_send_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct beacon_params *param)
|
struct beacon_params *param)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -371,7 +371,7 @@ int32_t send_beacon_send_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success and -ve on failure.
|
* Return: 0 on success and -ve on failure.
|
||||||
*/
|
*/
|
||||||
int32_t send_peer_assoc_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_peer_assoc_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct peer_assoc_params *param)
|
struct peer_assoc_params *param)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -385,7 +385,7 @@ int32_t send_peer_assoc_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success and -ve on failure.
|
* Return: 0 on success and -ve on failure.
|
||||||
*/
|
*/
|
||||||
int32_t send_scan_start_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_scan_start_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct scan_start_params *param)
|
struct scan_start_params *param)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -399,7 +399,7 @@ int32_t send_scan_start_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success and -ve on failure.
|
* Return: 0 on success and -ve on failure.
|
||||||
*/
|
*/
|
||||||
int32_t send_scan_stop_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_scan_stop_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct scan_stop_params *param)
|
struct scan_stop_params *param)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
@@ -413,7 +413,7 @@ int32_t send_scan_stop_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||||||
*
|
*
|
||||||
* Return: 0 on success and -ve on failure.
|
* Return: 0 on success and -ve on failure.
|
||||||
*/
|
*/
|
||||||
int32_t send_scan_chan_list_cmd_non_tlv(wmi_unified_t wmi_handle,
|
CDF_STATUS send_scan_chan_list_cmd_non_tlv(wmi_unified_t wmi_handle,
|
||||||
struct scan_chan_list_params *param)
|
struct scan_chan_list_params *param)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
2303
wmi_unified_tlv.c
2303
wmi_unified_tlv.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user