Pārlūkot izejas kodu

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
Dustin Brown 8 gadi atpakaļ
vecāks
revīzija
67f16952a6
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      core/hdd/src/wlan_hdd_regulatory.c

+ 2 - 2
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;
 	}