From owner-svn-src-all@FreeBSD.ORG Mon Sep 8 07:16:01 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4A2C54A0; Mon, 8 Sep 2014 07:16:01 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3623D1FBF; Mon, 8 Sep 2014 07:16:01 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s887G1YC095472; Mon, 8 Sep 2014 07:16:01 GMT (envelope-from adrian@FreeBSD.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s887G1LD095471; Mon, 8 Sep 2014 07:16:01 GMT (envelope-from adrian@FreeBSD.org) Message-Id: <201409080716.s887G1LD095471@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: adrian set sender to adrian@FreeBSD.org using -f From: Adrian Chadd Date: Mon, 8 Sep 2014 07:16:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r271249 - head/sys/dev/iwn X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2014 07:16:01 -0000 Author: adrian Date: Mon Sep 8 07:16:00 2014 New Revision: 271249 URL: http://svnweb.freebsd.org/changeset/base/271249 Log: Implement htprotmode handling. This is separate to 11g protection - the default is to RTS protect 11n frames, including A-MPDU frames. Tested: * Intel 5100, STA mode Modified: head/sys/dev/iwn/if_iwn.c Modified: head/sys/dev/iwn/if_iwn.c ============================================================================== --- head/sys/dev/iwn/if_iwn.c Mon Sep 8 05:14:58 2014 (r271248) +++ head/sys/dev/iwn/if_iwn.c Mon Sep 8 07:16:00 2014 (r271249) @@ -4206,11 +4206,11 @@ iwn_check_rate_needs_protection(struct i return (0); /* - * If it's an 11n rate, then for now we enable - * protection. + * If it's an 11n rate - no protection. + * We'll do it via a specific 11n check. */ if (rate & IEEE80211_RATE_MCS) { - return (1); + return (0); } /* @@ -4440,6 +4440,9 @@ iwn_tx_data(struct iwn_softc *sc, struct flags |= IWN_TX_NEED_CTS; else if (ic->ic_protmode == IEEE80211_PROT_RTSCTS) flags |= IWN_TX_NEED_RTS; + } else if ((rate & IEEE80211_RATE_MCS) && + (ic->ic_htprotmode == IEEE80211_PROT_RTSCTS)) { + flags |= IWN_TX_NEED_RTS; } /* XXX HT protection? */