Packet injection bug fixing 163/head
authorClouds Wei <cloudswei@gmail.com>
Thu, 23 Jul 2020 07:18:12 +0000 (00:18 -0700)
committerClouds Wei <cloudswei@gmail.com>
Thu, 23 Jul 2020 07:18:12 +0000 (00:18 -0700)
Fix issue: Packet injection bugs for control frames #162

Signed-off-by: Clouds Wei <cloudswei@gmail.com>
target_firmware/wlan/if_owl.c

index 6dda78cef6b11c340fada4b4b900a118bed2ee50..919a4784f9e0c4339f751b7ff0666b0938cc4068 100755 (executable)
@@ -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;