IEEE80211_NUM_BAND is not defined in newer kernels, Add changes to replace IEEE80211_NUM_BAND by NUM_NL80211_BANDS. CRs-Fixed: 2028465 Change-Id: Id811a434aa791f096ef4921db0f2ab8b42bc9f23
@@ -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;