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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user