Skip to content

Commit

Permalink
[PATCH] ieee80211: Fix A band channel count (resent)
Browse files Browse the repository at this point in the history
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: Jean Delvare <jdelvare@suse.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Jean Delvare authored and John W. Linville committed May 5, 2006
1 parent 5b4b977 commit f21709d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/net/ieee80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit f21709d

Please sign in to comment.