Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Dec 2004 00:19:43 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 66377 for review
Message-ID:  <200412040019.iB40Jh7X006428@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=66377

Change 66377 by sam@sam_ebb on 2004/12/04 00:19:43

	beacon interval

Affected files ...

.. //depot/projects/wifi/sbin/ifconfig/ifieee80211.c#25 edit

Differences ...

==== //depot/projects/wifi/sbin/ifconfig/ifieee80211.c#25 (text+ko) ====

@@ -565,6 +565,12 @@
 	set80211(s, IEEE80211_IOC_DTIM_PERIOD, atoi(val), 0, NULL);
 }
 
+static
+DECL_CMD_FUNC(set80211bintval, val, d)
+{
+	set80211(s, IEEE80211_IOC_BEACON_INTERVAL, atoi(val), 0, NULL);
+}
+
 static int
 getmaxrate(uint8_t rates[15], uint8_t nrates)
 {
@@ -1485,6 +1491,16 @@
 			spacer = ' ';
 		}
 	}
+	ireq.i_type = IEEE80211_IOC_BEACON_INTERVAL;
+	if (ioctl(s, SIOCG80211, &ireq) != -1) {
+		if (ireq.i_val) {
+			printf("%cbintval %u", spacer, ireq.i_val);
+			spacer = ' ';
+		} else if (verbose) {
+			printf("%cbintval %u", spacer, ireq.i_val);
+			spacer = ' ';
+		}
+	}
 
 	if (spacer != '\t')
 		printf("\n");
@@ -1686,6 +1702,7 @@
 	DEF_CMD_ARG2("bss:aifs",	set80211bssaifs),
 	DEF_CMD_ARG2("bss:txoplimit",	set80211bsstxoplimit),
 	DEF_CMD_ARG("dtimperiod",	set80211dtimperiod),
+	DEF_CMD_ARG("bintval",		set80211bintval),
 };
 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?200412040019.iB40Jh7X006428>