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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116957
@ -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