diff options
| author | Johannes Berg <[email protected]> | 2016-04-12 13:56:15 +0000 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2016-04-12 13:56:15 +0000 |
| commit | 57fbcce37be7c1d2622b56587c10ade00e96afa3 (patch) | |
| tree | 0f9bee1250af3046fa46049736b615b81e60f56e /drivers/net/wireless/intel/iwlegacy/debug.c | |
| parent | cfg80211: Improve Connect/Associate command documentation (diff) | |
| download | kernel-57fbcce37be7c1d2622b56587c10ade00e96afa3.tar.gz kernel-57fbcce37be7c1d2622b56587c10ade00e96afa3.zip | |
cfg80211: remove enum ieee80211_band
This enum is already perfectly aliased to enum nl80211_band, and
the only reason for it is that we get IEEE80211_NUM_BANDS out of
it. There's no really good reason to not declare the number of
bands in nl80211 though, so do that and remove the cfg80211 one.
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlegacy/debug.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlegacy/debug.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/intel/iwlegacy/debug.c b/drivers/net/wireless/intel/iwlegacy/debug.c index 908b9f4fef6f..6fc6b7ff9849 100644 --- a/drivers/net/wireless/intel/iwlegacy/debug.c +++ b/drivers/net/wireless/intel/iwlegacy/debug.c @@ -544,7 +544,7 @@ il_dbgfs_channels_read(struct file *file, char __user *user_buf, size_t count, return -ENOMEM; } - supp_band = il_get_hw_mode(il, IEEE80211_BAND_2GHZ); + supp_band = il_get_hw_mode(il, NL80211_BAND_2GHZ); if (supp_band) { channels = supp_band->channels; @@ -571,7 +571,7 @@ il_dbgfs_channels_read(struct file *file, char __user *user_buf, size_t count, flags & IEEE80211_CHAN_NO_IR ? "passive only" : "active/passive"); } - supp_band = il_get_hw_mode(il, IEEE80211_BAND_5GHZ); + supp_band = il_get_hw_mode(il, NL80211_BAND_5GHZ); if (supp_band) { channels = supp_band->channels; |
