qcacmn: Fix nol timer memory leak

DFS nol timer need cleanup when rmmod driver, otherwise there is
memory leak.

Change-Id: I4f4c91f7fb515133edd4cb852b3760819a390505
CRs-Fixed: 2173788
This commit is contained in:
bings 2018-01-18 14:14:41 +08:00 • committed by snandini
commit aa1810a8fb

View file

@ -139,6 +139,7 @@ void dfs_nol_attach(struct wlan_dfs *dfs)
void dfs_nol_detach(struct wlan_dfs *dfs)
{
dfs_nol_timer_cleanup(dfs);
qdf_flush_work(&dfs->dfs_nol_elem_free_work);
qdf_destroy_work(NULL, &dfs->dfs_nol_elem_free_work);
WLAN_DFSNOL_LOCK_DESTROY(dfs);