On Wed, Apr 25, 2018 at 09:14:42PM +0300, Paul Irofti wrote:
> On Wed, Apr 25, 2018 at 08:55:26PM +0300, Paul Irofti wrote:
> > Hi,
> > 
> > The following diff removes the functionality of the SIOCS80211SCAN ioctl.
> > After long discussions with stps@, mpi@, and deraadt@ we decided that
> > this was the correct way of fixing ifconfig scan from blocking the
> > network stack.
> > 
> > The kernel will continue scanning in the background and filling the
> > nodes array, but ifconfig scan commands will now basically do just a
> > SIOCG80211ALLNODES and pretty print the array. So the output stays the
> > same but is instant.
> > 
> > In fact, when the interface is freshly brought up, if you type fast
> > enough, you can see the array being filled by running multiple ifconfig
> > scans in sequence.
> > 
> > Another change that this introduces is the fact that ifconfig scan no
> > longer plays with UP and DOWN. If the interface is down it complains and
> > exits. This is needed in order to maintain the nodes list.
> > 
> > Currently tested on iwm(4), urtwn(4), run(4) and athn(4). We are
> > interested in wider testing, specially on iwn(4) and athn(4) in client
> > mode.
> > 
> > Thoughts? OKs?
> > 
> > Paul
> 
> Updated diff that fixes scan on hostap mode. This removes the hostap
> check from SIOCG80211ALLNODES that I added by mistake.

Works as advertised on x200s w/
iwn0 at pci2 dev 0 function 0 "Intel WiFi Link 5100" rev 0x00: msi, MIMO 1T2R, 
MoW

Reply via email to