Merge "qcacmn: Add wmi_roam_scan_mode_fixed_param TLV alone for RSO Stop command" into wlan-cmn.driver.lnx.2.0-dev
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
5768b57121
@@ -4542,6 +4542,10 @@ QDF_STATUS send_roam_scan_offload_mode_cmd_tlv(wmi_unified_t wmi_handle,
|
|||||||
}
|
}
|
||||||
#endif /* WLAN_FEATURE_ROAM_OFFLOAD */
|
#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);
|
buf = wmi_buf_alloc(wmi_handle, len);
|
||||||
if (!buf) {
|
if (!buf) {
|
||||||
WMI_LOGE("%s : wmi_buf_alloc failed", __func__);
|
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->roam_scan_mode = roam_req->mode;
|
||||||
roam_scan_mode_fp->vdev_id = roam_req->vdev_id;
|
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 */
|
/* Fill in scan parameters suitable for roaming scan */
|
||||||
buf_ptr += sizeof(wmi_roam_scan_mode_fixed_param);
|
buf_ptr += sizeof(wmi_roam_scan_mode_fixed_param);
|
||||||
|
|
||||||
qdf_mem_copy(buf_ptr, scan_cmd_fp,
|
qdf_mem_copy(buf_ptr, scan_cmd_fp,
|
||||||
sizeof(wmi_start_scan_cmd_fixed_param));
|
sizeof(wmi_start_scan_cmd_fixed_param));
|
||||||
/* Ensure there is no additional IEs */
|
/* 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));
|
WMITLV_GET_STRUCT_TLVLEN(0));
|
||||||
}
|
}
|
||||||
#endif /* WLAN_FEATURE_ROAM_OFFLOAD */
|
#endif /* WLAN_FEATURE_ROAM_OFFLOAD */
|
||||||
|
|
||||||
|
send_roam_scan_mode_cmd:
|
||||||
status = wmi_unified_cmd_send(wmi_handle, buf,
|
status = wmi_unified_cmd_send(wmi_handle, buf,
|
||||||
len, WMI_ROAM_SCAN_MODE);
|
len, WMI_ROAM_SCAN_MODE);
|
||||||
if (QDF_IS_STATUS_ERROR(status)) {
|
if (QDF_IS_STATUS_ERROR(status)) {
|
||||||
|
Reference in New Issue
Block a user