Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next
Conflicts: drivers/net/wireless/mac80211_hwsim.c
This commit is contained in:
@@ -577,7 +577,9 @@ void carl9170_rx(struct ar9170 *ar, void *buf, unsigned int len);
|
||||
void carl9170_handle_command_response(struct ar9170 *ar, void *buf, u32 len);
|
||||
|
||||
/* TX */
|
||||
void carl9170_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb);
|
||||
void carl9170_op_tx(struct ieee80211_hw *hw,
|
||||
struct ieee80211_tx_control *control,
|
||||
struct sk_buff *skb);
|
||||
void carl9170_tx_janitor(struct work_struct *work);
|
||||
void carl9170_tx_process_status(struct ar9170 *ar,
|
||||
const struct carl9170_rsp *cmd);
|
||||
|
@@ -867,14 +867,15 @@ static bool carl9170_tx_cts_check(struct ar9170 *ar,
|
||||
return false;
|
||||
}
|
||||
|
||||
static int carl9170_tx_prepare(struct ar9170 *ar, struct sk_buff *skb)
|
||||
static int carl9170_tx_prepare(struct ar9170 *ar,
|
||||
struct ieee80211_sta *sta,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
struct ieee80211_hdr *hdr;
|
||||
struct _carl9170_tx_superframe *txc;
|
||||
struct carl9170_vif_info *cvif;
|
||||
struct ieee80211_tx_info *info;
|
||||
struct ieee80211_tx_rate *txrate;
|
||||
struct ieee80211_sta *sta;
|
||||
struct carl9170_tx_info *arinfo;
|
||||
unsigned int hw_queue;
|
||||
int i;
|
||||
@@ -910,8 +911,6 @@ static int carl9170_tx_prepare(struct ar9170 *ar, struct sk_buff *skb)
|
||||
else
|
||||
cvif = NULL;
|
||||
|
||||
sta = info->control.sta;
|
||||
|
||||
txc = (void *)skb_push(skb, sizeof(*txc));
|
||||
memset(txc, 0, sizeof(*txc));
|
||||
|
||||
@@ -1457,20 +1456,21 @@ err_unlock_rcu:
|
||||
return false;
|
||||
}
|
||||
|
||||
void carl9170_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb)
|
||||
void carl9170_op_tx(struct ieee80211_hw *hw,
|
||||
struct ieee80211_tx_control *control,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
struct ar9170 *ar = hw->priv;
|
||||
struct ieee80211_tx_info *info;
|
||||
struct ieee80211_sta *sta;
|
||||
struct ieee80211_sta *sta = control->sta;
|
||||
bool run;
|
||||
|
||||
if (unlikely(!IS_STARTED(ar)))
|
||||
goto err_free;
|
||||
|
||||
info = IEEE80211_SKB_CB(skb);
|
||||
sta = info->control.sta;
|
||||
|
||||
if (unlikely(carl9170_tx_prepare(ar, skb)))
|
||||
if (unlikely(carl9170_tx_prepare(ar, sta, skb)))
|
||||
goto err_free;
|
||||
|
||||
carl9170_tx_accounting(ar, skb);
|
||||
|
Reference in New Issue
Block a user