Author: bschmidt
Date: Sun Jan 30 14:00:50 2011
New Revision: 218091
URL: http://svn.freebsd.org/changeset/base/218091
Log:
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
Modified:
head/sys/net80211/ieee80211_scan.c
Modified: head/sys/net80211/ieee80211_scan.c
==============================================================================
--- head/sys/net80211/ieee80211_scan.c Sun Jan 30 13:17:45 2011
(r218090)
+++ head/sys/net80211/ieee80211_scan.c Sun Jan 30 14:00:50 2011
(r218091)
@@ -434,12 +434,13 @@ start_scan_locked(const struct ieee80211
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;
}
/*
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"