wlan: set appropriate flags for wiphy device based on current regdomain

When the driver loads and sets up the regulatory domain make sure that
the static channel list populated in the wiphy device has correct flags
set so that the supplicant does not end up trying to use channels which
are not supported due to h/w limitations or limitations enforced by the
driver configuration or regulatory domain limitations.

CRs-Fixed: 459244
Change-Id: I2930561d0cfde574b70789bb31eea458b56a3086
diff --git a/CORE/HDD/inc/wlan_hdd_main.h b/CORE/HDD/inc/wlan_hdd_main.h
index 96899e7..2487bf2 100644
--- a/CORE/HDD/inc/wlan_hdd_main.h
+++ b/CORE/HDD/inc/wlan_hdd_main.h
@@ -165,6 +165,9 @@
 #define WLAN_HDD_P2P_SOCIAL_CHANNELS 3
 #define WLAN_HDD_P2P_SINGLE_CHANNEL_SCAN 1
 
+#define WLAN_HDD_IS_SOCIAL_CHANNEL(center_freq) \
+(((center_freq) == 2412) || ((center_freq) == 2437) || ((center_freq) == 2462))
+
 #ifdef WLAN_FEATURE_11W
 #define WLAN_HDD_SA_QUERY_ACTION_FRAME 8
 #endif