PERFORCE change 66297 for review

Sam Leffler sam at FreeBSD.org
Thu Dec 2 21:53:09 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=66297

Change 66297 by sam at 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",


More information about the p4-projects mailing list