diff options
author | sam <sam@FreeBSD.org> | 2007-06-11 03:56:33 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2007-06-11 03:56:33 +0000 |
commit | 3271b465acb86d1da777c15e67a67ea952a8ddb8 (patch) | |
tree | 3f4d188c2835a1c8b666ae901a5cbc04c97e52f9 /sbin/ifconfig/ifmedia.c | |
parent | 6a8b18f11591df29764d02a686661d87559bf7f6 (diff) | |
download | FreeBSD-src-3271b465acb86d1da777c15e67a67ea952a8ddb8.zip FreeBSD-src-3271b465acb86d1da777c15e67a67ea952a8ddb8.tar.gz |
Update for revised 802.11 support:
o revised channel handling support; ifconfig now queries the kernel to
find the list of available channels and handles channel promotion;
channel attributes can be specified as part of the channel; e.g. 36:a
for channel 36 in 11a (as opposed to turbo A or HT A)
o use channel list to map between freq and IEEE channel #; this eliminates
all knowledge of how the mapping is done and fixes handling of cases
where channels overlap in the IEEE channel # space but are distinct in
the frequency+attributes space (e.g. PSB)
o add new knobs: bgscan, ff (Atheors fast frames), dturbo (Atheros
Dynamic Turbo mode), bgscanidle, bgscanintvl, scanvalid, roam:rssi11a,
roam:rssi11b, roam:rssi11g, roam:rate11a, roam:rate11b, roam:rate11g
(roaming parameters), burst, doth (forthcoming 11h support)
o print contents of WME, ATH, WPA, RSN, information elements with -v option
o print signal strength in dBm
o print noise floor in dBm
o add list txpow to print tx power caps/channel
o change default channel display in status to be more informative
Diffstat (limited to 'sbin/ifconfig/ifmedia.c')
-rw-r--r-- | sbin/ifconfig/ifmedia.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sbin/ifconfig/ifmedia.c b/sbin/ifconfig/ifmedia.c index a3d3036..947b961 100644 --- a/sbin/ifconfig/ifmedia.c +++ b/sbin/ifconfig/ifmedia.c @@ -184,8 +184,8 @@ media_status(int s) free(media_list); } -static struct ifmediareq * -getifmediastate(int s) +struct ifmediareq * +ifmedia_getstate(int s) { static struct ifmediareq *ifmr = NULL; int *mwords; @@ -249,7 +249,7 @@ setmedia(const char *val, int d, int s, const struct afswtch *afp) struct ifmediareq *ifmr; int subtype; - ifmr = getifmediastate(s); + ifmr = ifmedia_getstate(s); /* * We are primarily concerned with the top-level type. @@ -294,7 +294,7 @@ domediaopt(const char *val, int clear, int s) struct ifmediareq *ifmr; int options; - ifmr = getifmediastate(s); + ifmr = ifmedia_getstate(s); options = get_media_options(IFM_TYPE(ifmr->ifm_ulist[0]), val); @@ -319,7 +319,7 @@ setmediainst(const char *val, int d, int s, const struct afswtch *afp) struct ifmediareq *ifmr; int inst; - ifmr = getifmediastate(s); + ifmr = ifmedia_getstate(s); inst = atoi(val); if (inst < 0 || inst > IFM_INST_MAX) @@ -338,7 +338,7 @@ setmediamode(const char *val, int d, int s, const struct afswtch *afp) struct ifmediareq *ifmr; int mode; - ifmr = getifmediastate(s); + ifmr = ifmedia_getstate(s); mode = get_media_mode(IFM_TYPE(ifmr->ifm_ulist[0]), val); |