diff options
| author | Dustin Brown <dustinb@codeaurora.org> | 2017-02-03 15:37:53 -0800 |
|---|---|---|
| committer | Dustin Brown <dustinb@codeaurora.org> | 2017-02-03 15:37:53 -0800 |
| commit | ef0909b10cdd83c583259d1ffeaf0ede519b3e58 (patch) | |
| tree | 0040a50f553d7e8bc9b7bf66a462e150992a4946 | |
| parent | d899050c313aea29517bf43d1267c4454c803c36 (diff) | |
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
| -rw-r--r-- | core/hdd/src/wlan_hdd_regulatory.c | 4 |
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; } |
