Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Apr 2010 07:00:26 +0000 (UTC)
From:      Bernhard Schmidt <bschmidt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r206445 - head/sys/dev/iwn
Message-ID:  <201004100700.o3A70QG1005481@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bschmidt
Date: Sat Apr 10 07:00:26 2010
New Revision: 206445
URL: http://svn.freebsd.org/changeset/base/206445

Log:
  iwn4965_set_txpower() uses maxpwr from EEPROM to calculate the power to
  set, it make sense to actually initialize that array.  This fixes some
  issues with 4965 adapters where the TX power is crucial.
  
  This got lost somewhere while merging with the OpenBSD code.
  
  Approved by:	rpaulo (mentor)
  Obtained from:	OpenBSD
  MFC after:	2 weeks

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

Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c	Sat Apr 10 06:58:24 2010	(r206444)
+++ head/sys/dev/iwn/if_iwn.c	Sat Apr 10 07:00:26 2010	(r206445)
@@ -1711,6 +1711,10 @@ iwn_read_eeprom_band(struct iwn_softc *s
 		c->ic_ieee = chan;
 		c->ic_maxregpower = channels[i].maxpwr;
 		c->ic_maxpower = 2*c->ic_maxregpower;
+
+		/* Save maximum allowed TX power for this channel. */
+		sc->maxpwr[chan] = channels[i].maxpwr;
+
 		if (n == 0) {	/* 2GHz band */
 			c->ic_freq = ieee80211_ieee2mhz(chan,
 			    IEEE80211_CHAN_G);



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