From owner-freebsd-wireless@FreeBSD.ORG Fri Jan 9 05:27:10 2015 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E7597987 for ; Fri, 9 Jan 2015 05:27:10 +0000 (UTC) Received: from mail-qg0-x231.google.com (mail-qg0-x231.google.com [IPv6:2607:f8b0:400d:c04::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9C8BC72 for ; Fri, 9 Jan 2015 05:27:10 +0000 (UTC) Received: by mail-qg0-f49.google.com with SMTP id f51so6752955qge.8 for ; Thu, 08 Jan 2015 21:27:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=2k24MI+cp1M6GEHt0xELRJPObcePepHXyHp5c12WYkw=; b=QY1ZQa9goKuK4D3Cgv6CpxR1gyoFsE+xuL/5R8o8J2cJ82/FRpu1WF1je4SfVgH7Sc ZTzyw/U44II41Rfee1MQ7Dh8CMSW+nSJlinBqLYbDI/4/vHpf4mj99cod9eJz1k5BnpF mEW4NCwUu+ElPZCUhRsw0+LQaSSxDHvE7sa5r19M9c8taULLdpVmq1eaBLJLovPWJDYM eS1e8Dy858BuG2K6NebMx4OzkWS/H5C+6KC/W+prdoilZI1hnVUr+spWL5dl8vu6bXHG 3sNLKc+kmpZBMHYZtYNDXcDvicmU2gcyeqAHe9JtWf7KzNA7WkO6uvI7A2tsJygh7cQf Bvgw== X-Received: by 10.224.2.65 with SMTP id 1mr23738780qai.94.1420781229743; Thu, 08 Jan 2015 21:27:09 -0800 (PST) Received: from ketagalan.camachat.org ([2601:9:4700:360:a288:b4ff:fec2:e5d0]) by mx.google.com with ESMTPSA id h6sm6082756qgh.32.2015.01.08.21.27.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jan 2015 21:27:08 -0800 (PST) Message-ID: <54AF66AB.5030609@gmail.com> Date: Thu, 08 Jan 2015 21:27:07 -0800 From: "Eric L. Camachat" 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: <54AEA931.2030909@shurik.kiev.ua> In-Reply-To: <54AEA931.2030909@shurik.kiev.ua> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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: Fri, 09 Jan 2015 05:27:11 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 01/08/2015 07:58, Alexandr Krivulya wrote: > 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. > _______________________________________________ > 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" > Mine worked fine, too. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iF4EAREIAAYFAlSvZqYACgkQSfBQu3oOwYzosQD/SoavMlhGkjQoeBOilUtF2X0k ReK6EEprOdr4qauk1iMA/jwgB++DpK/baUwghrZbLVKuq1Nis3bEr/vAvjTMWD3v =2L7y -----END PGP SIGNATURE-----