PERFORCE change 137289 for review

Sam Leffler sam at FreeBSD.org
Mon Mar 10 04:50:23 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=137289

Change 137289 by sam at sam_ebb on 2008/03/10 04:49:41

	o install new flags when checking the scan cache so the caller
	  can specify things like NOPICK
	o dispatch a scan done event when a scan request is satisfied
	  by a cache hit (for user apps that specify IEEE80211_IOC_SCAN_CHECK)

Affected files ...

.. //depot/projects/vap/sys/net80211/ieee80211_scan.c#16 edit

Differences ...

==== //depot/projects/vap/sys/net80211/ieee80211_scan.c#16 (text+ko) ====

@@ -586,6 +586,8 @@
 			 */
 			SCAN_PRIVATE(ss)->ss_iflags |= ISCAN_DISCARD;
 			ic->ic_flags |= IEEE80211_F_SCAN;
+			/* NB: need to use supplied flags in check below */
+			ss->ss_flags = flags & 0xff;
 			checkscanlist = 1;
 		}
 	}
@@ -594,6 +596,7 @@
 		if (ss->ss_ops->scan_end(ss, vap)) {
 			/* found an ap, just clear the flag */
 			ic->ic_flags &= ~IEEE80211_F_SCAN;
+			ieee80211_notify_scan_done(vap);
 			return 1;
 		}
 		/* no ap, clear the flag before starting a scan */


More information about the p4-projects mailing list