qcacmn: Create monitor mode spinlock and add null check

Due to changes in datapath init/deinit path, mon_lock spinlock was not
getting created. Create mon_lock spinlock during
dp_rx_pdev_mon_cmn_desc_pool_init.

Add null check to validate rx_tlv_header before calling
hal_rx_mpdu_start_tlv_tag_valid.

Change-Id: I41c781de29f2c8c05ec1bfa90f9c8f742f2539bf
CRs-Fixed: 2693687
This commit is contained in:
Saket Jha
2020-05-22 17:36:50 -07:00
committed by nshrivas
parent d7ec6fab20
commit d30eab103c
5 changed files with 64 additions and 7 deletions

View File

@@ -3670,7 +3670,10 @@ hal_rx_mpdu_start_tlv_tag_valid(hal_soc_handle_t hal_soc_hdl,
{
struct hal_soc *hal = (struct hal_soc *)hal_soc_hdl;
return hal->ops->hal_rx_mpdu_start_tlv_tag_valid(rx_tlv_hdr);
if (hal->ops->hal_rx_mpdu_start_tlv_tag_valid)
return hal->ops->hal_rx_mpdu_start_tlv_tag_valid(rx_tlv_hdr);
return 0;
}
/**