Commit d7ce88aa authored by Bjoern A. Zeeb's avatar Bjoern A. Zeeb
Browse files

LinuxKPI: 802.11 correct enum ieee80211_channel_flags

enum ieee80211_channel_flags are used as bit fields and not as 1..n.
Correct the values using BIT(n).

This is also hoped to fix problems with 7260 cards which come up and
panic due to an empty channel list as all channels are set disabled [1].
It will hopefully also fix the one or other oddity.

Reported by:	ambrisko, Mike Tancsa (mike sentex.net) [1]
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
parent c8f8299a
......@@ -79,15 +79,15 @@ enum cfg80211_bss_ftypes {
};
enum ieee80211_channel_flags {
IEEE80211_CHAN_DISABLED = 1,
IEEE80211_CHAN_INDOOR_ONLY,
IEEE80211_CHAN_IR_CONCURRENT,
IEEE80211_CHAN_RADAR,
IEEE80211_CHAN_NO_IR,
IEEE80211_CHAN_NO_HT40MINUS,
IEEE80211_CHAN_NO_HT40PLUS,
IEEE80211_CHAN_NO_80MHZ,
IEEE80211_CHAN_NO_160MHZ,
IEEE80211_CHAN_DISABLED = BIT(0),
IEEE80211_CHAN_INDOOR_ONLY = BIT(1),
IEEE80211_CHAN_IR_CONCURRENT = BIT(2),
IEEE80211_CHAN_RADAR = BIT(3),
IEEE80211_CHAN_NO_IR = BIT(4),
IEEE80211_CHAN_NO_HT40MINUS = BIT(5),
IEEE80211_CHAN_NO_HT40PLUS = BIT(6),
IEEE80211_CHAN_NO_80MHZ = BIT(7),
IEEE80211_CHAN_NO_160MHZ = BIT(8),
};
#define IEEE80211_CHAN_NO_HT40 (IEEE80211_CHAN_NO_HT40MINUS|IEEE80211_CHAN_NO_HT40PLUS)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment