qcacmn: Use correct skb headroom size to update radiotap header
Size of rx_pkt_hdr tlv structure is used to check if there is enough space in the SKB to add radiotap header. The issue is seen due to a single SKB can hold the multiple TLVs and the next subsequent SKB has the data. In this case, there is no headroom available in the second SKB. Therefore crash seen while adding the radiotap header in the second SKB. To fix this issue, check if the SKB has enough headroom space. If not, drop the frame. Change-Id: Icd11f946c0aee974dde2ef21f59cfe3d8b87fa5d CRs-Fixed: 2480719
This commit is contained in:

committed by
nshrivas

parent
f76d6062ce
commit
0843438590
@@ -1198,6 +1198,7 @@ struct cdp_htt_rx_pdev_stats {
|
||||
* @mesh_filter: Mesh Filtered packets
|
||||
* @mon_rx_drop: packets dropped on monitor vap
|
||||
* @wifi_parse: rxdma errors due to wifi parse error
|
||||
* @mon_radiotap_update_err: not enough space to update radiotap
|
||||
* @pkts: total packets replenished
|
||||
* @rxdma_err: rxdma errors for replenished
|
||||
* @nbuf_alloc_fail: nbuf alloc failed
|
||||
@@ -1227,8 +1228,10 @@ struct cdp_pdev_stats {
|
||||
uint32_t msdu_not_done;
|
||||
uint32_t mec;
|
||||
uint32_t mesh_filter;
|
||||
uint32_t mon_rx_drop;
|
||||
uint32_t wifi_parse;
|
||||
/* Monitor mode related */
|
||||
uint32_t mon_rx_drop;
|
||||
uint32_t mon_radiotap_update_err;
|
||||
} dropped;
|
||||
|
||||
struct {
|
||||
|
Reference in New Issue
Block a user