diff --git a/net80211/ieee80211.c b/net80211/ieee80211.c index 9b5d3e0..0386811 100644 --- a/net80211/ieee80211.c +++ b/net80211/ieee80211.c @@ -706,7 +706,7 @@ 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) == + (c->ic_flags & IEEE80211_CHAN_ALLTURBO) == (flags & IEEE80211_CHAN_ALLTURBO))) return c; }