diff options
author | Eliad Peller <eliad@wizery.com> | 2011-10-02 04:15:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-10-03 15:22:41 -0400 |
commit | 8a3a3c85e44d58f5af0adac74a0b866ba89a1978 (patch) | |
tree | e64861307d417743de6992122debc99fab744124 /drivers/net | |
parent | 3c607d27c818cf4a5d28f2c73b18a88f8fbdfa33 (diff) |
mac80211: pass vif param to conf_tx() callback
tx params should be configured per interface.
add ieee80211_vif param to the conf_tx callback,
and change all the drivers that use this callback.
The following spatch was used:
@rule1@
struct ieee80211_ops ops;
identifier conf_tx_op;
@@
ops.conf_tx = conf_tx_op;
@rule2@
identifier rule1.conf_tx_op;
identifier hw, queue, params;
@@
conf_tx_op (
- struct ieee80211_hw *hw,
+ struct ieee80211_hw *hw, struct ieee80211_vif *vif,
u16 queue,
const struct ieee80211_tx_queue_params *params) {...}
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
24 files changed, 53 insertions, 30 deletions
diff --git a/drivers/net/wireless/ath/ath5k/mac80211-ops.c b/drivers/net/wireless/ath/ath5k/mac80211-ops.c index bba4f6fcf7e2..6ed4c0717e3e 100644 --- a/drivers/net/wireless/ath/ath5k/mac80211-ops.c +++ b/drivers/net/wireless/ath/ath5k/mac80211-ops.c | |||
@@ -563,7 +563,7 @@ ath5k_get_stats(struct ieee80211_hw *hw, | |||
563 | 563 | ||
564 | 564 | ||
565 | static int | 565 | static int |
566 | ath5k_conf_tx(struct ieee80211_hw *hw, u16 queue, | 566 | ath5k_conf_tx(struct ieee80211_hw *hw, struct ieee80211_vif *vif, u16 queue, |
567 | const struct ieee80211_tx_queue_params *params) | 567 | const struct ieee80211_tx_queue_params *params) |
568 | { | 568 | { |
569 | struct ath5k_hw *ah = hw->priv; | 569 | struct ath5k_hw *ah = hw->priv; |
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_main.c b/drivers/net/wireless/ath/ath9k/htc_drv_main.c index 17dbbd9d2f53..0b9a0e8a4958 100644 --- a/drivers/net/wireless/ath/ath9k/htc_drv_main.c +++ b/drivers/net/wireless/ath/ath9k/htc_drv_main.c | |||
@@ -1352,7 +1352,8 @@ static int ath9k_htc_sta_remove(struct ieee80211_hw *hw, | |||
1352 | return ret; | 1352 | return ret; |
1353 | } | 1353 | } |
1354 | 1354 | ||
1355 | static int ath9k_htc_conf_tx(struct ieee80211_hw *hw, u16 queue, | 1355 | static int ath9k_htc_conf_tx(struct ieee80211_hw *hw, |
1356 | struct ieee80211_vif *vif, u16 queue, | ||
1356 | const struct ieee80211_tx_queue_params *params) | 1357 | const struct ieee80211_tx_queue_params *params) |
1357 | { | 1358 | { |
1358 | struct ath9k_htc_priv *priv = hw->priv; | 1359 | struct ath9k_htc_priv *priv = hw->priv; |
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 0ebf7321df12..988318665758 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1842,7 +1842,8 @@ static void ath9k_sta_notify(struct ieee80211_hw *hw, | |||
1842 | } | 1842 | } |
1843 | } | 1843 | } |
1844 | 1844 | ||
1845 | static int ath9k_conf_tx(struct ieee80211_hw *hw, u16 queue, | 1845 | static int ath9k_conf_tx(struct ieee80211_hw *hw, |
1846 | struct ieee80211_vif *vif, u16 queue, | ||
1846 | const struct ieee80211_tx_queue_params *params) | 1847 | const struct ieee80211_tx_queue_params *params) |
1847 | { | 1848 | { |
1848 | struct ath_softc *sc = hw->priv; | 1849 | struct ath_softc *sc = hw->priv; |
diff --git a/drivers/net/wireless/ath/carl9170/main.c b/drivers/net/wireless/ath/carl9170/main.c index 8b780d6d470f..beca71073e9b 100644 --- a/drivers/net/wireless/ath/carl9170/main.c +++ b/drivers/net/wireless/ath/carl9170/main.c | |||
@@ -1305,7 +1305,8 @@ static int carl9170_op_sta_remove(struct ieee80211_hw *hw, | |||
1305 | return 0; | 1305 | return 0; |
1306 | } | 1306 | } |
1307 | 1307 | ||
1308 | static int carl9170_op_conf_tx(struct ieee80211_hw *hw, u16 queue, | 1308 | static int carl9170_op_conf_tx(struct ieee80211_hw *hw, |
1309 | struct ieee80211_vif *vif, u16 queue, | ||
1309 | const struct ieee80211_tx_queue_params *param) | 1310 | const struct ieee80211_tx_queue_params *param) |
1310 | { | 1311 | { |
1311 | struct ar9170 *ar = hw->priv; | 1312 | struct ar9170 *ar = hw->priv; |
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c index 43400fb62e1c..7cf4125a1624 100644 --- a/drivers/net/wireless/b43/main.c +++ b/drivers/net/wireless/b43/main.c | |||
@@ -3559,7 +3559,8 @@ static void b43_qos_init(struct b43_wldev *dev) | |||
3559 | b43dbg(dev->wl, "QoS enabled\n"); | 3559 | b43dbg(dev->wl, "QoS enabled\n"); |
3560 | } | 3560 | } |
3561 | 3561 | ||
3562 | static int b43_op_conf_tx(struct ieee80211_hw *hw, u16 _queue, | 3562 | static int b43_op_conf_tx(struct ieee80211_hw *hw, |
3563 | struct ieee80211_vif *vif, u16 _queue, | ||
3563 | const struct ieee80211_tx_queue_params *params) | 3564 | const struct ieee80211_tx_queue_params *params) |
3564 | { | 3565 | { |
3565 | struct b43_wl *wl = hw_to_b43_wl(hw); | 3566 | struct b43_wl *wl = hw_to_b43_wl(hw); |
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c index 468d1836548e..a3b72cd72c66 100644 --- a/drivers/net/wireless/b43legacy/main.c +++ b/drivers/net/wireless/b43legacy/main.c | |||
@@ -2466,7 +2466,8 @@ out: | |||
2466 | } | 2466 | } |
2467 | } | 2467 | } |
2468 | 2468 | ||
2469 | static int b43legacy_op_conf_tx(struct ieee80211_hw *hw, u16 queue, | 2469 | static int b43legacy_op_conf_tx(struct ieee80211_hw *hw, |
2470 | struct ieee80211_vif *vif, u16 queue, | ||
2470 | const struct ieee80211_tx_queue_params *params) | 2471 | const struct ieee80211_tx_queue_params *params) |
2471 | { | 2472 | { |
2472 | return 0; | 2473 | return 0; |
diff --git a/drivers/net/wireless/iwlegacy/iwl-core.c b/drivers/net/wireless/iwlegacy/iwl-core.c index 8928d47432df..2bd5659310d7 100644 --- a/drivers/net/wireless/iwlegacy/iwl-core.c +++ b/drivers/net/wireless/iwlegacy/iwl-core.c | |||
@@ -1250,7 +1250,8 @@ void iwl_legacy_clear_isr_stats(struct iwl_priv *priv) | |||
1250 | memset(&priv->isr_stats, 0, sizeof(priv->isr_stats)); | 1250 | memset(&priv->isr_stats, 0, sizeof(priv->isr_stats)); |
1251 | } | 1251 | } |
1252 | 1252 | ||
1253 | int iwl_legacy_mac_conf_tx(struct ieee80211_hw *hw, u16 queue, | 1253 | int iwl_legacy_mac_conf_tx(struct ieee80211_hw *hw, |
1254 | struct ieee80211_vif *vif, u16 queue, | ||
1254 | const struct ieee80211_tx_queue_params *params) | 1255 | const struct ieee80211_tx_queue_params *params) |
1255 | { | 1256 | { |
1256 | struct iwl_priv *priv = hw->priv; | 1257 | struct iwl_priv *priv = hw->priv; |
diff --git a/drivers/net/wireless/iwlegacy/iwl-core.h b/drivers/net/wireless/iwlegacy/iwl-core.h index b2df01c8f8f5..d1271fe07d4b 100644 --- a/drivers/net/wireless/iwlegacy/iwl-core.h +++ b/drivers/net/wireless/iwlegacy/iwl-core.h | |||
@@ -286,7 +286,8 @@ struct iwl_cfg { | |||
286 | ***************************/ | 286 | ***************************/ |
287 | 287 | ||
288 | struct ieee80211_hw *iwl_legacy_alloc_all(struct iwl_cfg *cfg); | 288 | struct ieee80211_hw *iwl_legacy_alloc_all(struct iwl_cfg *cfg); |
289 | int iwl_legacy_mac_conf_tx(struct ieee80211_hw *hw, u16 queue, | 289 | int iwl_legacy_mac_conf_tx(struct ieee80211_hw *hw, |
290 | struct ieee80211_vif *vif, u16 queue, | ||
290 | const struct ieee80211_tx_queue_params *params); | 291 | const struct ieee80211_tx_queue_params *params); |
291 | int iwl_legacy_mac_tx_last_beacon(struct ieee80211_hw *hw); | 292 | int iwl_legacy_mac_tx_last_beacon(struct ieee80211_hw *hw); |
292 | void iwl_legacy_set_rxon_hwcrypto(struct iwl_priv *priv, | 293 | void iwl_legacy_set_rxon_hwcrypto(struct iwl_priv *priv, |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index fc400bb2bdff..0725603dbf1d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -1123,8 +1123,9 @@ int iwl_send_statistics_request(struct iwl_priv *priv, u8 flags, bool clear) | |||
1123 | &statistics_cmd); | 1123 | &statistics_cmd); |
1124 | } | 1124 | } |
1125 | 1125 | ||
1126 | int iwl_mac_conf_tx(struct ieee80211_hw *hw, u16 queue, | 1126 | int iwl_mac_conf_tx(struct ieee80211_hw *hw, |
1127 | const struct ieee80211_tx_queue_params *params) | 1127 | struct ieee80211_vif *vif, u16 queue, |
1128 | const struct ieee80211_tx_queue_params *params) | ||
1128 | { | 1129 | { |
1129 | struct iwl_priv *priv = hw->priv; | 1130 | struct iwl_priv *priv = hw->priv; |
1130 | struct iwl_rxon_context *ctx; | 1131 | struct iwl_rxon_context *ctx; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index e55ffad83950..db50b650756c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -236,7 +236,8 @@ struct iwl_cfg { | |||
236 | * L i b * | 236 | * L i b * |
237 | ***************************/ | 237 | ***************************/ |
238 | 238 | ||
239 | int iwl_mac_conf_tx(struct ieee80211_hw *hw, u16 queue, | 239 | int iwl_mac_conf_tx(struct ieee80211_hw *hw, |
240 | struct ieee80211_vif *vif, u16 queue, | ||
240 | const struct ieee80211_tx_queue_params *params); | 241 | const struct ieee80211_tx_queue_params *params); |
241 | int iwl_mac_tx_last_beacon(struct ieee80211_hw *hw); | 242 | int iwl_mac_tx_last_beacon(struct ieee80211_hw *hw); |
242 | void iwl_set_rxon_hwcrypto(struct iwl_priv *priv, struct iwl_rxon_context *ctx, | 243 | void iwl_set_rxon_hwcrypto(struct iwl_priv *priv, struct iwl_rxon_context *ctx, |
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 34b79fc91e39..68455a2307cb 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c | |||
@@ -970,7 +970,8 @@ static int mac80211_hwsim_set_tim(struct ieee80211_hw *hw, | |||
970 | } | 970 | } |
971 | 971 | ||
972 | static int mac80211_hwsim_conf_tx( | 972 | static int mac80211_hwsim_conf_tx( |
973 | struct ieee80211_hw *hw, u16 queue, | 973 | struct ieee80211_hw *hw, |
974 | struct ieee80211_vif *vif, u16 queue, | ||
974 | const struct ieee80211_tx_queue_params *params) | 975 | const struct ieee80211_tx_queue_params *params) |
975 | { | 976 | { |
976 | wiphy_debug(hw->wiphy, | 977 | wiphy_debug(hw->wiphy, |
diff --git a/drivers/net/wireless/mwl8k.c b/drivers/net/wireless/mwl8k.c index ea1395aafa39..995695c28d5c 100644 --- a/drivers/net/wireless/mwl8k.c +++ b/drivers/net/wireless/mwl8k.c | |||
@@ -4915,7 +4915,8 @@ static int mwl8k_sta_add(struct ieee80211_hw *hw, | |||
4915 | return ret; | 4915 | return ret; |
4916 | } | 4916 | } |
4917 | 4917 | ||
4918 | static int mwl8k_conf_tx(struct ieee80211_hw *hw, u16 queue, | 4918 | static int mwl8k_conf_tx(struct ieee80211_hw *hw, |
4919 | struct ieee80211_vif *vif, u16 queue, | ||
4919 | const struct ieee80211_tx_queue_params *params) | 4920 | const struct ieee80211_tx_queue_params *params) |
4920 | { | 4921 | { |
4921 | struct mwl8k_priv *priv = hw->priv; | 4922 | struct mwl8k_priv *priv = hw->priv; |
@@ -5462,7 +5463,7 @@ static int mwl8k_reload_firmware(struct ieee80211_hw *hw, char *fw_image) | |||
5462 | goto fail; | 5463 | goto fail; |
5463 | 5464 | ||
5464 | for (i = 0; i < MWL8K_TX_WMM_QUEUES; i++) { | 5465 | for (i = 0; i < MWL8K_TX_WMM_QUEUES; i++) { |
5465 | rc = mwl8k_conf_tx(hw, i, &priv->wmm_params[i]); | 5466 | rc = mwl8k_conf_tx(hw, NULL, i, &priv->wmm_params[i]); |
5466 | if (rc) | 5467 | if (rc) |
5467 | goto fail; | 5468 | goto fail; |
5468 | } | 5469 | } |
diff --git a/drivers/net/wireless/p54/main.c b/drivers/net/wireless/p54/main.c index 726a9343f514..ad9ae04d07aa 100644 --- a/drivers/net/wireless/p54/main.c +++ b/drivers/net/wireless/p54/main.c | |||
@@ -404,7 +404,8 @@ static void p54_configure_filter(struct ieee80211_hw *dev, | |||
404 | p54_set_groupfilter(priv); | 404 | p54_set_groupfilter(priv); |
405 | } | 405 | } |
406 | 406 | ||
407 | static int p54_conf_tx(struct ieee80211_hw *dev, u16 queue, | 407 | static int p54_conf_tx(struct ieee80211_hw *dev, |
408 | struct ieee80211_vif *vif, u16 queue, | ||
408 | const struct ieee80211_tx_queue_params *params) | 409 | const struct ieee80211_tx_queue_params *params) |
409 | { | 410 | { |
410 | struct p54_common *priv = dev->priv; | 411 | struct p54_common *priv = dev->priv; |
diff --git a/drivers/net/wireless/rt2x00/rt2400pci.c b/drivers/net/wireless/rt2x00/rt2400pci.c index 7e9272b8f01d..3a6b40239bc1 100644 --- a/drivers/net/wireless/rt2x00/rt2400pci.c +++ b/drivers/net/wireless/rt2x00/rt2400pci.c | |||
@@ -1648,7 +1648,8 @@ static int rt2400pci_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
1648 | /* | 1648 | /* |
1649 | * IEEE80211 stack callback functions. | 1649 | * IEEE80211 stack callback functions. |
1650 | */ | 1650 | */ |
1651 | static int rt2400pci_conf_tx(struct ieee80211_hw *hw, u16 queue, | 1651 | static int rt2400pci_conf_tx(struct ieee80211_hw *hw, |
1652 | struct ieee80211_vif *vif, u16 queue, | ||
1652 | const struct ieee80211_tx_queue_params *params) | 1653 | const struct ieee80211_tx_queue_params *params) |
1653 | { | 1654 | { |
1654 | struct rt2x00_dev *rt2x00dev = hw->priv; | 1655 | struct rt2x00_dev *rt2x00dev = hw->priv; |
@@ -1661,7 +1662,7 @@ static int rt2400pci_conf_tx(struct ieee80211_hw *hw, u16 queue, | |||
1661 | if (queue != 0) | 1662 | if (queue != 0) |
1662 | return -EINVAL; | 1663 | return -EINVAL; |
1663 | 1664 | ||
1664 | if (rt2x00mac_conf_tx(hw, queue, params)) | 1665 | if (rt2x00mac_conf_tx(hw, vif, queue, params)) |
1665 | return -EINVAL; | 1666 | return -EINVAL; |
1666 | 1667 | ||
1667 | /* | 1668 | /* |
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c index 9688dd0a7ebd..3f183a15186e 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/rt2x00/rt2800lib.c | |||
@@ -4398,7 +4398,8 @@ int rt2800_set_rts_threshold(struct ieee80211_hw *hw, u32 value) | |||
4398 | } | 4398 | } |
4399 | EXPORT_SYMBOL_GPL(rt2800_set_rts_threshold); | 4399 | EXPORT_SYMBOL_GPL(rt2800_set_rts_threshold); |
4400 | 4400 | ||
4401 | int rt2800_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, | 4401 | int rt2800_conf_tx(struct ieee80211_hw *hw, |
4402 | struct ieee80211_vif *vif, u16 queue_idx, | ||
4402 | const struct ieee80211_tx_queue_params *params) | 4403 | const struct ieee80211_tx_queue_params *params) |
4403 | { | 4404 | { |
4404 | struct rt2x00_dev *rt2x00dev = hw->priv; | 4405 | struct rt2x00_dev *rt2x00dev = hw->priv; |
@@ -4414,7 +4415,7 @@ int rt2800_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, | |||
4414 | * we are free to update the registers based on the value | 4415 | * we are free to update the registers based on the value |
4415 | * in the queue parameter. | 4416 | * in the queue parameter. |
4416 | */ | 4417 | */ |
4417 | retval = rt2x00mac_conf_tx(hw, queue_idx, params); | 4418 | retval = rt2x00mac_conf_tx(hw, vif, queue_idx, params); |
4418 | if (retval) | 4419 | if (retval) |
4419 | return retval; | 4420 | return retval; |
4420 | 4421 | ||
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.h b/drivers/net/wireless/rt2x00/rt2800lib.h index 6de128e9c612..8c3c281904fe 100644 --- a/drivers/net/wireless/rt2x00/rt2800lib.h +++ b/drivers/net/wireless/rt2x00/rt2800lib.h | |||
@@ -197,7 +197,8 @@ int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev); | |||
197 | void rt2800_get_tkip_seq(struct ieee80211_hw *hw, u8 hw_key_idx, u32 *iv32, | 197 | void rt2800_get_tkip_seq(struct ieee80211_hw *hw, u8 hw_key_idx, u32 *iv32, |
198 | u16 *iv16); | 198 | u16 *iv16); |
199 | int rt2800_set_rts_threshold(struct ieee80211_hw *hw, u32 value); | 199 | int rt2800_set_rts_threshold(struct ieee80211_hw *hw, u32 value); |
200 | int rt2800_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, | 200 | int rt2800_conf_tx(struct ieee80211_hw *hw, |
201 | struct ieee80211_vif *vif, u16 queue_idx, | ||
201 | const struct ieee80211_tx_queue_params *params); | 202 | const struct ieee80211_tx_queue_params *params); |
202 | u64 rt2800_get_tsf(struct ieee80211_hw *hw, struct ieee80211_vif *vif); | 203 | u64 rt2800_get_tsf(struct ieee80211_hw *hw, struct ieee80211_vif *vif); |
203 | int rt2800_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, | 204 | int rt2800_ampdu_action(struct ieee80211_hw *hw, struct ieee80211_vif *vif, |
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index cbf8eb334e96..2ec5c00235e6 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -1299,7 +1299,8 @@ void rt2x00mac_bss_info_changed(struct ieee80211_hw *hw, | |||
1299 | struct ieee80211_vif *vif, | 1299 | struct ieee80211_vif *vif, |
1300 | struct ieee80211_bss_conf *bss_conf, | 1300 | struct ieee80211_bss_conf *bss_conf, |
1301 | u32 changes); | 1301 | u32 changes); |
1302 | int rt2x00mac_conf_tx(struct ieee80211_hw *hw, u16 queue, | 1302 | int rt2x00mac_conf_tx(struct ieee80211_hw *hw, |
1303 | struct ieee80211_vif *vif, u16 queue, | ||
1303 | const struct ieee80211_tx_queue_params *params); | 1304 | const struct ieee80211_tx_queue_params *params); |
1304 | void rt2x00mac_rfkill_poll(struct ieee80211_hw *hw); | 1305 | void rt2x00mac_rfkill_poll(struct ieee80211_hw *hw); |
1305 | void rt2x00mac_flush(struct ieee80211_hw *hw, bool drop); | 1306 | void rt2x00mac_flush(struct ieee80211_hw *hw, bool drop); |
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index cef1c878c37e..bf0acff07807 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -713,7 +713,8 @@ void rt2x00mac_bss_info_changed(struct ieee80211_hw *hw, | |||
713 | } | 713 | } |
714 | EXPORT_SYMBOL_GPL(rt2x00mac_bss_info_changed); | 714 | EXPORT_SYMBOL_GPL(rt2x00mac_bss_info_changed); |
715 | 715 | ||
716 | int rt2x00mac_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, | 716 | int rt2x00mac_conf_tx(struct ieee80211_hw *hw, |
717 | struct ieee80211_vif *vif, u16 queue_idx, | ||
717 | const struct ieee80211_tx_queue_params *params) | 718 | const struct ieee80211_tx_queue_params *params) |
718 | { | 719 | { |
719 | struct rt2x00_dev *rt2x00dev = hw->priv; | 720 | struct rt2x00_dev *rt2x00dev = hw->priv; |
diff --git a/drivers/net/wireless/rt2x00/rt61pci.c b/drivers/net/wireless/rt2x00/rt61pci.c index 6b6a8e2dcddc..bf55b4a311e3 100644 --- a/drivers/net/wireless/rt2x00/rt61pci.c +++ b/drivers/net/wireless/rt2x00/rt61pci.c | |||
@@ -2883,7 +2883,8 @@ static int rt61pci_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
2883 | /* | 2883 | /* |
2884 | * IEEE80211 stack callback functions. | 2884 | * IEEE80211 stack callback functions. |
2885 | */ | 2885 | */ |
2886 | static int rt61pci_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, | 2886 | static int rt61pci_conf_tx(struct ieee80211_hw *hw, |
2887 | struct ieee80211_vif *vif, u16 queue_idx, | ||
2887 | const struct ieee80211_tx_queue_params *params) | 2888 | const struct ieee80211_tx_queue_params *params) |
2888 | { | 2889 | { |
2889 | struct rt2x00_dev *rt2x00dev = hw->priv; | 2890 | struct rt2x00_dev *rt2x00dev = hw->priv; |
@@ -2899,7 +2900,7 @@ static int rt61pci_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, | |||
2899 | * we are free to update the registers based on the value | 2900 | * we are free to update the registers based on the value |
2900 | * in the queue parameter. | 2901 | * in the queue parameter. |
2901 | */ | 2902 | */ |
2902 | retval = rt2x00mac_conf_tx(hw, queue_idx, params); | 2903 | retval = rt2x00mac_conf_tx(hw, vif, queue_idx, params); |
2903 | if (retval) | 2904 | if (retval) |
2904 | return retval; | 2905 | return retval; |
2905 | 2906 | ||
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index 6f51e39f5595..cfb19dbb0a67 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -2222,7 +2222,8 @@ static int rt73usb_probe_hw(struct rt2x00_dev *rt2x00dev) | |||
2222 | /* | 2222 | /* |
2223 | * IEEE80211 stack callback functions. | 2223 | * IEEE80211 stack callback functions. |
2224 | */ | 2224 | */ |
2225 | static int rt73usb_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, | 2225 | static int rt73usb_conf_tx(struct ieee80211_hw *hw, |
2226 | struct ieee80211_vif *vif, u16 queue_idx, | ||
2226 | const struct ieee80211_tx_queue_params *params) | 2227 | const struct ieee80211_tx_queue_params *params) |
2227 | { | 2228 | { |
2228 | struct rt2x00_dev *rt2x00dev = hw->priv; | 2229 | struct rt2x00_dev *rt2x00dev = hw->priv; |
@@ -2238,7 +2239,7 @@ static int rt73usb_conf_tx(struct ieee80211_hw *hw, u16 queue_idx, | |||
2238 | * we are free to update the registers based on the value | 2239 | * we are free to update the registers based on the value |
2239 | * in the queue parameter. | 2240 | * in the queue parameter. |
2240 | */ | 2241 | */ |
2241 | retval = rt2x00mac_conf_tx(hw, queue_idx, params); | 2242 | retval = rt2x00mac_conf_tx(hw, vif, queue_idx, params); |
2242 | if (retval) | 2243 | if (retval) |
2243 | return retval; | 2244 | return retval; |
2244 | 2245 | ||
diff --git a/drivers/net/wireless/rtl818x/rtl8187/dev.c b/drivers/net/wireless/rtl818x/rtl8187/dev.c index f5afa155ce91..24873b55b55c 100644 --- a/drivers/net/wireless/rtl818x/rtl8187/dev.c +++ b/drivers/net/wireless/rtl818x/rtl8187/dev.c | |||
@@ -1241,7 +1241,8 @@ static void rtl8187_configure_filter(struct ieee80211_hw *dev, | |||
1241 | rtl818x_iowrite32_async(priv, &priv->map->RX_CONF, priv->rx_conf); | 1241 | rtl818x_iowrite32_async(priv, &priv->map->RX_CONF, priv->rx_conf); |
1242 | } | 1242 | } |
1243 | 1243 | ||
1244 | static int rtl8187_conf_tx(struct ieee80211_hw *dev, u16 queue, | 1244 | static int rtl8187_conf_tx(struct ieee80211_hw *dev, |
1245 | struct ieee80211_vif *vif, u16 queue, | ||
1245 | const struct ieee80211_tx_queue_params *params) | 1246 | const struct ieee80211_tx_queue_params *params) |
1246 | { | 1247 | { |
1247 | struct rtl8187_priv *priv = dev->priv; | 1248 | struct rtl8187_priv *priv = dev->priv; |
diff --git a/drivers/net/wireless/rtlwifi/core.c b/drivers/net/wireless/rtlwifi/core.c index 21e40f62a8d7..3f0f056fae9c 100644 --- a/drivers/net/wireless/rtlwifi/core.c +++ b/drivers/net/wireless/rtlwifi/core.c | |||
@@ -504,7 +504,8 @@ static int _rtl_get_hal_qnum(u16 queue) | |||
504 | *for mac80211 VO=0, VI=1, BE=2, BK=3 | 504 | *for mac80211 VO=0, VI=1, BE=2, BK=3 |
505 | *for rtl819x BE=0, BK=1, VI=2, VO=3 | 505 | *for rtl819x BE=0, BK=1, VI=2, VO=3 |
506 | */ | 506 | */ |
507 | static int rtl_op_conf_tx(struct ieee80211_hw *hw, u16 queue, | 507 | static int rtl_op_conf_tx(struct ieee80211_hw *hw, |
508 | struct ieee80211_vif *vif, u16 queue, | ||
508 | const struct ieee80211_tx_queue_params *param) | 509 | const struct ieee80211_tx_queue_params *param) |
509 | { | 510 | { |
510 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 511 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
diff --git a/drivers/net/wireless/wl1251/main.c b/drivers/net/wireless/wl1251/main.c index a14a48c99cdc..ba3268ea81fe 100644 --- a/drivers/net/wireless/wl1251/main.c +++ b/drivers/net/wireless/wl1251/main.c | |||
@@ -1158,7 +1158,8 @@ static struct ieee80211_channel wl1251_channels[] = { | |||
1158 | { .hw_value = 13, .center_freq = 2472}, | 1158 | { .hw_value = 13, .center_freq = 2472}, |
1159 | }; | 1159 | }; |
1160 | 1160 | ||
1161 | static int wl1251_op_conf_tx(struct ieee80211_hw *hw, u16 queue, | 1161 | static int wl1251_op_conf_tx(struct ieee80211_hw *hw, |
1162 | struct ieee80211_vif *vif, u16 queue, | ||
1162 | const struct ieee80211_tx_queue_params *params) | 1163 | const struct ieee80211_tx_queue_params *params) |
1163 | { | 1164 | { |
1164 | enum wl1251_acx_ps_scheme ps_scheme; | 1165 | enum wl1251_acx_ps_scheme ps_scheme; |
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 7d409b0f3357..e2d6edd2fcd2 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c | |||
@@ -3744,7 +3744,8 @@ out: | |||
3744 | mutex_unlock(&wl->mutex); | 3744 | mutex_unlock(&wl->mutex); |
3745 | } | 3745 | } |
3746 | 3746 | ||
3747 | static int wl1271_op_conf_tx(struct ieee80211_hw *hw, u16 queue, | 3747 | static int wl1271_op_conf_tx(struct ieee80211_hw *hw, |
3748 | struct ieee80211_vif *vif, u16 queue, | ||
3748 | const struct ieee80211_tx_queue_params *params) | 3749 | const struct ieee80211_tx_queue_params *params) |
3749 | { | 3750 | { |
3750 | struct wl1271 *wl = hw->priv; | 3751 | struct wl1271 *wl = hw->priv; |