ssb: remove 5GHz antenna gain from sprom
There is no 2.4 GHz or 5GHz antenna gain stored in sprom. The sprom just stores the gain values for antenna 1 and 2 or 1 to 4 for more recent sprom versions. On old devices antenna 2 was used for 5 GHz wifi. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
edd8d90b62
commit
f8f8a660ba
@@ -1860,7 +1860,7 @@ void b43legacy_phy_xmitpower(struct b43legacy_wldev *dev)
|
||||
* which accounts for the factor of 4 */
|
||||
#define REG_MAX_PWR 20
|
||||
max_pwr = min(REG_MAX_PWR * 4
|
||||
- dev->dev->bus->sprom.antenna_gain.ghz24.a0
|
||||
- dev->dev->bus->sprom.antenna_gain.a0
|
||||
- 0x6, max_pwr);
|
||||
|
||||
/* find the desired power in Q5.2 - power_level is in dBm
|
||||
|
Reference in New Issue
Block a user