aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-03-25 01:51:49 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-03-25 01:51:49 +0000
commitfc68391494b16024c2ee5a97acfafa55e781b4a2 (patch)
tree6f519536c7426d3727546b59c9e34da13612196c /package/madwifi
parente15e287751fa934cd64619fe4011bc60b1672e7d (diff)
downloadmaster-187ad058-fc68391494b16024c2ee5a97acfafa55e781b4a2.tar.gz
master-187ad058-fc68391494b16024c2ee5a97acfafa55e781b4a2.tar.bz2
master-187ad058-fc68391494b16024c2ee5a97acfafa55e781b4a2.zip
oops. committed an old version of the patch
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15033 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi')
-rw-r--r--package/madwifi/patches/414-txpower.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/madwifi/patches/414-txpower.patch b/package/madwifi/patches/414-txpower.patch
index 3e7e315d11..9d9e60b2e8 100644
--- a/package/madwifi/patches/414-txpower.patch
+++ b/package/madwifi/patches/414-txpower.patch
@@ -63,7 +63,7 @@
+ power = ic->ic_max_txpower;
+ if (ic->ic_bsschan && (ic->ic_bsschan != IEEE80211_CHAN_ANYC))
-+ power = min(power, ic->ic_bsschan->ic_maxpower);
++ power = min(power, (u_int16_t) ic->ic_bsschan->ic_maxpower);
+
/* txpower (128 values, but will print out only IW_MAX_TXPOWER) */
- range->num_txpower = (ic->ic_txpowlimit >= 8) ? IW_MAX_TXPOWER : ic->ic_txpowlimit;
@@ -136,8 +136,8 @@
+ struct ieee80211_channel *c;
+ u_int16_t txp = ic->ic_max_txpower;
+
-+ if (ic->ic_bsschan && (ic->ic_bsschan != IEEE80211_CHAN_ANYC))
-+ txp = min(txp, ic->ic_bsschan->ic_maxpower);
++ 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) {
+ txp = min(txp, ic->ic_cur_txpower);
+ }