Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f21709d7 authored by Jean Delvare's avatar Jean Delvare Committed by John W. Linville
Browse files

[PATCH] ieee80211: Fix A band channel count (resent)



The channel count for 802.11a is still not right. We better
compute it from the min and max channel numbers, rather than
hardcoding it.

Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5b4b9775
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -955,11 +955,13 @@ enum ieee80211_state {

#define IEEE80211_24GHZ_MIN_CHANNEL 1
#define IEEE80211_24GHZ_MAX_CHANNEL 14
#define IEEE80211_24GHZ_CHANNELS    14
#define IEEE80211_24GHZ_CHANNELS (IEEE80211_24GHZ_MAX_CHANNEL - \
				  IEEE80211_24GHZ_MIN_CHANNEL + 1)

#define IEEE80211_52GHZ_MIN_CHANNEL 34
#define IEEE80211_52GHZ_MAX_CHANNEL 165
#define IEEE80211_52GHZ_CHANNELS    131
#define IEEE80211_52GHZ_CHANNELS (IEEE80211_52GHZ_MAX_CHANNEL - \
				  IEEE80211_52GHZ_MIN_CHANNEL + 1)

enum {
	IEEE80211_CH_PASSIVE_ONLY = (1 << 0),