Date: Fri, 3 Dec 2004 05:53:07 GMT From: Sam Leffler <sam@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 66297 for review Message-ID: <200412030553.iB35r7wN039901@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=66297 Change 66297 by sam@sam_ebb on 2004/12/03 05:52:54 dtim period Affected files ... .. //depot/projects/wifi/sbin/ifconfig/ifieee80211.c#23 edit Differences ... ==== //depot/projects/wifi/sbin/ifconfig/ifieee80211.c#23 (text+ko) ==== @@ -559,6 +559,12 @@ getac(ac)|IEEE80211_WMEPARAM_BSS, NULL); } +static +DECL_CMD_FUNC(set80211dtimperiod, val, d) +{ + set80211(s, IEEE80211_IOC_DTIM_PERIOD, atoi(val), 0, NULL); +} + static int getmaxrate(uint8_t rates[15], uint8_t nrates) { @@ -1452,6 +1458,12 @@ spacer = ' '; } } + + ireq.i_type = IEEE80211_IOC_DTIM_PERIOD; + if (ioctl(s, SIOCG80211, &ireq) != -1) { + printf("%cdtimperiod %u", spacer, ireq.i_val); + spacer = ' '; + } } else { ireq.i_type = IEEE80211_IOC_ROAMING; if (ioctl(s, SIOCG80211, &ireq) != -1) { @@ -1673,6 +1685,7 @@ DEF_CMD_ARG2("bss:cwmax", set80211bsscwmax), DEF_CMD_ARG2("bss:aifs", set80211bssaifs), DEF_CMD_ARG2("bss:txoplimit", set80211bsstxoplimit), + DEF_CMD_ARG("dtimperiod", set80211dtimperiod), }; static struct afswtch af_ieee80211 = { .af_name = "ieee80211",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412030553.iB35r7wN039901>