Skip to content

Commit

Permalink
rtlwifi: don't set IEEE80211_TX_STAT_ACK by default
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Lamparter <[email protected]>
  • Loading branch information
chunkeey committed Jan 7, 2015
1 parent 08e0940 commit 8b79130
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rtlwifi/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -868,12 +868,17 @@ static int _usb_tx_post(struct ieee80211_hw *hw, struct urb *urb,
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_usb *rtlusb = rtl_usbdev(rtl_usbpriv(hw));
struct ieee80211_tx_info *txinfo;
struct ieee80211_hdr *hdr;

rtlusb->usb_tx_post_hdl(hw, urb, skb);
skb_pull(skb, RTL_TX_HEADER_SIZE);
txinfo = IEEE80211_SKB_CB(skb);
ieee80211_tx_info_clear_status(txinfo);
txinfo->flags |= IEEE80211_TX_STAT_ACK;
hdr = (void *)skb->data;
if (ieee80211_is_auth(hdr->frame_control) ||
ieee80211_is_assoc_req(hdr->frame_control) ||
ieee80211_is_reassoc_req(hdr->frame_control))
txinfo->flags |= IEEE80211_TX_STAT_ACK;

if (urb->status) {
RT_TRACE(rtlpriv, COMP_USB, DBG_EMERG,
Expand Down

0 comments on commit 8b79130

Please sign in to comment.