diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-12-02 20:41:39 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-12-02 20:41:39 +0000 |
commit | 8cfe4bf9cde2ad4b9d422854ca7229c673f9795a (patch) | |
tree | 2baf2ed807b482dfdf041206bf6ee6ee690873c2 /package/mac80211/patches/524-mac80211_configure_antenna_gain.patch | |
parent | 7a26eb9f13cd8917ab036f54a6df34934dd61525 (diff) | |
download | upstream-8cfe4bf9cde2ad4b9d422854ca7229c673f9795a.tar.gz upstream-8cfe4bf9cde2ad4b9d422854ca7229c673f9795a.tar.bz2 upstream-8cfe4bf9cde2ad4b9d422854ca7229c673f9795a.zip |
mac80211: refresh patches
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34464
Diffstat (limited to 'package/mac80211/patches/524-mac80211_configure_antenna_gain.patch')
-rw-r--r-- | package/mac80211/patches/524-mac80211_configure_antenna_gain.patch | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/package/mac80211/patches/524-mac80211_configure_antenna_gain.patch b/package/mac80211/patches/524-mac80211_configure_antenna_gain.patch index 99bdb84ff7..ada37854d6 100644 --- a/package/mac80211/patches/524-mac80211_configure_antenna_gain.patch +++ b/package/mac80211/patches/524-mac80211_configure_antenna_gain.patch @@ -106,10 +106,11 @@ }; /* policy for the key attributes */ -@@ -1604,6 +1605,22 @@ static int nl80211_set_wiphy(struct sk_b +@@ -1603,6 +1604,22 @@ static int nl80211_set_wiphy(struct sk_b + if (result) goto bad_res; } - ++ + if (info->attrs[NL80211_ATTR_WIPHY_ANTENNA_GAIN]) { + int idx, dbi = 0; + @@ -125,10 +126,9 @@ + if (result) + goto bad_res; + } -+ + if (info->attrs[NL80211_ATTR_WIPHY_ANTENNA_TX] && info->attrs[NL80211_ATTR_WIPHY_ANTENNA_RX]) { - u32 tx_ant, rx_ant; --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1984,6 +1984,19 @@ static int ieee80211_get_tx_power(struct @@ -151,7 +151,7 @@ static int ieee80211_set_wds_peer(struct wiphy *wiphy, struct net_device *dev, const u8 *addr) { -@@ -3085,6 +3098,7 @@ struct cfg80211_ops mac80211_config_ops +@@ -3085,6 +3098,7 @@ struct cfg80211_ops mac80211_config_ops .set_wiphy_params = ieee80211_set_wiphy_params, .set_tx_power = ieee80211_set_tx_power, .get_tx_power = ieee80211_get_tx_power, |