Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eliad Peller and committed by
John W. Linville
f70f01c2 aad14ceb

+8 -1
+1 -1
include/net/cfg80211.h
··· 1486 1486 int (*change_bss)(struct wiphy *wiphy, struct net_device *dev, 1487 1487 struct bss_parameters *params); 1488 1488 1489 - int (*set_txq_params)(struct wiphy *wiphy, 1489 + int (*set_txq_params)(struct wiphy *wiphy, struct net_device *dev, 1490 1490 struct ieee80211_txq_params *params); 1491 1491 1492 1492 int (*set_channel)(struct wiphy *wiphy, struct net_device *dev,
+1
net/mac80211/cfg.c
··· 1271 1271 } 1272 1272 1273 1273 static int ieee80211_set_txq_params(struct wiphy *wiphy, 1274 + struct net_device *dev, 1274 1275 struct ieee80211_txq_params *params) 1275 1276 { 1276 1277 struct ieee80211_local *local = wiphy_priv(wiphy);
+6
net/wireless/nl80211.c
··· 1236 1236 goto bad_res; 1237 1237 } 1238 1238 1239 + if (!netdev) { 1240 + result = -EINVAL; 1241 + goto bad_res; 1242 + } 1243 + 1239 1244 nla_for_each_nested(nl_txq_params, 1240 1245 info->attrs[NL80211_ATTR_WIPHY_TXQ_PARAMS], 1241 1246 rem_txq_params) { ··· 1253 1248 goto bad_res; 1254 1249 1255 1250 result = rdev->ops->set_txq_params(&rdev->wiphy, 1251 + netdev, 1256 1252 &txq_params); 1257 1253 if (result) 1258 1254 goto bad_res;