From owner-p4-projects@FreeBSD.ORG Mon Mar 10 04:50:23 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E54B11065674; Mon, 10 Mar 2008 04:50:22 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4F961065671 for ; Mon, 10 Mar 2008 04:50:22 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A7EDD8FC16 for ; Mon, 10 Mar 2008 04:50:22 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m2A4oMQF032248 for ; Mon, 10 Mar 2008 04:50:22 GMT (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m2A4oKUl032246 for perforce@freebsd.org; Mon, 10 Mar 2008 04:50:20 GMT (envelope-from sam@freebsd.org) Date: Mon, 10 Mar 2008 04:50:20 GMT Message-Id: <200803100450.m2A4oKUl032246@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Cc: Subject: PERFORCE change 137289 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2008 04:50:23 -0000 http://perforce.freebsd.org/chv.cgi?CH=137289 Change 137289 by sam@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 */