mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
qcacld-3.0: Do not switch channel in DFS testing mode
If gDisableDFSChSwitch is configured as 1, channel should not be switched even radar is found. Set usenol as 0 when gDisableDFSChSwitch is configured as 1. Change-Id: I05c4afea3eb9af9c541b2324a2d50ea59c05f7d7 CRs-Fixed: 2178652
This commit is contained in:
parent
1f55b66040
commit
819bdead9e
1 changed files with 5 additions and 0 deletions
|
|
@ -1392,6 +1392,8 @@ void sap_dfs_set_current_channel(void *ctx)
|
|||
struct wlan_objmgr_pdev *pdev;
|
||||
tpAniSirGlobal mac_ctx;
|
||||
tHalHandle hal;
|
||||
uint32_t use_nol = 0;
|
||||
int error;
|
||||
|
||||
hal = CDS_GET_HAL_CB();
|
||||
if (!hal) {
|
||||
|
|
@ -1449,6 +1451,9 @@ void sap_dfs_set_current_channel(void *ctx)
|
|||
if (wlan_reg_is_dfs_ch(pdev, sap_ctx->channel)) {
|
||||
tgt_dfs_get_radars(pdev);
|
||||
tgt_dfs_radar_enable(pdev, 0, 0);
|
||||
if (sap_ctx->csr_roamProfile.disableDFSChSwitch)
|
||||
tgt_dfs_control(pdev, DFS_SET_USENOL, &use_nol,
|
||||
sizeof(uint32_t), NULL, NULL, &error);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue