mac80211: fix setting txpower (#12594)
authorFelix Fietkau <nbd@openwrt.org>
Mon, 10 Dec 2012 13:51:09 +0000 (13:51 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 10 Dec 2012 13:51:09 +0000 (13:51 +0000)
SVN-Revision: 34594

package/mac80211/patches/523-mac80211_configure_antenna_gain.patch

index 010fe6cad19d33762d7118cadffcebe0b901b57c..9760b054c90a82a40caf01831f83f2ac0e821c89 100644 (file)
 +                      ant_gain = 0;
 +              } else
 +                      ant_gain -= local->user_antenna_gain;
++              power = min(power, max_power);
 +      }
 +
-+      power = min(chan->max_power, max_power);
 +      if (local->hw.conf.power_level != power ||
 +              local->hw.conf.max_antenna_gain != ant_gain) {
                changed |= IEEE80211_CONF_CHANGE_POWER;