qcacmn: Add wmi_roam_scan_mode_fixed_param TLV alone for RSO Stop command
Add only wmi_roam_scan_mode_fixed_param TLV for ROAM_SCAN_MODE disable command[i.e. mode is set with WMI_ROAM_SCAN_MODE_NONE | WMI_ROAM_SCAN_MODE_ROAMOFFLOAD]. This is to retain the scan params [n_probes, dwell time] so that it can be used if ROAM_INVOKE command follows ROAM_SCAN_MODE disable. Change-Id: Iafe31850872cac3eaff35eeb57ab271b4409ef18 CRs-Fixed: 1084912
This commit is contained in:

committed by
qcabuildsw

parent
03b9418c1a
commit
1b1fdaeeab
@@ -4542,6 +4542,10 @@ QDF_STATUS send_roam_scan_offload_mode_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
}
|
||||
#endif /* WLAN_FEATURE_ROAM_OFFLOAD */
|
||||
|
||||
if (roam_req->mode == (WMI_ROAM_SCAN_MODE_NONE
|
||||
|WMI_ROAM_SCAN_MODE_ROAMOFFLOAD))
|
||||
len = sizeof(wmi_roam_scan_mode_fixed_param);
|
||||
|
||||
buf = wmi_buf_alloc(wmi_handle, len);
|
||||
if (!buf) {
|
||||
WMI_LOGE("%s : wmi_buf_alloc failed", __func__);
|
||||
@@ -4558,8 +4562,13 @@ QDF_STATUS send_roam_scan_offload_mode_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
|
||||
roam_scan_mode_fp->roam_scan_mode = roam_req->mode;
|
||||
roam_scan_mode_fp->vdev_id = roam_req->vdev_id;
|
||||
if (roam_req->mode == (WMI_ROAM_SCAN_MODE_NONE
|
||||
|WMI_ROAM_SCAN_MODE_ROAMOFFLOAD))
|
||||
goto send_roam_scan_mode_cmd;
|
||||
|
||||
/* Fill in scan parameters suitable for roaming scan */
|
||||
buf_ptr += sizeof(wmi_roam_scan_mode_fixed_param);
|
||||
|
||||
qdf_mem_copy(buf_ptr, scan_cmd_fp,
|
||||
sizeof(wmi_start_scan_cmd_fixed_param));
|
||||
/* Ensure there is no additional IEs */
|
||||
@@ -4769,6 +4778,8 @@ QDF_STATUS send_roam_scan_offload_mode_cmd_tlv(wmi_unified_t wmi_handle,
|
||||
WMITLV_GET_STRUCT_TLVLEN(0));
|
||||
}
|
||||
#endif /* WLAN_FEATURE_ROAM_OFFLOAD */
|
||||
|
||||
send_roam_scan_mode_cmd:
|
||||
status = wmi_unified_cmd_send(wmi_handle, buf,
|
||||
len, WMI_ROAM_SCAN_MODE);
|
||||
if (QDF_IS_STATUS_ERROR(status)) {
|
||||
|
Reference in New Issue
Block a user