wlan: Fix to advertise HT40 capabilities only when allowed

qcacld 2.0 to pronto propagation

Currently SAP advertises HT40 capabilities for country code ID and
CR in 2.4GHZ. ID and CR allows only HT20 in 2.4GHz.
This change set fix the issue by validating the 40MHz channel against
the regulatory domain and advertise HT40 capabilities only if allowed.

Change-Id: Id90b68d35c30371de3fdf43ecd5e4e1a1b1fb0bf
CRs-Fixed: 766085
diff --git a/CORE/SME/inc/smeInside.h b/CORE/SME/inc/smeInside.h
index c86dbf1..cf97d96 100644
--- a/CORE/SME/inc/smeInside.h
+++ b/CORE/SME/inc/smeInside.h
@@ -68,7 +68,7 @@
   ------------------------------------------------------------------------*/
 
 #define SME_TOTAL_COMMAND  30
-
+#define SME_START_CHAN_STEP 4
 
 typedef struct sGenericPmcCmd
 {
@@ -230,7 +230,8 @@
 //the command, if applicable.
 void pmcAbortCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand, tANI_BOOLEAN fStopping );
 tANI_BOOLEAN qosProcessCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand );
-
+eHalStatus csrIsValidChannel(tpAniSirGlobal pMac, tANI_U8 chnNum);
+tANI_BOOLEAN csrRoamIsValid40MhzChannel(tpAniSirGlobal pMac, tANI_U8 channel);
 eHalStatus csrProcessScanCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand );
 eHalStatus csrRoamProcessCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand );
 void csrRoamProcessWmStatusChangeCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand );