Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110705981
D5143.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D5143.diff
View Options
Index: head/sys/net80211/ieee80211_scan_sw.c
===================================================================
--- head/sys/net80211/ieee80211_scan_sw.c
+++ head/sys/net80211/ieee80211_scan_sw.c
@@ -100,6 +100,7 @@
static void scan_mindwell(struct ieee80211_scan_state *);
static void scan_signal(void *);
static void scan_task(void *, int);
+static void scan_end(struct ieee80211_scan_state *, int);
static void scan_done(struct ieee80211_scan_state *, int);
MALLOC_DEFINE(M_80211_SCAN, "80211scan", "802.11 scan state");
@@ -655,8 +656,10 @@
if (scandone || (ss->ss_flags & IEEE80211_SCAN_GOTPICK) ||
(ss_priv->ss_iflags & ISCAN_ABORT) ||
- time_after(ticks + ss->ss_mindwell, ss_priv->ss_scanend))
- break;
+ time_after(ticks + ss->ss_mindwell, ss_priv->ss_scanend)) {
+ scan_end(ss, scandone);
+ return;
+ }
chan = ss->ss_chans[ss->ss_next++];
@@ -722,6 +725,16 @@
/* Wait to be signalled to scan the next channel */
cv_wait(&ss_priv->ss_scan_cv, IEEE80211_LOCK_OBJ(ic));
}
+}
+
+static void
+scan_end(struct ieee80211_scan_state *ss, int scandone)
+{
+ struct scan_state *ss_priv = SCAN_PRIVATE(ss);
+ struct ieee80211vap *vap = ss->ss_vap;
+ struct ieee80211com *ic = ss->ss_ic;
+
+ IEEE80211_LOCK_ASSERT(ic);
IEEE80211_DPRINTF(vap, IEEE80211_MSG_SCAN, "%s: out\n", __func__);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 23, 3:09 AM (12 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16785301
Default Alt Text
D5143.diff (1 KB)
Attached To
Mode
D5143: net80211: split scan_task() (#2) (add scan_end() function)
Attached
Detach File
Event Timeline
Log In to Comment