Enhanced regulatory domain support

Following are the high-level changes in this feature:

1) Reduce the number of regulatory domains that are available from 9 to 4.
That is, only 4 out of the 9 regulatory domains in the NV.bin file would
be used and supported.

2) Add compulsory linux regulatory support to the wlan driver. The
support is added under the flag CONFIG_ENABLE_LINUX_REG.

3) Remove the WCNSS_qcom_cfg.ini item gCRDADefaultCountryCode

Change-Id: I5eef8ca53aafad69044d5468b50a3d266ee8ac1c
CRs-fixed: 538940
diff --git a/Kbuild b/Kbuild
index ebb304d..df99973 100644
--- a/Kbuild
+++ b/Kbuild
@@ -13,7 +13,7 @@
 	WLAN_ROOT := drivers/staging/prima
 endif
 
-ifeq ($(KERNEL_BUILD),0)
+ifeq ($(KERNEL_BUILD), 0)
 	# These are configurable via Kconfig for kernel-based builds
 	# Need to explicitly configure for Android-based builds
 
@@ -40,6 +40,9 @@
 	CONFIG_WLAN_FEATURE_11W := y
 	endif
 
+	#Flag to enable new Linux Regulatory implementation
+	CONFIG_ENABLE_LINUX_REG := y
+
 endif
 
 # Feature flags which are not (currently) configurable via Kconfig
@@ -642,6 +645,10 @@
 CDEFINES += -DWLAN_OPEN_SOURCE
 endif
 
+ifeq ($(CONFIG_ENABLE_LINUX_REG), y)
+CDEFINES += -DCONFIG_ENABLE_LINUX_REG
+endif
+
 # Fix build for GCC 4.7
 EXTRA_CFLAGS += -Wno-maybe-uninitialized -Wno-unused-function