diff options
author | sam <sam@FreeBSD.org> | 2003-06-28 06:23:40 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2003-06-28 06:23:40 +0000 |
commit | c55d515408e18d245f69424dd07336d2516e0fec (patch) | |
tree | eea2a8e68650f671aa658eff1e2c857a0a3d75a3 /sbin/ifconfig | |
parent | bd3f2390472971e823d530677b448022bfeea989 (diff) | |
download | FreeBSD-src-c55d515408e18d245f69424dd07336d2516e0fec.zip FreeBSD-src-c55d515408e18d245f69424dd07336d2516e0fec.tar.gz |
o update for new 802.11 support
o fix channel command so channel - does what the man page says
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r-- | sbin/ifconfig/ifieee80211.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index e91100b..40c97f1 100644 --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -75,7 +75,8 @@ #include <net/if_dl.h> #include <net/if_types.h> #include <net/route.h> -#include <net/if_ieee80211.h> +#include <net80211/ieee80211.h> +#include <net80211/ieee80211_ioctl.h> #include <ctype.h> #include <err.h> @@ -130,7 +131,10 @@ set80211stationname(const char *val, int d, int s, const struct afswtch *rafp) void set80211channel(const char *val, int d, int s, const struct afswtch *rafp) { - set80211(s, IEEE80211_IOC_CHANNEL, atoi(val), 0, NULL); + if (strcmp(val, "-") == 0) + set80211(s, IEEE80211_IOC_CHANNEL, IEEE80211_CHAN_ANY, 0, NULL); + else + set80211(s, IEEE80211_IOC_CHANNEL, atoi(val), 0, NULL); } void |