mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
qcacmn: Add rct_validity_timer and disassoc_timer to wmi roam structures
Two new WCNSS_qcom.ini values "btm_validity_timer" and "disassoc_timer" are introduced. These values are sent to firmware over the structures wmi_roam_offload_tlv_param and wmi_btm_config_fixed_param respectively. The values to this structure are populated from struct roam_offload_scan_params. Add rct_validity_timer in roam_offload_scan_params. Populate these values from roam request to the structure roam_offload_scan_params to be sent over the wmi command. Change-Id: I6130e9966d520169b0f74b9726d35aa4fef6d81d CRs-Fixed: 2369040
This commit is contained in:
parent
935a05da75
commit
13130ebe99
3 changed files with 9 additions and 0 deletions
|
|
@ -1915,6 +1915,8 @@ struct roam_fils_params {
|
|||
* @assoc_ie: Assoc IE buffer
|
||||
* @add_fils_tlv: add FILS TLV boolean
|
||||
* @roam_fils_params: roam fils params
|
||||
* @rct_validity_timer: duration value for which the entries in
|
||||
* roam candidate table are valid
|
||||
*/
|
||||
struct roam_offload_scan_params {
|
||||
uint8_t is_roam_req_valid;
|
||||
|
|
@ -1936,6 +1938,7 @@ struct roam_offload_scan_params {
|
|||
int auth_mode;
|
||||
bool fw_okc;
|
||||
bool fw_pmksa_cache;
|
||||
uint32_t rct_validity_timer;
|
||||
#endif
|
||||
uint32_t min_delay_btw_roam_scans;
|
||||
uint32_t roam_trigger_reason_bitmask;
|
||||
|
|
|
|||
|
|
@ -515,6 +515,8 @@ struct hlp_params {
|
|||
* @btm_solicited_timeout: Timeout value for waiting BTM request
|
||||
* @btm_max_attempt_cnt: Maximum attempt for sending BTM query to ESS
|
||||
* @btm_sticky_time: Stick time after roaming to new AP by BTM
|
||||
* @disassoc_timer_threshold: threshold value till which the firmware can
|
||||
* wait before triggering the roam scan after receiving the disassoc iminent
|
||||
*/
|
||||
struct wmi_btm_config {
|
||||
uint8_t vdev_id;
|
||||
|
|
@ -522,6 +524,7 @@ struct wmi_btm_config {
|
|||
uint32_t btm_solicited_timeout;
|
||||
uint32_t btm_max_attempt_cnt;
|
||||
uint32_t btm_sticky_time;
|
||||
uint32_t disassoc_timer_threshold;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1155,6 +1155,8 @@ static QDF_STATUS send_roam_scan_offload_mode_cmd_tlv(wmi_unified_t wmi_handle,
|
|||
req_offload_params->roam_preauth_no_ack_timeout;
|
||||
roam_offload_params->reassoc_failure_timeout =
|
||||
roam_req->reassoc_failure_timeout;
|
||||
roam_offload_params->roam_candidate_validity_time =
|
||||
roam_req->rct_validity_timer;
|
||||
|
||||
/* Fill the capabilities */
|
||||
roam_offload_params->capability =
|
||||
|
|
@ -2033,6 +2035,7 @@ static QDF_STATUS send_btm_config_cmd_tlv(wmi_unified_t wmi_handle,
|
|||
cmd->max_attempt_cnt = params->btm_max_attempt_cnt;
|
||||
cmd->solicited_timeout_ms = params->btm_solicited_timeout;
|
||||
cmd->stick_time_seconds = params->btm_sticky_time;
|
||||
cmd->disassoc_timer_threshold = params->disassoc_timer_threshold;
|
||||
|
||||
wmi_mtrace(WMI_ROAM_BTM_CONFIG_CMDID, cmd->vdev_id, 0);
|
||||
if (wmi_unified_cmd_send(wmi_handle, buf, len,
|
||||
|
|
|
|||
Loading…
Reference in a new issue