Skip to content

Commit

Permalink
Remove parameters for DevEui and JoinEui for the JoinRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Jaeckle authored and mluis1 committed Jul 8, 2019
1 parent 4fe2b72 commit 4bf728d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/mac/LoRaMac.c
Original file line number Diff line number Diff line change
Expand Up @@ -4463,19 +4463,8 @@ LoRaMacStatus_t LoRaMacMlmeRequest( MlmeReq_t* mlmeRequest )
return LORAMAC_STATUS_BUSY;
}

if( ( mlmeRequest->Req.Join.DevEui == NULL ) ||
( mlmeRequest->Req.Join.JoinEui == NULL ) )
{
return LORAMAC_STATUS_PARAMETER_INVALID;
}

MacCtx.NvmCtx->NetworkActivation = ACTIVATION_TYPE_NONE;

ResetMacParameters( );

SecureElementSetDevEui( mlmeRequest->Req.Join.DevEui );
SecureElementSetJoinEui( mlmeRequest->Req.Join.JoinEui );

MacCtx.NvmCtx->MacParams.ChannelsDatarate = RegionAlternateDr( MacCtx.NvmCtx->Region, mlmeRequest->Req.Join.Datarate, ALTERNATE_DR );

queueElement.Status = LORAMAC_EVENT_INFO_STATUS_JOIN_FAIL;
Expand Down

0 comments on commit 4bf728d

Please sign in to comment.