summaryrefslogtreecommitdiff
path: root/package/mac80211/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-01-31 21:27:51 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-01-31 21:27:51 +0000
commit04e89fe9c5c40d701aa847e65fbd3d35eb46d249 (patch)
tree064a79bc7073cc98576f1a7f87e0ba374a8191fa /package/mac80211/patches
parentb93682af1455048d2e1093f94d571643685b3ae1 (diff)
downloadmtk-20170518-04e89fe9c5c40d701aa847e65fbd3d35eb46d249.zip
mtk-20170518-04e89fe9c5c40d701aa847e65fbd3d35eb46d249.tar.gz
mtk-20170518-04e89fe9c5c40d701aa847e65fbd3d35eb46d249.tar.bz2
mac80211: fix an eap frame handling bug in ath9k - fixes client mode rekeying issues
SVN-Revision: 19474
Diffstat (limited to 'package/mac80211/patches')
-rw-r--r--package/mac80211/patches/560-ath9k_fix_eap_handling.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/package/mac80211/patches/560-ath9k_fix_eap_handling.patch b/package/mac80211/patches/560-ath9k_fix_eap_handling.patch
new file mode 100644
index 0000000..d72fa97
--- /dev/null
+++ b/package/mac80211/patches/560-ath9k_fix_eap_handling.patch
@@ -0,0 +1,37 @@
+--- a/drivers/net/wireless/ath/ath9k/xmit.c
++++ b/drivers/net/wireless/ath/ath9k/xmit.c
+@@ -1353,25 +1353,6 @@ static enum ath9k_pkt_type get_hw_packet
+ return htype;
+ }
+
+-static bool is_pae(struct sk_buff *skb)
+-{
+- struct ieee80211_hdr *hdr;
+- __le16 fc;
+-
+- hdr = (struct ieee80211_hdr *)skb->data;
+- fc = hdr->frame_control;
+-
+- if (ieee80211_is_data(fc)) {
+- if (ieee80211_is_nullfunc(fc) ||
+- /* Port Access Entity (IEEE 802.1X) */
+- (skb->protocol == cpu_to_be16(ETH_P_PAE))) {
+- return true;
+- }
+- }
+-
+- return false;
+-}
+-
+ static int get_hw_crypto_keytype(struct sk_buff *skb)
+ {
+ struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb);
+@@ -1610,7 +1591,7 @@ static int ath_tx_setup_buffer(struct ie
+ bf->bf_frmlen -= padsize;
+ }
+
+- if (conf_is_ht(&hw->conf) && !is_pae(skb))
++ if (conf_is_ht(&hw->conf))
+ bf->bf_state.bf_type |= BUF_HT;
+
+ bf->bf_flags = setup_tx_flags(sc, skb, txctl->txq);