From owner-p4-projects@FreeBSD.ORG Sat Dec 4 00:19:44 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 5168E16A4D0; Sat, 4 Dec 2004 00:19:44 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2952616A4CE for ; Sat, 4 Dec 2004 00:19:44 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E861A43D31 for ; Sat, 4 Dec 2004 00:19:43 +0000 (GMT) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id iB40JheD006431 for ; Sat, 4 Dec 2004 00:19:43 GMT (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id iB40Jh7X006428 for perforce@freebsd.org; Sat, 4 Dec 2004 00:19:43 GMT (envelope-from sam@freebsd.org) Date: Sat, 4 Dec 2004 00:19:43 GMT Message-Id: <200412040019.iB40Jh7X006428@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to sam@freebsd.org using -f From: Sam Leffler To: Perforce Change Reviews Subject: PERFORCE change 66377 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2004 00:19:44 -0000 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",