mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
qcacld-3.0: Move rso related process to connection manager [PART 7]
Add new code to implement below functions for connection manager roam part: Filling below WMI cmd parameters related process: WMI_ROAM_CONFIGURE_MAWC_CMDID WMI_ROAM_BSS_LOAD_CONFIG_CMDID Rename file wlan_cm_roam_public_srtuct.h name to wlan_cm_roam_public_struct.h Change-Id: I64d54bb78b71dadc49d119b9083658347cc4f807 CRs-Fixed: 2758130
This commit is contained in:
parent
2ec27b6169
commit
f996a7c696
23 changed files with 535 additions and 78 deletions
|
|
@ -22,7 +22,7 @@
|
|||
#define _WMI_UNIFIED_ROAM_API_H_
|
||||
|
||||
#include <wmi_unified_roam_param.h>
|
||||
#include <wlan_cm_roam_public_srtuct.h>
|
||||
#include <wlan_cm_roam_public_struct.h>
|
||||
|
||||
#ifdef FEATURE_LFR_SUBNET_DETECTION
|
||||
/**
|
||||
|
|
@ -126,7 +126,7 @@ QDF_STATUS wmi_unified_roam_scan_offload_scan_period(
|
|||
*/
|
||||
QDF_STATUS
|
||||
wmi_unified_roam_mawc_params_cmd(wmi_unified_t wmi_handle,
|
||||
struct wmi_mawc_roam_params *params);
|
||||
struct wlan_roam_mawc_params *params);
|
||||
|
||||
/**
|
||||
* wmi_unified_roam_scan_filter_cmd() - send roam scan whitelist,
|
||||
|
|
@ -398,12 +398,13 @@ QDF_STATUS wmi_unified_send_btm_config(wmi_unified_t wmi_handle,
|
|||
/**
|
||||
* wmi_unified_send_bss_load_config() - Send bss load trigger params to fw
|
||||
* @wmi_handle: wmi handle
|
||||
* @params: pointer to wmi_bss_load_config
|
||||
* @params: pointer to wlan_roam_bss_load_config
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS wmi_unified_send_bss_load_config(wmi_unified_t wmi_handle,
|
||||
struct wmi_bss_load_config *params);
|
||||
QDF_STATUS wmi_unified_send_bss_load_config(
|
||||
wmi_unified_t wmi_handle,
|
||||
struct wlan_roam_bss_load_config *params);
|
||||
|
||||
/**
|
||||
* wmi_unified_offload_11k_cmd() - send 11k offload command
|
||||
|
|
|
|||
|
|
@ -153,24 +153,6 @@ struct roam_scan_period_params {
|
|||
};
|
||||
#endif
|
||||
|
||||
/**
|
||||
* struct wmi_mawc_roam_params - Motion Aided wireless connectivity params
|
||||
* @vdev_id: VDEV on which the parameters should be applied
|
||||
* @enable: MAWC roaming feature enable/disable
|
||||
* @traffic_load_threshold: Traffic threshold in kBps for MAWC roaming
|
||||
* @best_ap_rssi_threshold: AP RSSI Threshold for MAWC roaming
|
||||
* @rssi_stationary_high_adjust: High RSSI adjustment value to suppress scan
|
||||
* @rssi_stationary_low_adjust: Low RSSI adjustment value to suppress scan
|
||||
*/
|
||||
struct wmi_mawc_roam_params {
|
||||
uint8_t vdev_id;
|
||||
bool enable;
|
||||
uint32_t traffic_load_threshold;
|
||||
uint32_t best_ap_rssi_threshold;
|
||||
uint8_t rssi_stationary_high_adjust;
|
||||
uint8_t rssi_stationary_low_adjust;
|
||||
};
|
||||
|
||||
#define WMI_CFG_VALID_CHANNEL_LIST_LEN 100
|
||||
/* Occupied channel list remains static */
|
||||
#define WMI_CHANNEL_LIST_STATIC 1
|
||||
|
|
@ -263,27 +245,6 @@ struct hlp_params {
|
|||
uint8_t hlp_ie[WMI_MAX_HLP_IE_LEN];
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wmi_bss_load_config - BSS load trigger parameters
|
||||
* @vdev_id: VDEV on which the parameters should be applied
|
||||
* @bss_load_threshold: BSS load threshold after which roam scan should trigger
|
||||
* @bss_load_sample_time: Time duration in milliseconds for which the bss load
|
||||
* trigger needs to be enabled
|
||||
* @rssi_threshold_5ghz: RSSI threshold of the current connected AP below which
|
||||
* roam should be triggered if bss load threshold exceeds the configured value.
|
||||
* This value is applicable only when we are connected in 5GHz band.
|
||||
* @rssi_threshold_24ghz: RSSI threshold of the current connected AP below which
|
||||
* roam should be triggered if bss load threshold exceeds the configured value.
|
||||
* This value is applicable only when we are connected in 2.4GHz band.
|
||||
*/
|
||||
struct wmi_bss_load_config {
|
||||
uint32_t vdev_id;
|
||||
uint32_t bss_load_threshold;
|
||||
uint32_t bss_load_sample_time;
|
||||
int32_t rssi_threshold_5ghz;
|
||||
int32_t rssi_threshold_24ghz;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct wmi_roam_auth_status_params - WPA3 roam auth response status
|
||||
* parameters
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ wmi_unified_roam_scan_offload_scan_period(wmi_unified_t wmi_handle,
|
|||
|
||||
QDF_STATUS wmi_unified_roam_mawc_params_cmd(
|
||||
wmi_unified_t wmi_handle,
|
||||
struct wmi_mawc_roam_params *params)
|
||||
struct wlan_roam_mawc_params *params)
|
||||
{
|
||||
if (wmi_handle->ops->send_roam_mawc_params_cmd)
|
||||
return wmi_handle->ops->send_roam_mawc_params_cmd(wmi_handle,
|
||||
|
|
@ -318,8 +318,9 @@ QDF_STATUS wmi_unified_send_btm_config(wmi_unified_t wmi_handle,
|
|||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
QDF_STATUS wmi_unified_send_bss_load_config(wmi_unified_t wmi_handle,
|
||||
struct wmi_bss_load_config *params)
|
||||
QDF_STATUS wmi_unified_send_bss_load_config(
|
||||
wmi_unified_t wmi_handle,
|
||||
struct wlan_roam_bss_load_config *params)
|
||||
{
|
||||
if (wmi_handle->ops->send_roam_bss_load_config)
|
||||
return wmi_handle->ops->send_roam_bss_load_config(wmi_handle,
|
||||
|
|
|
|||
|
|
@ -571,8 +571,9 @@ send_roam_scan_offload_scan_period_cmd_tlv(
|
|||
}
|
||||
#endif
|
||||
|
||||
static QDF_STATUS send_roam_mawc_params_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
struct wmi_mawc_roam_params *params)
|
||||
static QDF_STATUS send_roam_mawc_params_cmd_tlv(
|
||||
wmi_unified_t wmi_handle,
|
||||
struct wlan_roam_mawc_params *params)
|
||||
{
|
||||
wmi_buf_t buf = NULL;
|
||||
QDF_STATUS status;
|
||||
|
|
@ -2830,7 +2831,7 @@ static QDF_STATUS send_btm_config_cmd_tlv(wmi_unified_t wmi_handle,
|
|||
/**
|
||||
* send_roam_bss_load_config_tlv() - send roam load bss trigger configuration
|
||||
* @wmi_handle: wmi handle
|
||||
* @parms: pointer to wmi_bss_load_config
|
||||
* @parms: pointer to wlan_roam_bss_load_config
|
||||
*
|
||||
* This function sends the roam load bss trigger configuration to fw.
|
||||
* the bss_load_threshold parameter is used to configure the maximum
|
||||
|
|
@ -2840,7 +2841,7 @@ static QDF_STATUS send_btm_config_cmd_tlv(wmi_unified_t wmi_handle,
|
|||
*/
|
||||
static QDF_STATUS
|
||||
send_roam_bss_load_config_tlv(wmi_unified_t wmi_handle,
|
||||
struct wmi_bss_load_config *params)
|
||||
struct wlan_roam_bss_load_config *params)
|
||||
{
|
||||
wmi_roam_bss_load_config_cmd_fixed_param *cmd;
|
||||
wmi_buf_t buf;
|
||||
|
|
|
|||
Loading…
Reference in a new issue