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

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

Merge "wlan: Validate bss with the correct bss address" into wlan-driver.lnx.1.0

parents 32905e63 9c86eef3
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -12807,6 +12807,7 @@ WDI_ProcessAddPeriodicTxPtrnInd
  wpt_uint8                      selfStaIdx          = 0;
  wpt_uint8                    ucCurrentBSSSesIdx;
  WDI_BSSSessionType*          pBSSSes             = NULL;
  wpt_macAddr                  dst_addr;
  /*-------------------------------------------------------------------------
     Sanity check
@@ -12850,9 +12851,12 @@ WDI_ProcessAddPeriodicTxPtrnInd
    return WDI_STATUS_E_FAILURE;
  }
  vos_mem_copy(dst_addr,
               &pAddPeriodicTxPtrnParams->wdiAddPeriodicTxPtrnParams.ucPattern[0],
               VOS_MAC_ADDR_SIZE);
  ucCurrentBSSSesIdx = WDI_FindAssocSession( pWDICtx,
                                pAddPeriodicTxPtrnParams->
                                       wdiAddPeriodicTxPtrnParams.macAddr,
                                dst_addr,
                                &pBSSSes);
  if ( NULL == pBSSSes )
  {
@@ -12860,8 +12864,7 @@ WDI_ProcessAddPeriodicTxPtrnInd
              "%s: Association sequence for this BSS does not exist. macBSSID "
              MAC_ADDRESS_STR,
              __func__,
             MAC_ADDR_ARRAY(pAddPeriodicTxPtrnParams->
                            wdiAddPeriodicTxPtrnParams.macAddr));
             MAC_ADDR_ARRAY(dst_addr));
    wpalMemoryFree(pSendBuffer);
    return WDI_STATUS_E_NOT_ALLOWED;
  }