diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index 25ed6eada6d4..5332c3c85361 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -2485,7 +2485,7 @@ static bool wlan_hdd_update_survey_info(struct wiphy *wiphy, mutex_lock(&pHddCtx->chan_info_lock); - for (i = 0; i < IEEE80211_NUM_BANDS && !filled; i++) { + for (i = 0; i < NUM_NL80211_BANDS && !filled; i++) { if (wiphy->bands[i] == NULL) continue;