560-ath9k_fix_eap_handling.patch 929 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --- a/drivers/net/wireless/ath/ath9k/xmit.c
  2. +++ b/drivers/net/wireless/ath/ath9k/xmit.c
  3. @@ -1353,25 +1353,6 @@ static enum ath9k_pkt_type get_hw_packet
  4. return htype;
  5. }
  6. -static bool is_pae(struct sk_buff *skb)
  7. -{
  8. - struct ieee80211_hdr *hdr;
  9. - __le16 fc;
  10. -
  11. - hdr = (struct ieee80211_hdr *)skb->data;
  12. - fc = hdr->frame_control;
  13. -
  14. - if (ieee80211_is_data(fc)) {
  15. - if (ieee80211_is_nullfunc(fc) ||
  16. - /* Port Access Entity (IEEE 802.1X) */
  17. - (skb->protocol == cpu_to_be16(ETH_P_PAE))) {
  18. - return true;
  19. - }
  20. - }
  21. -
  22. - return false;
  23. -}
  24. -
  25. static int get_hw_crypto_keytype(struct sk_buff *skb)
  26. {
  27. struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
  28. @@ -1610,7 +1591,7 @@ static int ath_tx_setup_buffer(struct ie
  29. bf->bf_frmlen -= padsize;
  30. }
  31. - if (conf_is_ht(&hw->conf) && !is_pae(skb))
  32. + if (conf_is_ht(&hw->conf))
  33. bf->bf_state.bf_type |= BUF_HT;
  34. bf->bf_flags = setup_tx_flags(sc, skb, txctl->txq);