qcacld-3.0: Replace IEEE80211_BAND_2GHZ with NL80211_BAND_2GHZ
ieee80211_band has long since been deprecated and is superseded by
nl80211_band. Replace IEEE80211_BAND_2GHZ with NL80211_BAND_2GHZ to
prevent compilation issues against 4.7+ linux kernels.
Change-Id: I6a6fcc7eb88ff040504c8df22e779898a45081ae
CRs-Fixed: 2002311
diff --git a/core/hdd/src/wlan_hdd_regulatory.c b/core/hdd/src/wlan_hdd_regulatory.c
index 03f2a5c..a78806e 100644
--- a/core/hdd/src/wlan_hdd_regulatory.c
+++ b/core/hdd/src/wlan_hdd_regulatory.c
@@ -250,9 +250,9 @@
* 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;
}