Date: Tue, 17 May 2005 23:38:45 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 77115 for review Message-ID: <200505172338.j4HNcjSS061054@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=77115 Change 77115 by sam@sam_ebb on 2005/05/17 23:37:55 o enable/disable wds for sta mode o use the command line usage when showing hidessid status Affected files ... .. //depot/projects/vap/sbin/ifconfig/ifieee80211.c#4 edit Differences ... ==== //depot/projects/vap/sbin/ifconfig/ifieee80211.c#4 (text+ko) ==== @@ -1179,6 +1179,12 @@ #undef iseq } +static void +set80211wds(const char *val, int d, int s, const struct afswtch *rafp) +{ + set80211(s, IEEE80211_IOC_WDS, d, 0, NULL); +} + static enum ieee80211_opmode get80211opmode(int s) { @@ -1623,9 +1629,9 @@ ireq.i_type = IEEE80211_IOC_HIDESSID; if (ioctl(s, SIOCG80211, &ireq) != -1) { if (ireq.i_val) - LINE_CHECK("%cssid HIDE", spacer); + LINE_CHECK("%chidessid", spacer); else if (verbose) - LINE_CHECK("%cssid SHOW", spacer); + LINE_CHECK("%c-hidessid", spacer); } ireq.i_type = IEEE80211_IOC_APBRIDGE; @@ -1680,6 +1686,13 @@ spacer, ireq.i_val); } } + ireq.i_type = IEEE80211_IOC_WDS; + if (ioctl(s, SIOCG80211, &ireq) != -1) { + if (ireq.i_val) + LINE_CHECK("%cwds", spacer); + else if (verbose) + LINE_CHECK("%c-wds", spacer); + } } ireq.i_type = IEEE80211_IOC_BEACON_INTERVAL; if (ioctl(s, SIOCG80211, &ireq) != -1) { @@ -1905,6 +1918,8 @@ DEF_CMD("-bgscan", 0, set80211bgscan), DEF_CMD_ARG("bgscanidle", set80211bgscanidle), DEF_CMD_ARG("bgscanintvl", set80211bgscanintvl), + DEF_CMD("wds", 1, set80211wds), + DEF_CMD("-wds", 0, set80211wds), }; static struct afswtch af_ieee80211 = { .af_name = "af_ieee80211",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505172338.j4HNcjSS061054>