aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-26 23:04:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-26 23:04:14 +0000
commit88cf8a1f8ca2d294f02c0cacd34ed18a9ef21598 (patch)
tree1bd82a00e53cb98e5c25e87ae5f91825cba90572 /package
parentea5953b2f52a91b645fd7ab0dba39056b5ecf56b (diff)
downloadmaster-187ad058-88cf8a1f8ca2d294f02c0cacd34ed18a9ef21598.tar.gz
master-187ad058-88cf8a1f8ca2d294f02c0cacd34ed18a9ef21598.tar.bz2
master-187ad058-88cf8a1f8ca2d294f02c0cacd34ed18a9ef21598.zip
madwifi: add a small missing change to the tx power rework
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15053 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/madwifi/patches/414-txpower.patch8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/madwifi/patches/414-txpower.patch b/package/madwifi/patches/414-txpower.patch
index 9d9e60b2e8..5300de90c6 100644
--- a/package/madwifi/patches/414-txpower.patch
+++ b/package/madwifi/patches/414-txpower.patch
@@ -79,8 +79,12 @@
- (IW_MAX_TXPOWER - i - 1) * step;
range->txpower_capa = IW_TXPOW_DBM;
-@@ -1382,10 +1388,8 @@ ieee80211_ioctl_siwtxpow(struct net_devi
- disabled = (fixed && vap->iv_bss->ni_txpower == 0);
+@@ -1379,13 +1385,11 @@ ieee80211_ioctl_siwtxpow(struct net_devi
+ int fixed, disabled;
+
+ fixed = (ic->ic_flags & IEEE80211_F_TXPOW_FIXED);
+- disabled = (fixed && vap->iv_bss->ni_txpower == 0);
++ disabled = (fixed && ic->ic_txpowlimit == 0);
if (rrq->disabled) {
if (!disabled) {
- if ((ic->ic_caps & IEEE80211_C_TXPMGT) == 0)