qcacld-3.0: Add compile time check for cRegTableEntries

The maximum value of the variable cRegTableEntries is defined in
MAX_CFG_INI_ITEMS. In the scenario the value is greater than this it
may cause an overrun may occur due to the weak guard.

Turn the runtime check into compile time check to prevent such scenario.

Change-Id: I58a0d47a32d457297d3caa456fd0ca03523ed9f5
CRs-Fixed: 2232723
1 file changed