wlan:Disconnect STA if channel is not supported by new cc.

If STA is connected and country is changed from user space, then
STA remains connected even when the channel is not supported by
new country code.As a part of fix , issue disconnect command when
the given channel is not supported in new CC.

Change-Id: I7fffeb3923d21ce1294e4b265de126050bc6c025
CRs-Fixed: 662915
diff --git a/CORE/SME/src/csr/csrUtil.c b/CORE/SME/src/csr/csrUtil.c
index 754e890..30e91ab 100644
--- a/CORE/SME/src/csr/csrUtil.c
+++ b/CORE/SME/src/csr/csrUtil.c
@@ -1429,6 +1429,20 @@
     return channel;
 }
 
+tANI_BOOLEAN csrIsSessionClientAndConnected(tpAniSirGlobal pMac, tANI_U8 sessionId)
+{
+    tCsrRoamSession *pSession = NULL;
+    if ( CSR_IS_SESSION_VALID( pMac, sessionId) && csrIsConnStateInfra( pMac, sessionId))
+    {
+        pSession = CSR_GET_SESSION( pMac, sessionId);
+        if ((pSession->pCurRoamProfile->csrPersona == VOS_STA_MODE) ||
+           (pSession->pCurRoamProfile->csrPersona == VOS_P2P_CLIENT_MODE))
+        {
+           return TRUE;
+        }
+    }
+    return FALSE;
+}
 //This routine will return operating channel on FIRST BSS that is active/operating to be used for concurrency mode.
 //If other BSS is not up or not connected it will return 0