From a96aec1ceee3750aa2ec7b249b9f9c84e575d642 Mon Sep 17 00:00:00 2001 From: proski Date: Thu, 25 Jun 2009 00:47:42 +0000 Subject: [PATCH] Merge r3372 from madwifi-dfs git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4050 0192ed92-7a03-0410-a25b-9323aeb14dbd --- net80211/ieee80211.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net80211/ieee80211.c b/net80211/ieee80211.c index 490e074..9b5d3e0 100644 --- a/net80211/ieee80211.c +++ b/net80211/ieee80211.c @@ -706,7 +706,8 @@ ieee80211_find_channel(struct ieee80211com *ic, int freq, int flags) c = &ic->ic_channels[i]; if (c->ic_freq == freq && (flags == 0 || - (c->ic_flags & IEEE80211_CHAN_ALLTURBO) == flags)) + (c->ic_flags & IEEE80211_CHAN_ALLTURBO) == + (flags & IEEE80211_CHAN_ALLTURBO))) return c; } return NULL;