From owner-freebsd-wireless@FreeBSD.ORG Thu Jan 8 16:35:27 2015 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4A8DF2EC for ; Thu, 8 Jan 2015 16:35:27 +0000 (UTC) Received: from graal.it-profi.org.ua (graal.shurik.kiev.ua [193.239.74.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 06F3879A for ; Thu, 8 Jan 2015 16:35:26 +0000 (UTC) Received: from [217.76.201.82] (helo=thinkpad.it-profi.org.ua) by graal.it-profi.org.ua with esmtpa (Exim 4.84 (FreeBSD)) (envelope-from ) id 1Y9FTz-0005Bx-4q for freebsd-wireless@freebsd.org; Thu, 08 Jan 2015 17:58:47 +0200 Message-ID: <54AEA931.2030909@shurik.kiev.ua> Date: Thu, 08 Jan 2015 17:58:41 +0200 From: Alexandr Krivulya User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org Subject: Re: [rft] net80211 scan overhaul, pass 1 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 217.76.201.82 X-SA-Exim-Mail-From: shuriku@shurik.kiev.ua X-SA-Exim-Scanned: No (on graal.it-profi.org.ua); SAEximRunCond expanded to false X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jan 2015 16:35:27 -0000 04.01.2015 06:46, Adrian Chadd пишет: > hi all, > > I've started overhauling the net80211 scan infrastructure so it can > support fully-offloaded scan firmware (like the intel iwn(4) NICs, and > the upcoming 7260 driver I'm hacking on.) > > I'd like this patch tested: > > https://people.freebsd.org/~adrian/net80211/20150103-net80211-scan-overhaul-1.diff > > This splits the scan code into two halves - the generic bits that > drive when and what to do about scanning, and the bits that implement > the software scanner. > > The software scanner is the bit that schedules channel changes, > listens for probe response frames, adds them to the scan cache, aborts > and goes back to the original channel when needed. It also tells the > drivers that scanning is about to happen, so the driver can prepare to > go off-channel for a bit. > > For the intel NICs (and other things, i'm sure) that do full scan > offload, we just say "Hey, scan these channels, here's the SSIDs to > actively probe for, tell me when you're done" and you get back probe > response frames or scan command results with all the relevant > information. The wireless stack doesn't have to control the process so > fine-grained - as far as the stack and network interface is concerned, > it's still associated and traffic is still queued as per normal. The > NIC firmware itself takes care of scheduling the off-channel scan > bits, sending the sleep frames as it goes off-channel temporarily, > etc. It's supposed to be very transparent. We don't even have to send > probe request frames during scanning - the firmware will do that for > us. > > This work doesn't do all work required - it's just going to refactor > out the scan bits. I still have to turn it into methods that intel and > such can be overridden. I still have to go through and plumb the VAP > power save state work so we don't actually send sleep/wakeup frames. > All of that is done for us in the firmware. > > So I'd appreciate this getting some testing by FreeBSD-HEAD wifi > users. If you see any issues then please let me know. I'm going to > commit it in a couple of days so I can continue along the path of > refactoring out this stuff and turning it into methods that the iwn > and future drivers can override to implement their own scanning > module. > > Thanks! > > > > -adrian > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" I see your patch is already in HEAD. Works for me on Intel N2230 in 11g-mode.