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>
This commit is contained in:
committed by
John W. Linville
parent
3c607d27c8
commit
8a3a3c85e4
@@ -504,7 +504,8 @@ static int _rtl_get_hal_qnum(u16 queue)
|
||||
*for mac80211 VO=0, VI=1, BE=2, BK=3
|
||||
*for rtl819x BE=0, BK=1, VI=2, VO=3
|
||||
*/
|
||||
static int rtl_op_conf_tx(struct ieee80211_hw *hw, u16 queue,
|
||||
static int rtl_op_conf_tx(struct ieee80211_hw *hw,
|
||||
struct ieee80211_vif *vif, u16 queue,
|
||||
const struct ieee80211_tx_queue_params *param)
|
||||
{
|
||||
struct rtl_priv *rtlpriv = rtl_priv(hw);
|
||||
|
Reference in New Issue
Block a user