diff options
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 33c80de61eca..7ee91d6151d1 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -801,7 +801,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
801 | { | 801 | { |
802 | struct ieee80211_local *local = hw_to_local(hw); | 802 | struct ieee80211_local *local = hw_to_local(hw); |
803 | int result, i; | 803 | int result, i; |
804 | enum ieee80211_band band; | 804 | enum nl80211_band band; |
805 | int channels, max_bitrates; | 805 | int channels, max_bitrates; |
806 | bool supp_ht, supp_vht; | 806 | bool supp_ht, supp_vht; |
807 | netdev_features_t feature_whitelist; | 807 | netdev_features_t feature_whitelist; |
@@ -874,7 +874,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
874 | max_bitrates = 0; | 874 | max_bitrates = 0; |
875 | supp_ht = false; | 875 | supp_ht = false; |
876 | supp_vht = false; | 876 | supp_vht = false; |
877 | for (band = 0; band < IEEE80211_NUM_BANDS; band++) { | 877 | for (band = 0; band < NUM_NL80211_BANDS; band++) { |
878 | struct ieee80211_supported_band *sband; | 878 | struct ieee80211_supported_band *sband; |
879 | 879 | ||
880 | sband = local->hw.wiphy->bands[band]; | 880 | sband = local->hw.wiphy->bands[band]; |
@@ -936,7 +936,7 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
936 | if (!local->int_scan_req) | 936 | if (!local->int_scan_req) |
937 | return -ENOMEM; | 937 | return -ENOMEM; |
938 | 938 | ||
939 | for (band = 0; band < IEEE80211_NUM_BANDS; band++) { | 939 | for (band = 0; band < NUM_NL80211_BANDS; band++) { |
940 | if (!local->hw.wiphy->bands[band]) | 940 | if (!local->hw.wiphy->bands[band]) |
941 | continue; | 941 | continue; |
942 | local->int_scan_req->rates[band] = (u32) -1; | 942 | local->int_scan_req->rates[band] = (u32) -1; |