diff options
-rw-r--r-- | sys/net80211/ieee80211_scan_sta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_scan_sta.c b/sys/net80211/ieee80211_scan_sta.c index e2edaf2..6d6b5b2 100644 --- a/sys/net80211/ieee80211_scan_sta.c +++ b/sys/net80211/ieee80211_scan_sta.c @@ -395,12 +395,12 @@ find11gchannel(struct ieee80211com *ic, int i, int freq) */ for (j = i+1; j < ic->ic_nchans; j++) { c = &ic->ic_channels[j]; - if (c->ic_freq == freq && IEEE80211_IS_CHAN_ANYG(c)) + if (c->ic_freq == freq && IEEE80211_IS_CHAN_G(c)) return c; } for (j = 0; j < i; j++) { c = &ic->ic_channels[j]; - if (c->ic_freq == freq && IEEE80211_IS_CHAN_ANYG(c)) + if (c->ic_freq == freq && IEEE80211_IS_CHAN_G(c)) return c; } return NULL; |