Skip to content

Commit

Permalink
Packet injection bug fixing
Browse files Browse the repository at this point in the history
Fix issue: Packet injection bugs for control frames qca#162

Signed-off-by: Clouds Wei <[email protected]>
  • Loading branch information
cloudswei committed Jul 23, 2020
1 parent d0207fd commit d2521a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion target_firmware/wlan/if_owl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d2521a6

Please sign in to comment.