mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
qcacmn: Do not print DFS error message for 2.4 GHz pdev
For a 2.4 GHz pdev, dfs object is NULL and hence 'dfs is NULL' print is in tgt_dfs_set_agile_precac_state(). To fix this, add non 5 GHz pdev check before dfs NULL check. Change-Id: I32cf622d7b769ce841d30de538527639b87f459b CRs-Fixed: 2490145
This commit is contained in:
parent
0843438590
commit
41e5f80e2f
1 changed files with 3 additions and 0 deletions
|
|
@ -385,6 +385,9 @@ QDF_STATUS tgt_dfs_set_agile_precac_state(struct wlan_objmgr_pdev *pdev,
|
|||
struct wlan_dfs *dfs;
|
||||
int i;
|
||||
|
||||
if (!tgt_dfs_is_pdev_5ghz(pdev))
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
||||
dfs = wlan_pdev_get_dfs_obj(pdev);
|
||||
if (!dfs) {
|
||||
dfs_err(dfs, WLAN_DEBUG_DFS_ALWAYS, "dfs is NULL");
|
||||
|
|
|
|||
Loading…
Reference in a new issue