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;