bug fix: remaining packet length calculation

This commit is contained in:
mmehari 2022-01-04 22:44:31 +01:00
parent 8730912d6f
commit 0c75a8e8f2

View File

@ -924,7 +924,7 @@ always @(posedge clock) begin
state <= S_DECODE_DATA;
// All MPDUs except last one does include padding
if((pkt_len_rem-pkt_len) > 4) begin
if((pkt_len_rem-pkt_len-mpdu_pad) > 4) begin
ht_aggr_last <= 0;
pkt_len_rem <= pkt_len_rem - (4 + pkt_len + mpdu_pad);
end else begin