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.
Showing the changes to include/uapi (1 of 230 files). Show all
Unified · Split
| @@ -3653,11 +3653,15 @@ enum nl80211_txrate_gi { · 3652 unmodified lines | ||
| 3653 | 3653 | * @NL80211_BAND_2GHZ: 2.4 GHz ISM band |
| 3654 | 3654 | * @NL80211_BAND_5GHZ: around 5 GHz band (4.9 - 5.7 GHz) |
| 3655 | 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 | */ |
| 3657 | 3659 | enum nl80211_band { |
| 3658 | 3660 | NL80211_BAND_2GHZ, |
| 3659 | 3661 | NL80211_BAND_5GHZ, |
| 3660 | 3662 | NL80211_BAND_60GHZ, |
| 3663 | + | |
| 3664 | + NUM_NL80211_BANDS, | |
| 3661 | 3665 | }; |
| 3662 | 3666 | |
| 3663 | 3667 | /** |