summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/net80211/ieee80211_scan_sta.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/net80211/ieee80211_scan_sta.c b/sys/net80211/ieee80211_scan_sta.c
index eb21259..7d7548c 100644
--- a/sys/net80211/ieee80211_scan_sta.c
+++ b/sys/net80211/ieee80211_scan_sta.c
@@ -290,11 +290,12 @@ found:
*/
c = ieee80211_find_channel_byieee(ic, sp->bchan,
sp->curchan->ic_flags);
- if (c == NULL && ise->se_chan == NULL) {
+ if (c != NULL) {
+ ise->se_chan = c;
+ } else if (ise->se_chan == NULL) {
/* should not happen, pick something */
- c = sp->curchan;
+ ise->se_chan = sp->curchan;
}
- ise->se_chan = c;
} else
ise->se_chan = sp->curchan;
ise->se_fhdwell = sp->fhdwell;
OpenPOWER on IntegriCloud