wlan: Update correct regulatory flags for 3.14 kernel
For 3.14 kernel, if CONFIG_ENABLE_LINUX_REG is disabled
then flag REGULATORY_STRICT_REG is set into wiphy->flags
instead of wiphy->regulatory_flags. This would disallow
some regdomains to set certain channels.
Thus, update REGULATORY_STRICT_REG flag into correct field.
Change-Id: I112b1f2d3ad15800d3392fd0d310a911c751828e
CRs-fixed: 1056204
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 895fb56..13bdf45 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -7901,8 +7901,12 @@
#ifndef CONFIG_ENABLE_LINUX_REG
/* the flag for the other case would be initialzed in
vos_init_wiphy_from_nv_bin */
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,0))
+ wiphy->regulatory_flags |= REGULATORY_STRICT_REG;
+#else
wiphy->flags |= WIPHY_FLAG_STRICT_REGULATORY;
#endif
+#endif
/* This will disable updating of NL channels from passive to
* active if a beacon is received on passive channel. */