From ef0909b10cdd83c583259d1ffeaf0ede519b3e58 Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Fri, 3 Feb 2017 15:37:53 -0800 Subject: 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 --- core/hdd/src/wlan_hdd_regulatory.c | 4 ++-- 1 file 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; } -- cgit v1.2.3