mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
qcacmn: Do not switch channel in DFS testing mode
If gDisableDFSChSwitch is configured as 1, channel should not be changed even radar is found. Set usenol as 0 when gDisableDFSChSwitch is configured as 1. Change-Id: I05c4afea3eb9af9c541b2324a2d50ea59c05f7d7 CRs-Fixed: 2168792
This commit is contained in:
parent
7229739ec7
commit
5fc318cedb
1 changed files with 18 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2016-2017 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2016-2018 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
|
|
@ -97,6 +97,7 @@ void dfs_mlme_mark_dfs(struct wlan_objmgr_pdev *pdev,
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifndef QCA_MCL_DFS_SUPPORT
|
||||
void dfs_mlme_start_csa(struct wlan_objmgr_pdev *pdev,
|
||||
uint8_t ieee_chan, uint16_t freq,
|
||||
uint8_t cfreq2, uint64_t flags)
|
||||
|
|
@ -105,6 +106,22 @@ void dfs_mlme_start_csa(struct wlan_objmgr_pdev *pdev,
|
|||
global_dfs_to_mlme.mlme_start_csa(pdev, ieee_chan, freq, cfreq2,
|
||||
flags);
|
||||
}
|
||||
#else
|
||||
void dfs_mlme_start_csa(struct wlan_objmgr_pdev *pdev,
|
||||
uint8_t ieee_chan, uint16_t freq,
|
||||
uint8_t cfreq2, uint64_t flags)
|
||||
{
|
||||
if (!pdev) {
|
||||
dfs_err(NULL, WLAN_DEBUG_DFS_ALWAYS, "null pdev");
|
||||
return;
|
||||
}
|
||||
|
||||
wlan_objmgr_pdev_iterate_obj_list(pdev,
|
||||
WLAN_VDEV_OP,
|
||||
dfs_send_radar_ind,
|
||||
NULL, 0, WLAN_DFS_ID);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef QCA_MCL_DFS_SUPPORT
|
||||
void dfs_mlme_proc_cac(struct wlan_objmgr_pdev *pdev, uint32_t vdev_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue