1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

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
This commit is contained in:
Bernhard Schmidt 2010-04-10 07:00:26 +00:00
parent 7373959eb1
commit 0c4de0fe4e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=206445

View File

@ -1711,6 +1711,10 @@ iwn_read_eeprom_band(struct iwn_softc *sc, int n)
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);