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
36533653 * @NL80211_BAND_2GHZ: 2.4 GHz ISM band
36543654 * @NL80211_BAND_5GHZ: around 5 GHz band (4.9 - 5.7 GHz)
36553655 * @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
36563658 */
36573659 enum nl80211_band {
36583660 NL80211_BAND_2GHZ,
36593661 NL80211_BAND_5GHZ,
36603662 NL80211_BAND_60GHZ,
3663+
3664+ NUM_NL80211_BANDS,
36613665 };
36623666
36633667 /**

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