diff --git a/df_datalink_sp/src/networking/link_layer/scan.c b/df_datalink_sp/src/networking/link_layer/scan.c index 41dfc39..88f79d2 100644 --- a/df_datalink_sp/src/networking/link_layer/scan.c +++ b/df_datalink_sp/src/networking/link_layer/scan.c @@ -28,7 +28,7 @@ #define ADV_LISTEN_TIMEOUT 40 #define CFM_LISTEN_TIMEOUT 25 #define ADV_FRAME_SLOTS 4 -#define CFM_FRAME_SLOTS 4 +#define CFM_FRAME_SLOTS 5 /***************** Macros (In-line Functions) Definitions *********************/ /**************************** Type Definitions *******************************/ @@ -283,9 +283,12 @@ static int32_t Scan_CfmHandler(L2_INST *instPtr) { // using pull mode to receive confirm frame // since first time sync procedure is accomplished in ADV stage. + Phy_SetBeamWidth(instPtr->config.phyInstPtr, PHY_ANT_BEAM_16); + Phy_SetBeamNo(instPtr->config.phyInstPtr, scanFsmPtr->beamNo, PHY_ANT_BEAM_16); Phy_SetMode(instPtr->config.phyInstPtr, PHY_MODE_PULL); L2_SetupNextSlot(instPtr, L2_TOR_RX, L2_CFM_FRAME); scanFsmPtr->cfmTimeout++; // increase counter. + instPtr->log.lastBeamWidth = PHY_ANT_BEAM_16; } return SUCCESS; }