aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2011-09-25 13:06:53 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-09-27 14:34:11 -0400
commitf70f01c2ebbe31fbd8a96be3b45c5620dac45b96 (patch)
tree4052a95a6ec1ab8fa51bfc1f8bae831d8aa5e592 /net
parentaad14ceb45f5ff12da2ab5b37a596e6f81566515 (diff)
cfg80211/mac80211: add netdev param to set_txq_params()
tx params are currently configured per hw, although they should be configured per interface. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/cfg.c1
-rw-r--r--net/wireless/nl80211.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 56c35041ba97..726fb8819b43 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1271,6 +1271,7 @@ static int ieee80211_change_bss(struct wiphy *wiphy,
1271} 1271}
1272 1272
1273static int ieee80211_set_txq_params(struct wiphy *wiphy, 1273static int ieee80211_set_txq_params(struct wiphy *wiphy,
1274 struct net_device *dev,
1274 struct ieee80211_txq_params *params) 1275 struct ieee80211_txq_params *params)
1275{ 1276{
1276 struct ieee80211_local *local = wiphy_priv(wiphy); 1277 struct ieee80211_local *local = wiphy_priv(wiphy);
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 48c1bf1a142d..74d16192fbf0 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -1236,6 +1236,11 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info)
1236 goto bad_res; 1236 goto bad_res;
1237 } 1237 }
1238 1238
1239 if (!netdev) {
1240 result = -EINVAL;
1241 goto bad_res;
1242 }
1243
1239 nla_for_each_nested(nl_txq_params, 1244 nla_for_each_nested(nl_txq_params,
1240 info->attrs[NL80211_ATTR_WIPHY_TXQ_PARAMS], 1245 info->attrs[NL80211_ATTR_WIPHY_TXQ_PARAMS],
1241 rem_txq_params) { 1246 rem_txq_params) {
@@ -1248,6 +1253,7 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info)
1248 goto bad_res; 1253 goto bad_res;
1249 1254
1250 result = rdev->ops->set_txq_params(&rdev->wiphy, 1255 result = rdev->ops->set_txq_params(&rdev->wiphy,
1256 netdev,
1251 &txq_params); 1257 &txq_params);
1252 if (result) 1258 if (result)
1253 goto bad_res; 1259 goto bad_res;