From nobody@FreeBSD.org  Tue Oct 29 03:58:34 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 37D542E4
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Oct 2013 03:58:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 256DD2513
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Oct 2013 03:58:34 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9T3wYmu047068
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 29 Oct 2013 03:58:34 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9T3wYXS047067;
	Tue, 29 Oct 2013 03:58:34 GMT
	(envelope-from nobody)
Message-Id: <201310290358.r9T3wYXS047067@oldred.freebsd.org>
Date: Tue, 29 Oct 2013 03:58:34 GMT
From: adrian chadd <adrian@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [iwn] latest change to the rate code setup uses 11n rates on an 11n channel when 11n rates aren't provided
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         183430
>Category:       kern
>Synopsis:       [iwn] latest change to the rate code setup uses 11n rates on an 11n channel when 11n rates aren't provided
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-wireless
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 29 04:00:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Tue Oct 29 04:55:11 UTC 2013
>Originator:     adrian chadd
>Release:        
>Organization:
>Environment:
-HEAD
>Description:
the latest changes in iwn messed up how the rates are calculated.

the PLCP lookup code is doing the wrong thing - it assumes that an 11n channel will always have 11n traffic. However, some management traffic may be non-11n. So, support that.

Some 11n APs get very unhappy if you send them 11n management frames, so don't do that.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/183430: commit references a PR
Date: Tue, 29 Oct 2013 04:03:08 +0000 (UTC)

 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!"
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Oct 29 04:54:52 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183430 
>Unformatted:
