mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
qcacmn: Add missing NULL check in DP rx path
Add a missing NULL check for peer object in rx_da_learn API Also add missing elements in pdev_stats_cmn_tlv structure. CRs-Fixed: 2357352 Change-Id: Ie54fd0a6a45f00d60420c391098f22b0097de3ac
This commit is contained in:
parent
db29e57ef8
commit
eb0e456d68
2 changed files with 11 additions and 1 deletions
|
|
@ -804,6 +804,13 @@ struct cdp_htt_tx_pdev_stats_cmn_tlv {
|
|||
* (acked, no ack, flush, TTL, etc)
|
||||
*/
|
||||
uint32_t local_data_freed;
|
||||
|
||||
/* Num MPDUs tried by SW */
|
||||
uint32_t mpdu_tried;
|
||||
/* Num of waiting seq posted in isr completion handler */
|
||||
uint32_t isr_wait_seq_posted;
|
||||
uint32_t tx_active_dur_us_low;
|
||||
uint32_t tx_active_dur_us_high;
|
||||
};
|
||||
|
||||
struct cdp_htt_tx_pdev_stats_urrn_tlv_v {
|
||||
|
|
|
|||
|
|
@ -357,7 +357,10 @@ dp_rx_da_learn(struct dp_soc *soc,
|
|||
if (qdf_likely(soc->ast_override_support))
|
||||
return;
|
||||
|
||||
if (ta_peer && (ta_peer->vdev->opmode != wlan_op_mode_ap))
|
||||
if (qdf_unlikely(!ta_peer))
|
||||
return;
|
||||
|
||||
if (qdf_unlikely(ta_peer->vdev->opmode != wlan_op_mode_ap))
|
||||
return;
|
||||
|
||||
if (qdf_unlikely(!hal_rx_msdu_end_da_is_valid_get(rx_tlv_hdr) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue