]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/xradio/fix-transmit-of-tkip-encrypted-packets.patch
hdparm: Fix build with glibc 2.36
[people/pmueller/ipfire-2.x.git] / src / patches / xradio / fix-transmit-of-tkip-encrypted-packets.patch
1 diff -Naur a/tx.c b/tx.c
2 --- a/tx.c 2020-05-02 19:17:06.000000000 +0200
3 +++ b/tx.c 2021-05-26 12:33:36.117730336 +0200
4 @@ -707,8 +707,11 @@
5 memmove(p, &p[offset], t->skb->len - offset);
6 skb_trim(t->skb, t->skb->len - offset);
7 }
8 - /* ccmp pkt from umac to driver,it has iv room,,so ccmp pkt do not add iv room */
9 - if (t->tx_info->control.hw_key->cipher != WLAN_CIPHER_SUITE_CCMP){
10 +
11 + /* ccmp/tkip pkt from umac to driver,it has iv room,,so ccmp/tkip pkt do not add iv room */
12 + if ( (t->tx_info->control.hw_key->cipher != WLAN_CIPHER_SUITE_CCMP) &&
13 + (t->tx_info->control.hw_key->cipher != WLAN_CIPHER_SUITE_TKIP) )
14 + {
15 u8 *newhdr;
16 newhdr = skb_push(t->skb, iv_len);
17 memmove(newhdr, newhdr + iv_len, t->hdrlen);