summaryrefslogtreecommitdiff
path: root/package/madwifi/patches/414-txpower.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-09-16 12:02:10 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-09-16 12:02:10 +0000
commit9e1fd17d108dd845fa0d60670537de373d29b1e9 (patch)
tree1588904e966ade6a54d3fcadfbab07a14d039562 /package/madwifi/patches/414-txpower.patch
parentfdf2efaf28ab626b14cb7d5a94981e0be2cedbe8 (diff)
downloadmtk-20170518-9e1fd17d108dd845fa0d60670537de373d29b1e9.zip
mtk-20170518-9e1fd17d108dd845fa0d60670537de373d29b1e9.tar.gz
mtk-20170518-9e1fd17d108dd845fa0d60670537de373d29b1e9.tar.bz2
madwifi: fix iwconfig tx power display
SVN-Revision: 17592
Diffstat (limited to 'package/madwifi/patches/414-txpower.patch')
-rw-r--r--package/madwifi/patches/414-txpower.patch5
1 files changed, 3 insertions, 2 deletions
diff --git a/package/madwifi/patches/414-txpower.patch b/package/madwifi/patches/414-txpower.patch
index af5a04b..753cd01 100644
--- a/package/madwifi/patches/414-txpower.patch
+++ b/package/madwifi/patches/414-txpower.patch
@@ -129,7 +129,7 @@
ic->ic_flags &= ~IEEE80211_F_TXPOW_FIXED;
}
done:
-@@ -1588,9 +1574,22 @@ ieee80211_ioctl_giwtxpow(struct net_devi
+@@ -1588,9 +1574,23 @@ ieee80211_ioctl_giwtxpow(struct net_devi
{
struct ieee80211vap *vap = dev->priv;
struct ieee80211com *ic = vap->iv_ic;
@@ -142,7 +142,8 @@
+
+ if (ic->ic_bsschan && (ic->ic_bsschan != IEEE80211_CHAN_ANYC)) {
+ txp = min(txp, (u16) ic->ic_bsschan->ic_maxpower);
-+ } else if (ic->ic_cur_txpower > 0) {
++ }
++ if (ic->ic_cur_txpower > 0) {
+ txp = min(txp, ic->ic_cur_txpower);
+ }
+ if (ic->ic_flags & IEEE80211_F_TXPOW_FIXED) {