mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
qcacmn: Host changes to enable Scan Offset time
Pass offset value to the Firmware to support split scanning of total dwell time in smaller chunks. Offset passed is calculated from TBTT. Change-Id: I8114acd1147d468aa6471f672307d8ea0ec8611d CRs-Fixed: 2134748
This commit is contained in:
parent
0f72e11a1f
commit
c7f6224588
2 changed files with 16 additions and 1 deletions
|
|
@ -1905,8 +1905,9 @@ static QDF_STATUS send_scan_start_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||
wmi_bssid_list *bssid_list;
|
||||
wmi_ssid_list *ssid_list;
|
||||
wmi_ie_data *ie_data;
|
||||
wmi_scan_start_offset *scan_start_offset;
|
||||
uint32_t *tmp_ptr;
|
||||
int i, len = sizeof(wmi_start_scan_cmd);
|
||||
int i, len = sizeof(wmi_start_scan_cmd), offset = 0;
|
||||
|
||||
#ifdef TEST_CODE
|
||||
len += sizeof(wmi_chan_list) + 3 * sizeof(uint32_t);
|
||||
|
|
@ -2070,6 +2071,17 @@ static QDF_STATUS send_scan_start_cmd_non_tlv(wmi_unified_t wmi_handle,
|
|||
tmp_ptr += (2 + (sizeof(wmi_mac_addr) *
|
||||
param->num_bssid)/sizeof(uint32_t));
|
||||
}
|
||||
if (param->scan_offset_time) {
|
||||
offset = sizeof(param->scan_offset_time) / sizeof(A_UINT32);
|
||||
scan_start_offset = (wmi_scan_start_offset *)tmp_ptr;
|
||||
scan_start_offset->tag = WMI_SCAN_START_OFFSET_TAG;
|
||||
scan_start_offset->num_offset = offset;
|
||||
WMI_HOST_IF_MSG_COPY_CHAR_ARRAY(
|
||||
&scan_start_offset->start_tsf_offset,
|
||||
¶m->scan_offset_time,
|
||||
sizeof(param->scan_offset_time));
|
||||
tmp_ptr += (2 + offset);
|
||||
}
|
||||
if (param->extraie.len) {
|
||||
ie_data = (wmi_ie_data *) tmp_ptr;
|
||||
ie_data->tag = WMI_IE_TAG;
|
||||
|
|
|
|||
Loading…
Reference in a new issue