mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qcacld-3.0: Add support to set roam scan freq in specific list
User configures roam scan frequencies using vendor roaming sub command QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. If the roam scan frequency list type is QCA_SPECIFIC_SCAN_FREQ_LIST in user command, update specific roam scan channel list in host and FW. Change-Id: Ie9d30999a7cdfdd6fa4d97c64b09d9739dd39633 CRs-Fixed: 2725832
This commit is contained in:
parent
da272dd932
commit
6dad04b744
1 changed files with 8 additions and 8 deletions
|
|
@ -7545,23 +7545,23 @@ sme_update_roam_scan_freq_list(mac_handle_t mac_handle, uint8_t vdev_id,
|
|||
}
|
||||
|
||||
neighbor_roam_info = &mac->roam.neighborRoamInfo[vdev_id];
|
||||
if (neighbor_roam_info->cfgParams.specific_chan_info.numOfChannels) {
|
||||
if (neighbor_roam_info->cfgParams.specific_chan_info.numOfChannels &&
|
||||
freq_list_type == QCA_PREFERRED_SCAN_FREQ_LIST) {
|
||||
sme_err("Specific channel list is already configured");
|
||||
sme_release_global_lock(&mac->sme);
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
sme_debug("frequency list type %d", freq_list_type);
|
||||
if (freq_list_type == QCA_PREFERRED_SCAN_FREQ_LIST) {
|
||||
sme_debug("Preferred frequency list: ");
|
||||
channel_info = &neighbor_roam_info->cfgParams.pref_chan_info;
|
||||
status = sme_update_roam_scan_channel_list(
|
||||
mac_handle, vdev_id, channel_info,
|
||||
freq_list, num_chan);
|
||||
} else {
|
||||
goto out;
|
||||
status = sme_change_roam_scan_channel_list(mac_handle, vdev_id,
|
||||
freq_list, num_chan);
|
||||
}
|
||||
|
||||
status = sme_update_roam_scan_channel_list(mac_handle, vdev_id,
|
||||
channel_info, freq_list,
|
||||
num_chan);
|
||||
out:
|
||||
sme_release_global_lock(&mac->sme);
|
||||
|
||||
return status;
|
||||
|
|
|
|||
Loading…
Reference in a new issue