qcacmn: Fix NULL pointer dereference in extract_hal_reg_cap_tlv

In extract_hal_reg_cap_tlv(), field hal_reg_capabilities of
param_buf may be NULL, when access field wireless_modes of
hal_reg_capabilities, it will result in a NULL pointer access.

Fix is to add NULL pointer check for field hal_reg_capabilities
of param_buf.

Change-Id: Ie2a50ce1f06f9623cc771d4d580cb5f9f25cc5d4
CRs-Fixed: 2387212
1 file changed