Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcd38c21 authored by Abhinav Kumar's avatar Abhinav Kumar
Browse files

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
parent 03d103d8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;
};

/**
+4 −0
Original line number Diff line number Diff line
@@ -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",