History

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.

Johannes Berg committed 10 years ago

Commit 57fbcce1 parent 35eb8f7230 files · +1420 −1437Browse files

Showing the changes to include/uapi (1 of 230 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+4−0
@@ -3653,11 +3653,15 @@ enum nl80211_txrate_gi { · 3652 unmodified lines
3653 * @NL80211_BAND_2GHZ: 2.4 GHz ISM band3653 * @NL80211_BAND_2GHZ: 2.4 GHz ISM band
3654 * @NL80211_BAND_5GHZ: around 5 GHz band (4.9 - 5.7 GHz)3654 * @NL80211_BAND_5GHZ: around 5 GHz band (4.9 - 5.7 GHz)
3655 * @NL80211_BAND_60GHZ: around 60 GHz band (58.32 - 64.80 GHz)3655 * @NL80211_BAND_60GHZ: around 60 GHz band (58.32 - 64.80 GHz)
3656 * @NUM_NL80211_BANDS: number of bands, avoid using this in userspace
3657 * since newer kernel versions may support more bands
3656 */3658 */
3657enum nl80211_band {3659enum nl80211_band {
3658 NL80211_BAND_2GHZ,3660 NL80211_BAND_2GHZ,
3659 NL80211_BAND_5GHZ,3661 NL80211_BAND_5GHZ,
3660 NL80211_BAND_60GHZ,3662 NL80211_BAND_60GHZ,
3663
3664 NUM_NL80211_BANDS,
3661};3665};
3662 3666
3663/**3667/**

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t