diff options
| author | Abhinav Kumar <abhikuma@codeaurora.org> | 2018-01-08 16:45:09 +0800 |
|---|---|---|
| committer | Abhinav Kumar <abhikuma@codeaurora.org> | 2019-02-20 16:07:34 +0530 |
| commit | bcd38c21b2f2ee1b3cb21a901569ed7e84587d68 (patch) | |
| tree | 5e205cb721907758ed4bd510ef953536c3efe07d | |
| parent | 03d103d83bce1f90d7a0119a00f873ff5d9d870c (diff) | |
qcacmn: Add new config for BTM offload
Add new parameters into wmi btm config cmd for solicited
BTM offload
Change-Id: I24cc680bbfde3d44a57b1e1ccf644c2bed515a2c
CRs-Fixed: 2168259
| -rw-r--r-- | wmi/inc/wmi_unified_param.h | 6 | ||||
| -rw-r--r-- | wmi/src/wmi_unified_tlv.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 9d95fe8e428f..b1afaec7e143 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -7601,10 +7601,16 @@ struct wmi_mawc_roam_params { * struct wmi_btm_config - BSS Transition Management offload params * @vdev_id: VDEV on which the parameters should be applied * @btm_offload_config: BTM config + * @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 */ struct wmi_btm_config { uint8_t vdev_id; uint32_t btm_offload_config; + uint32_t btm_solicited_timeout; + uint32_t btm_max_attempt_cnt; + uint32_t btm_sticky_time; }; /** diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 9699e0f333e4..efe809903ab0 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -15085,6 +15085,10 @@ static QDF_STATUS send_btm_config_cmd_tlv(wmi_unified_t wmi_handle, WMITLV_GET_STRUCT_TLVLEN(wmi_btm_config_fixed_param)); cmd->vdev_id = params->vdev_id; cmd->flags = params->btm_offload_config; + 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; + if (wmi_unified_cmd_send(wmi_handle, buf, len, WMI_ROAM_BTM_CONFIG_CMDID)) { WMI_LOGE("%s: failed to send WMI_ROAM_BTM_CONFIG_CMDID", |
