From owner-p4-projects@FreeBSD.ORG Fri Jul 15 16:32:02 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B375016A420; Fri, 15 Jul 2005 16:32:01 +0000 (GMT) X-Original-To: perforce@freebsd.org 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 8D32E16A41C for ; Fri, 15 Jul 2005 16:32:01 +0000 (GMT) (envelope-from sam@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DBB943D46 for ; Fri, 15 Jul 2005 16:32:01 +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 j6FGW176007332 for ; Fri, 15 Jul 2005 16:32:01 GMT (envelope-from sam@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j6FGW1eB007329 for perforce@freebsd.org; Fri, 15 Jul 2005 16:32:01 GMT (envelope-from sam@freebsd.org) Date: Fri, 15 Jul 2005 16:32:01 GMT Message-Id: <200507151632.j6FGW1eB007329@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 Cc: Subject: PERFORCE change 80279 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2005 16:32:02 -0000 http://perforce.freebsd.org/chv.cgi?CH=80279 Change 80279 by sam@sam_ebb on 2005/07/15 16:31:10 add ff+dturbo stuff back after ifc Affected files ... .. //depot/projects/wifi/sbin/ifconfig/ifieee80211.c#40 edit Differences ... ==== //depot/projects/wifi/sbin/ifconfig/ifieee80211.c#40 (text+ko) ==== @@ -411,6 +411,18 @@ } static void +set80211fastframes(const char *val, int d, int s, const struct afswtch *rafp) +{ + set80211(s, IEEE80211_IOC_FF, d, 0, NULL); +} + +static void +set80211dturbo(const char *val, int d, int s, const struct afswtch *rafp) +{ + set80211(s, IEEE80211_IOC_TURBOP, d, 0, NULL); +} + +static void set80211chanlist(const char *val, int d, int s, const struct afswtch *rafp) { struct ieee80211req_chanlist chanlist; @@ -1547,6 +1559,21 @@ } else wme = 0; + ireq.i_type = IEEE80211_IOC_FF; + if (ioctl(s, SIOCG80211, &ireq) != -1) { + if (ireq.i_val) + LINE_CHECK("%cff", spacer); + else if (verbose) + LINE_CHECK("%c-ff", spacer); + } + ireq.i_type = IEEE80211_IOC_TURBOP; + if (ioctl(s, SIOCG80211, &ireq) != -1) { + if (ireq.i_val) + LINE_CHECK("%cdturbo", spacer); + else if (verbose) + LINE_CHECK("%c-dturbo", spacer); + } + if (opmode == IEEE80211_M_HOSTAP) { ireq.i_type = IEEE80211_IOC_HIDESSID; if (ioctl(s, SIOCG80211, &ireq) != -1) { @@ -1805,6 +1832,10 @@ #endif DEF_CMD("pureg", 1, set80211pureg), DEF_CMD("-pureg", 0, set80211pureg), + DEF_CMD("ff", 1, set80211fastframes), + DEF_CMD("-ff", 0, set80211fastframes), + DEF_CMD("dturbo", 1, set80211dturbo), + DEF_CMD("-dturbo", 0, set80211dturbo), }; static struct afswtch af_ieee80211 = { .af_name = "af_ieee80211",