summaryrefslogtreecommitdiff
path: root/usr.sbin/syspatch/syspatch.sh
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2018-04-26 12:50:08 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2018-04-26 12:50:08 +0000
commitb5e621a41798b95e9539225bae33e087fcebc12d (patch)
treef682d47a097afc9b760402d0835a6924f179f01a /usr.sbin/syspatch/syspatch.sh
parentdd64a9bb6b48cd5481a54a4814304303c0100f01 (diff)
net80211: stub SIOCS80211SCAN, make ifconfig scan instant.
The following 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. The SIOCS80211SCAN ioctl stays for now as wi(4), pgt(4) and malo(4) still need it around. But not for long... 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. Works on iwm(4), iwn(4), urtwn(4), run(4) and athn(4). Tested by mpi@, landry@, florian@, thanks! OK mpi@.
Diffstat (limited to 'usr.sbin/syspatch/syspatch.sh')
0 files changed, 0 insertions, 0 deletions