mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
1e5b7c17b0
Based on patch by Bryan Forbes <bryan@reigndropsfall.net> Also update mt76 to update for API changes Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 44655
24 lines
855 B
Diff
24 lines
855 B
Diff
From c4d79e344bd580d85821390d49f92dced7d8e125 Mon Sep 17 00:00:00 2001
|
|
From: Gabor Juhos <juhosg@openwrt.org>
|
|
Date: Sun, 24 Mar 2013 19:26:29 +0100
|
|
Subject: [PATCH] rt2x00: rt2800lib: use correct txpower calculation function
|
|
for RT3883
|
|
|
|
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
|
|
---
|
|
drivers/net/wireless/rt2x00/rt2800lib.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
|
|
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
|
|
@@ -4635,7 +4635,8 @@ static void rt2800_config_txpower(struct
|
|
struct ieee80211_channel *chan,
|
|
int power_level)
|
|
{
|
|
- if (rt2x00_rt(rt2x00dev, RT3593))
|
|
+ if (rt2x00_rt(rt2x00dev, RT3593) ||
|
|
+ rt2x00_rt(rt2x00dev, RT3883))
|
|
rt2800_config_txpower_rt3593(rt2x00dev, chan, power_level);
|
|
else
|
|
rt2800_config_txpower_rt28xx(rt2x00dev, chan, power_level);
|