From: Clouds Wei Date: Thu, 23 Jul 2020 07:18:12 +0000 (-0700) Subject: Packet injection bug fixing X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=refs%2Fpull%2F163%2Fhead;p=open-ath9k-htc-firmware.git Packet injection bug fixing Fix issue: Packet injection bugs for control frames #162 Signed-off-by: Clouds Wei --- diff --git a/target_firmware/wlan/if_owl.c b/target_firmware/wlan/if_owl.c index 6dda78c..919a478 100755 --- a/target_firmware/wlan/if_owl.c +++ b/target_firmware/wlan/if_owl.c @@ -1108,7 +1108,6 @@ ath_tgt_send_mgt(struct ath_softc_tgt *sc,adf_nbuf_t hdr_buf, adf_nbuf_t skb, hdrlen = ieee80211_anyhdrsize(wh); pktlen = len; keyix = HAL_TXKEYIX_INVALID; - pktlen -= (hdrlen & 3); pktlen += IEEE80211_CRC_LEN; if (iswep) @@ -1142,6 +1141,8 @@ ath_tgt_send_mgt(struct ath_softc_tgt *sc,adf_nbuf_t hdr_buf, adf_nbuf_t skb, atype = HAL_PKT_TYPE_NORMAL; break; + case IEEE80211_FC0_TYPE_CTL: + flags |= HAL_TXDESC_NOACK; default: atype = HAL_PKT_TYPE_NORMAL; break;