Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b72f8ce3 authored by Abhinav Kumar's avatar Abhinav Kumar Committed by Gerrit - the friendly Code Review server
Browse files

wlan: Disable roaming for SAE

propagation from qcacld-3.0 to prima

SAE is supported only for fresh connection. Hence, disable
roaming for SAE.

Change-Id: I53a03a3ea2955a7a8e67105f24e01e19a72be72c
CRs-Fixed: 2531094
parent 118efd07
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1661,6 +1661,12 @@ typedef eHalStatus (*csrRoamSessionCloseCallback)(void *pContext);

///////////////////////////////////////////Common Roam ends

#ifdef WLAN_FEATURE_SAE
#define CSR_IS_AUTH_TYPE_SAE(auth_type) \
   (eCSR_AUTH_TYPE_SAE == auth_type)
#else
#define CSR_IS_AUTH_TYPE_SAE(auth_type) (false)
#endif

/* ---------------------------------------------------------------------------
    \fn csrSetChannels
+14 −7
Original line number Diff line number Diff line
@@ -17714,6 +17714,13 @@ eHalStatus csrRoamOffloadScan(tpAniSirGlobal pMac, tANI_U8 command, tANI_U8 reas
   currChannelListInfo = &pNeighborRoamInfo->roamChannelInfo.currentChannelListInfo;
   pSession = CSR_GET_SESSION( pMac, sessionId );
   if (!pSession) {
       VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_ERROR,
                 "%s:pSession is null", __func__);
       return eHAL_STATUS_FAILURE;
   }
   if (0 == csrRoamIsRoamOffloadScanEnabled(pMac))
   {
      smsLog( pMac, LOGE,"isRoamOffloadScanEnabled not set");
@@ -17726,6 +17733,13 @@ eHalStatus csrRoamOffloadScan(tpAniSirGlobal pMac, tANI_U8 command, tANI_U8 reas
        return eHAL_STATUS_FAILURE;
   }
   /* Roaming is not supported currently for SAE authentication */
   if (pSession->pCurRoamProfile &&
       CSR_IS_AUTH_TYPE_SAE(pSession->pCurRoamProfile->AuthType.authType[0])) {
     smsLog(pMac, LOGE, "Roaming not suppprted for SAE connection");
     return eHAL_STATUS_SUCCESS;
   }
   /*The Dynamic Config Items Update may happen even if the state is in INIT.
    * It is important to ensure that the command is passed down to the FW only
    * if the Infra Station is in a connected state.A connected station could also be
@@ -17767,13 +17781,6 @@ eHalStatus csrRoamOffloadScan(tpAniSirGlobal pMac, tANI_U8 command, tANI_U8 reas
            "%s: Not able to find the sessionId for Roam Offload scan request", __func__);
          return eHAL_STATUS_FAILURE;
      }
      pSession = CSR_GET_SESSION( pMac, sessionId );
      if (NULL == pSession)
      {
          VOS_TRACE(VOS_MODULE_ID_SME, VOS_TRACE_LEVEL_ERROR,
                 "%s:pSession is null", __func__);
          return eHAL_STATUS_FAILURE;
      }
      pBssDesc = pSession->pConnectBssDesc;
      if (pBssDesc == NULL)
      {