diff options
| author | 2009-02-15 08:34:36 +0000 | |
|---|---|---|
| committer | 2009-02-15 08:34:36 +0000 | |
| commit | 23a5964d0df28533bd1c74c5014c8e5275fd4ee8 (patch) | |
| tree | 45e29f5be57d480e8dcd2eeba71dcb1fc17b1dbc /sys/net80211/ieee80211_ioctl.c | |
| parent | Add cvs tag (diff) | |
| download | wireguard-openbsd-23a5964d0df28533bd1c74c5014c8e5275fd4ee8.tar.xz wireguard-openbsd-23a5964d0df28533bd1c74c5014c8e5275fd4ee8.zip | |
make "ifconfig if0 chan" list the channels supported by the device.
add "ifconfig if0 scan" to scan for access points or to list known
stations in Host AP mode.
remove the [-]wmm command while i'm here. QoS is mandatory with
802.11n so there's not much point into making it an option.
fix parsing of the "powersave" command too.
discussed with deraadt@
man page hints from jmc@
display hints from sobrado@
"i like it" cnst@, grange@
Diffstat (limited to 'sys/net80211/ieee80211_ioctl.c')
| -rw-r--r-- | sys/net80211/ieee80211_ioctl.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c index 37f7c6ae01a..7f2a978f16a 100644 --- a/sys/net80211/ieee80211_ioctl.c +++ b/sys/net80211/ieee80211_ioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_ioctl.c,v 1.30 2009/02/13 17:24:54 damien Exp $ */ +/* $OpenBSD: ieee80211_ioctl.c,v 1.31 2009/02/15 08:34:36 damien Exp $ */ /* $NetBSD: ieee80211_ioctl.c,v 1.15 2004/05/06 02:58:16 dyoung Exp $ */ /*- @@ -574,6 +574,11 @@ ieee80211_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) } chanreq->i_channel = ieee80211_chan2ieee(ic, chan); break; + case SIOCG80211ALLCHANS: + error = copyout(ic->ic_channels, + ((struct ieee80211_chanreq_all *)data)->i_chans, + sizeof(ic->ic_channels)); + break; #if 0 case SIOCG80211ZSTATS: #endif |
