summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/hdd/src/wlan_hdd_regulatory.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/hdd/src/wlan_hdd_regulatory.c b/core/hdd/src/wlan_hdd_regulatory.c
index 03f2a5c364a8..a78806ee71ce 100644
--- a/core/hdd/src/wlan_hdd_regulatory.c
+++ b/core/hdd/src/wlan_hdd_regulatory.c
@@ -250,9 +250,9 @@ static void hdd_regulatory_wiphy_init(hdd_context_t *hdd_ctx,
* disable 2.4 Ghz channels that dont have 20 mhz bw
*/
for (chan_num = 0;
- chan_num < wiphy->bands[IEEE80211_BAND_2GHZ]->n_channels;
+ chan_num < wiphy->bands[NL80211_BAND_2GHZ]->n_channels;
chan_num++) {
- chan = &(wiphy->bands[IEEE80211_BAND_2GHZ]->channels[chan_num]);
+ chan = &(wiphy->bands[NL80211_BAND_2GHZ]->channels[chan_num]);
if (chan->flags & IEEE80211_CHAN_NO_20MHZ)
chan->flags |= IEEE80211_CHAN_DISABLED;
}