diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-10-22 16:26:56 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-10-22 16:26:56 +0000 |
commit | 1fc910862211b857e81c50adf890d26a4e90dbe2 (patch) | |
tree | 2e047f591db8d2e793c6f968c0f240f206eb264c /package/kernel/mac80211/patches/522-mac80211_configure_antenna_gain.patch | |
parent | 0f059b7f6bbc04bbb9702c6437eb7f13bbca4e9a (diff) | |
download | upstream-1fc910862211b857e81c50adf890d26a4e90dbe2.tar.gz upstream-1fc910862211b857e81c50adf890d26a4e90dbe2.tar.bz2 upstream-1fc910862211b857e81c50adf890d26a4e90dbe2.zip |
ath9k: fix tx power reporting
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43032 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/mac80211/patches/522-mac80211_configure_antenna_gain.patch')
-rw-r--r-- | package/kernel/mac80211/patches/522-mac80211_configure_antenna_gain.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/package/kernel/mac80211/patches/522-mac80211_configure_antenna_gain.patch b/package/kernel/mac80211/patches/522-mac80211_configure_antenna_gain.patch index fc7432e835..ddf5ef624b 100644 --- a/package/kernel/mac80211/patches/522-mac80211_configure_antenna_gain.patch +++ b/package/kernel/mac80211/patches/522-mac80211_configure_antenna_gain.patch @@ -57,7 +57,7 @@ __NL80211_ATTR_AFTER_LAST, --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c -@@ -2091,6 +2091,19 @@ static int ieee80211_get_tx_power(struct +@@ -2092,6 +2092,19 @@ static int ieee80211_get_tx_power(struct return 0; } @@ -77,7 +77,7 @@ static int ieee80211_set_wds_peer(struct wiphy *wiphy, struct net_device *dev, const u8 *addr) { -@@ -3572,6 +3585,7 @@ const struct cfg80211_ops mac80211_confi +@@ -3573,6 +3586,7 @@ const struct cfg80211_ops mac80211_confi .set_wiphy_params = ieee80211_set_wiphy_params, .set_tx_power = ieee80211_set_tx_power, .get_tx_power = ieee80211_get_tx_power, @@ -118,8 +118,8 @@ + if (local->hw.conf.power_level != power) { changed |= IEEE80211_CONF_CHANGE_POWER; - local->hw.cur_power_level = power; -@@ -586,6 +592,7 @@ struct ieee80211_hw *ieee80211_alloc_hw( + local->hw.conf.power_level = power; +@@ -585,6 +591,7 @@ struct ieee80211_hw *ieee80211_alloc_hw( IEEE80211_RADIOTAP_MCS_HAVE_BW; local->hw.radiotap_vht_details = IEEE80211_RADIOTAP_VHT_KNOWN_GI | IEEE80211_RADIOTAP_VHT_KNOWN_BANDWIDTH; |