qcacmn: Update NOL to platform even there is no nol channel
After clear nol channel, the number of nol channel is 0. We should update this information to platform. Change-Id: Ia39be9a2c53067629460ead6000c2661ead07f63 CRs-Fixed: 2818936
This commit is contained in:
@@ -1355,7 +1355,6 @@ void utils_dfs_save_nol(struct wlan_objmgr_pdev *pdev)
|
||||
|
||||
qdf_mem_zero(dfs_nolinfo, sizeof(*dfs_nolinfo));
|
||||
DFS_GET_NOL_LOCKED(dfs, dfs_nolinfo->dfs_nol, &num_chans);
|
||||
if (num_chans > 0) {
|
||||
|
||||
if (num_chans > DFS_MAX_NOL_CHANNEL)
|
||||
dfs_nolinfo->num_chans = DFS_MAX_NOL_CHANNEL;
|
||||
@@ -1364,7 +1363,6 @@ void utils_dfs_save_nol(struct wlan_objmgr_pdev *pdev)
|
||||
|
||||
pld_wlan_set_dfs_nol(qdf_dev->dev, (void *)dfs_nolinfo,
|
||||
(uint16_t)sizeof(*dfs_nolinfo));
|
||||
}
|
||||
qdf_mem_free(dfs_nolinfo);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user