o update for new 802.11 support
o fix channel command so channel - does what the man page says
This commit is contained in:
parent
8e99db2111
commit
cf260fe35a
@ -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,6 +131,9 @@ 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)
|
||||
{
|
||||
if (strcmp(val, "-") == 0)
|
||||
set80211(s, IEEE80211_IOC_CHANNEL, IEEE80211_CHAN_ANY, 0, NULL);
|
||||
else
|
||||
set80211(s, IEEE80211_IOC_CHANNEL, atoi(val), 0, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user