diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-03-26 23:04:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-03-26 23:04:14 +0000 |
commit | 45fa082fadcc2291f3baad6063f7689001711d73 (patch) | |
tree | d8fe8d2ec5e800a54e525759a62341a8639417a2 /package/madwifi | |
parent | 6a9791872edd414cd516c1602b96ed13ec5ab2d5 (diff) | |
download | upstream-45fa082fadcc2291f3baad6063f7689001711d73.tar.gz upstream-45fa082fadcc2291f3baad6063f7689001711d73.tar.bz2 upstream-45fa082fadcc2291f3baad6063f7689001711d73.zip |
madwifi: add a small missing change to the tx power rework
SVN-Revision: 15053
Diffstat (limited to 'package/madwifi')
-rw-r--r-- | package/madwifi/patches/414-txpower.patch | 8 |
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) |