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

Commit a851c067 authored by CNSS_WLAN Service's avatar CNSS_WLAN Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wlan: Update spoof mac address in TL for roam scan" into wlan-driver.lnx.1.0

parents 0ebecbd1 a1184ffd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1076,6 +1076,7 @@ typedef struct tagCsrRoamStruct
    tANI_U32 deauthRspStatus;
    tANI_BOOLEAN pending_roam_disable;
    vos_spin_lock_t roam_state_lock;
    tSirMacAddr spoof_mac_addr;
}tCsrRoamStruct;


+2 −0
Original line number Diff line number Diff line
@@ -6668,6 +6668,8 @@ eHalStatus csrProcessMacAddrSpoofCommand( tpAniSirGlobal pMac, tSmeCmd *pCommand
      // spoof mac address
      vos_mem_copy((tANI_U8 *)pMsg->macAddr,
           (tANI_U8 *)pCommand->u.macAddrSpoofCmd.macAddr, sizeof(tSirMacAddr));
      vos_mem_copy((tANI_U8 *)pMac->roam.spoof_mac_addr,
           (tANI_U8 *)pCommand->u.macAddrSpoofCmd.macAddr, sizeof(tSirMacAddr));
      pMsg->spoof_mac_oui =
       pal_cpu_to_be16(pCommand->u.macAddrSpoofCmd.spoof_mac_oui);

+11 −2
Original line number Diff line number Diff line
@@ -3814,9 +3814,18 @@ VOS_STATUS csrNeighborRoamTransitToCFGChanScan(tpAniSirGlobal pMac)
    tpCsrChannelInfo    currChannelListInfo;
    tANI_U8   scanChannelList[WNI_CFG_VALID_CHANNEL_LIST_LEN];
    int       outputNumOfChannels = 0;
#ifdef FEATURE_WLAN_LFR
    tANI_U32 sessionId = pNeighborRoamInfo->csrSessionId;
#endif
    VOS_STATUS vos_status;

    vos_status = WLANTL_updateSpoofMacAddr(pMac->roam.gVosContext,
                  (v_MACADDR_t*)&pMac->roam.spoof_mac_addr,
                  (v_MACADDR_t*)&pMac->roam.roamSession[sessionId].selfMacAddr);
    if (vos_status != VOS_STATUS_SUCCESS)
    {
        smsLog(pMac, LOGE, FL("Failed to update MAC Spoof Addr in TL"));
        return vos_status;
    }

    currChannelListInfo = &pNeighborRoamInfo->roamChannelInfo.currentChannelListInfo;

    if (