mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
qcacmn: Append wbuf len by struct scan_offset len
Alter the wbuf length based on the scan_offset_time set in the host to FW. This will avoid sending incorrect payload to the FW. Change-Id: I0033dcab7e38fe7f107180294cb3cbaaf0c9d45e CRs-Fixed: 2134748
This commit is contained in:
parent
8b6542bb7b
commit
452feb46d4
1 changed files with 4 additions and 1 deletions
|
|
@ -1925,6 +1925,9 @@ static QDF_STATUS send_scan_start_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||
len += sizeof(wmi_bssid_list) + (param->num_bssid - 1)
|
||||
* sizeof(wmi_mac_addr);
|
||||
}
|
||||
if (param->scan_offset_time) {
|
||||
len += sizeof(wmi_scan_start_offset);
|
||||
}
|
||||
if (param->extraie.len) {
|
||||
i = param->extraie.len % sizeof(uint32_t);
|
||||
if (i)
|
||||
|
|
@ -2072,7 +2075,7 @@ static QDF_STATUS send_scan_start_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||
param->num_bssid)/sizeof(uint32_t));
|
||||
}
|
||||
if (param->scan_offset_time) {
|
||||
offset = sizeof(param->scan_offset_time) / sizeof(A_UINT32);
|
||||
offset = sizeof(param->scan_offset_time) / sizeof(uint32_t);
|
||||
scan_start_offset = (wmi_scan_start_offset *)tmp_ptr;
|
||||
scan_start_offset->tag = WMI_SCAN_START_OFFSET_TAG;
|
||||
scan_start_offset->num_offset = offset;
|
||||
|
|
|
|||
Loading…
Reference in a new issue