summaryrefslogtreecommitdiffstats
path: root/sys/net80211
diff options
context:
space:
mode:
authorbschmidt <bschmidt@FreeBSD.org>2011-01-30 14:00:50 +0000
committerbschmidt <bschmidt@FreeBSD.org>2011-01-30 14:00:50 +0000
commitdf7538722d24751454041ecbef3a64fe433f612c (patch)
tree1056c7c97a567793775353d9f24bfa443daf87db /sys/net80211
parente543f6eb0105d80a79803f24b19bd5cec061591e (diff)
downloadFreeBSD-src-df7538722d24751454041ecbef3a64fe433f612c.zip
FreeBSD-src-df7538722d24751454041ecbef3a64fe433f612c.tar.gz
Change return code semantics of start_scan_locked(). Instead of reporting
if a scan is running, report if a scan has been started. The return value itself is not (yet) used anywhere in the tree and it is also not exported to userspace. MFC after: 1 month
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_scan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_scan.c b/sys/net80211/ieee80211_scan.c
index 0035aba..5c1e3d9 100644
--- a/sys/net80211/ieee80211_scan.c
+++ b/sys/net80211/ieee80211_scan.c
@@ -434,12 +434,13 @@ start_scan_locked(const struct ieee80211_scanner *scan,
ic->ic_flags |= IEEE80211_F_SCAN;
ieee80211_runtask(ic, &SCAN_PRIVATE(ss)->ss_scan_task);
}
+ return 1;
} else {
IEEE80211_DPRINTF(vap, IEEE80211_MSG_SCAN,
"%s: %s scan already in progress\n", __func__,
ss->ss_flags & IEEE80211_SCAN_ACTIVE ? "active" : "passive");
}
- return (ic->ic_flags & IEEE80211_F_SCAN);
+ return 0;
}
/*
OpenPOWER on IntegriCloud