linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] cfg80211/mac80211: add netdev param to set_txq_params()
@ 2011-09-25 17:06 Eliad Peller
  2011-09-25 17:06 ` [PATCH 2/3] mac80211: save tx params per sdata Eliad Peller
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Eliad Peller @ 2011-09-25 17:06 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless

tx params are currently configured per hw, although they
should be configured per interface.

Signed-off-by: Eliad Peller <eliad@wizery.com>
---
 include/net/cfg80211.h |    2 +-
 net/mac80211/cfg.c     |    1 +
 net/wireless/nl80211.c |    6 ++++++
 3 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index ccfdf3f..1635e78 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1484,7 +1484,7 @@ struct cfg80211_ops {
 	int	(*change_bss)(struct wiphy *wiphy, struct net_device *dev,
 			      struct bss_parameters *params);
 
-	int	(*set_txq_params)(struct wiphy *wiphy,
+	int	(*set_txq_params)(struct wiphy *wiphy, struct net_device *dev,
 				  struct ieee80211_txq_params *params);
 
 	int	(*set_channel)(struct wiphy *wiphy, struct net_device *dev,
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index b57ddf9..805b40b 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -1271,6 +1271,7 @@ static int ieee80211_change_bss(struct wiphy *wiphy,
 }
 
 static int ieee80211_set_txq_params(struct wiphy *wiphy,
+				    struct net_device *dev,
 				    struct ieee80211_txq_params *params)
 {
 	struct ieee80211_local *local = wiphy_priv(wiphy);
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index c26a1da..b43f354 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -1235,6 +1235,11 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info)
 			goto bad_res;
 		}
 
+		if (!netdev) {
+			result = -EINVAL;
+			goto bad_res;
+		}
+
 		nla_for_each_nested(nl_txq_params,
 				    info->attrs[NL80211_ATTR_WIPHY_TXQ_PARAMS],
 				    rem_txq_params) {
@@ -1247,6 +1252,7 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info)
 				goto bad_res;
 
 			result = rdev->ops->set_txq_params(&rdev->wiphy,
+							   netdev,
 							   &txq_params);
 			if (result)
 				goto bad_res;
-- 
1.7.6.401.g6a319


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-10-02  7:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-25 17:06 [PATCH 1/3] cfg80211/mac80211: add netdev param to set_txq_params() Eliad Peller
2011-09-25 17:06 ` [PATCH 2/3] mac80211: save tx params per sdata Eliad Peller
2011-09-25 17:06 ` [PATCH 3/3] mac80211: pass vif param to conf_tx() callback Eliad Peller
2011-09-26  9:36   ` Johannes Berg
2011-09-28 13:48   ` Johannes Berg
2011-09-30 18:43     ` John W. Linville
2011-09-30 19:57   ` John W. Linville
2011-10-02  7:55     ` Eliad Peller
2011-09-26  9:34 ` [PATCH 1/3] cfg80211/mac80211: add netdev param to set_txq_params() Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).