Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Oct 2013 04:03:01 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r257301 - head/sys/dev/iwn
Message-ID:  <201310290403.r9T431Ur080749@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Tue Oct 29 04:03:00 2013
New Revision: 257301
URL: http://svnweb.freebsd.org/changeset/base/257301

Log:
  Fix the PLCP lookup code in iwn(4) to base the 11n decision on whether
  the rate is 11n, rather than whether the channel is 11n.
  
  This correctly allows the PLCP lookup code to return the legacy rates
  even on an 11n channel.
  
  PR:		kern/183430

Modified:
  head/sys/dev/iwn/if_iwn.c

Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c	Tue Oct 29 03:52:05 2013	(r257300)
+++ head/sys/dev/iwn/if_iwn.c	Tue Oct 29 04:03:00 2013	(r257301)
@@ -2210,7 +2210,7 @@ iwn_rate_to_plcp(struct iwn_softc *sc, s
 	 * If it's an MCS rate, let's set the plcp correctly
 	 * and set the relevant flags based on the node config.
 	 */
-	if (IEEE80211_IS_CHAN_HT(ni->ni_chan)) {
+	if (rate & IEEE80211_RATE_MCS) {
 		/*
 		 * Set the initial PLCP value to be between 0->31 for
 		 * MCS 0 -> MCS 31, then set the "I'm an MCS rate!"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310290403.r9T431Ur080749>