qcacmn: Fix invalid sa_da_idx condition in RX path

Currenly this function, is_sa_da_idx_valid(), called from dp_rx_process
does not take MC/BC packets into account. For broadcast packets e.g.
DHCP offer packets from some APs, this check may fail (incorrectly).
Thus dropping the broadcast packet, when it should have been passed
on to the stack.

Fix is_sa_da_idx_valid function by taking MC/BC packets into account.

Change-Id: Ibbb34134e997e0d5394dfa654be84b9fa43434a3
CRs-Fixed: 2466839
This commit is contained in:
Mohit Khanna
2019-06-13 18:32:50 -07:00
committed by nshrivas
parent f3af8bb319
commit 3ba9372a50
2 changed files with 5 additions and 3 deletions

View File

@@ -5094,6 +5094,8 @@ void dp_txrx_path_stats(struct dp_soc *soc)
pdev->soc->stats.rx.err.rx_invalid_peer_id.num);
DP_PRINT_STATS("packet_len invalid %u",
pdev->soc->stats.rx.err.rx_invalid_pkt_len.num);
DP_PRINT_STATS("sa or da idx invalid %u",
pdev->soc->stats.rx.err.invalid_sa_da_idx);
DP_PRINT_STATS("Reo Statistics");
DP_PRINT_STATS("rbm error: %u msdus",