diff --git a/umac/dfs/core/src/misc/dfs_nol.c b/umac/dfs/core/src/misc/dfs_nol.c index ea3e37b59b72..8d203aa54ae1 100644 --- a/umac/dfs/core/src/misc/dfs_nol.c +++ b/umac/dfs/core/src/misc/dfs_nol.c @@ -475,6 +475,11 @@ void dfs_nol_update(struct wlan_dfs *dfs) struct dfsreq_nolelem *dfs_nol; int nlen; + if (!dfs->dfs_nol_count) { + dfs_debug(dfs, WLAN_DEBUG_DFS_NOL, "dfs_nol_count is zero"); + return; + } + /* * Allocate enough entries to store the NOL. At least on Linux * (don't ask why), if you allocate a 0 entry array, the