summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authordamien <damien@openbsd.org>2009-06-06 07:57:27 +0000
committerdamien <damien@openbsd.org>2009-06-06 07:57:27 +0000
commitc519e337856a8687e4413dc781cd9cd8425eed4b (patch)
tree86f352671ed66d236e6298ced38df188e3ecd022 /usr.bin/diff/diffreg.c
parentmechanical rename of ``priv'' to ``file_priv'' in the one function where (diff)
downloadwireguard-openbsd-c519e337856a8687e4413dc781cd9cd8425eed4b.tar.xz
wireguard-openbsd-c519e337856a8687e4413dc781cd9cd8425eed4b.zip
In SIOCS80211SCAN, fail if the interface is not up *and* running.
There are cases where the interface can be up but not running, for instance if the driver's if_init routine fails halfway for whatever reason (firmware file not found, hardware switch turned off etc...) This is because in sys/net/if.c, the returned code of the driver is ignored for SIOCSIFFLAGS and the IFF_UP flags is left set. netintro(4) does not say anything about values returned by SIOCSIFFLAGS, so I don't know whether it is the expected behavior or not. pointed out by halex@ and jacekm@ who noticed it was possible to trigger a scan on wpi(4) even when the hardware switch was turned off.
Diffstat (limited to 'usr.bin/diff/diffreg.c')
0 files changed, 0 insertions, 0 deletions