mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Add channel switch restrictions
Previously no logic for channel switch restrictions in sap_random_channel_sel. Enable flags to allow user to control the DFS random channels switches through INI gSapPreferredChanLocation. Change-Id: I992616a8be71018f5ea372d286238b4c87aa8338 CRs-Fixed: 2478371
This commit is contained in:
parent
6701aef06b
commit
2526aab3a3
1 changed files with 6 additions and 0 deletions
|
|
@ -232,6 +232,12 @@ static uint8_t sap_random_channel_sel(struct sap_context *sap_ctx)
|
|||
flag |= DFS_RANDOM_CH_FLAG_NO_DFS_CH;
|
||||
if (mac_ctx->mlme_cfg->dfs_cfg.dfs_disable_japan_w53)
|
||||
flag |= DFS_RANDOM_CH_FLAG_NO_JAPAN_W53_CH;
|
||||
if (mac_ctx->sap.SapDfsInfo.sap_operating_chan_preferred_location
|
||||
== 1)
|
||||
flag |= DFS_RANDOM_CH_FLAG_NO_UPEER_5G_CH;
|
||||
else if (mac_ctx->sap.SapDfsInfo.
|
||||
sap_operating_chan_preferred_location == 2)
|
||||
flag |= DFS_RANDOM_CH_FLAG_NO_LOWER_5G_CH;
|
||||
|
||||
if (QDF_IS_STATUS_ERROR(utils_dfs_get_random_channel(
|
||||
pdev, flag, ch_params, &hw_mode, &ch, &acs_info))) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue