qcacld-3.0: Add sanity check for num_hw_modes and num_phy
Add sanity check for num_hw_modes and num_phy in wma_populate_soc_caps()
for WMI_SERVICE_READY_EXT_EVENTID.
Change-Id: I023d737449283f9ac092d278bde016b208b2c891
CRs-Fixed: 2119887
diff --git a/core/wma/inc/wma_internal.h b/core/wma/inc/wma_internal.h
index 356a6fb..cb8e1c0 100644
--- a/core/wma/inc/wma_internal.h
+++ b/core/wma/inc/wma_internal.h
@@ -118,6 +118,9 @@
/* Time(in ms) to detect DOS attack */
#define WMA_MGMT_FRAME_DETECT_DOS_TIMER 1000
+#define MAX_NUM_HW_MODE 0xff
+#define MAX_NUM_PHY 0xff
+
/**
* struct index_data_rate_type - non vht data rate type
* @mcs_index: mcs rate index