summaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/890-b43legay-antenna-gain.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/mac80211/patches/890-b43legay-antenna-gain.patch')
-rw-r--r--package/mac80211/patches/890-b43legay-antenna-gain.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/mac80211/patches/890-b43legay-antenna-gain.patch b/package/mac80211/patches/890-b43legay-antenna-gain.patch
new file mode 100644
index 000000000..9c1510a0c
--- /dev/null
+++ b/package/mac80211/patches/890-b43legay-antenna-gain.patch
@@ -0,0 +1,11 @@
+--- a/drivers/net/wireless/b43legacy/phy.c
++++ b/drivers/net/wireless/b43legacy/phy.c
+@@ -1860,7 +1860,7 @@ void b43legacy_phy_xmitpower(struct b43l
+ * 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