qcacmn: fix mon vap RX skb size issues

1) for raw mode, drop frames with invalid size
2) for non-raw mode, fixed issue that
frag list data_len's not properly calculated

The length issues will introduce kernel issues
during skb_linearize() at upper OS network stack layer.

Symptoms:
1)
WARNING: at net/core/skbuff.c:1782
PC is at skb_copy_bits+0x1b8/0x230

2)
kernel BU at net/core/skbuff.c:1615!
PC is at __pskb_pull_tail+0x70/0x2e4

CRs-fixed: 2188754

Change-Id: I848ec976cd922708ffd02d8272ea5a6f3bce2a00
This commit is contained in:
Neil Zhao
2018-03-02 16:00:00 -08:00
committed by nshrivas
parent 4ca1bf63ba
commit 0bd967d021
3 changed files with 14 additions and 2 deletions

View File

@@ -742,6 +742,8 @@ struct cdp_pdev_stats {
uint32_t mec;
/* Mesh Filtered packets */
uint32_t mesh_filter;
/* packets dropped on monitor vap */
uint32_t mon_rx_drop;
} dropped;
struct {