mirror of
https://github.com/espressif/openthread.git
synced 2026-08-18 08:29:52 +00:00
[panid-query-server] change SendConflict() to return void (#4941)
This commit is contained in:
@@ -104,11 +104,11 @@ void PanIdQueryServer::HandleScanResult(Mac::ActiveScanResult *aScanResult)
|
||||
}
|
||||
else if (mChannelMask != 0)
|
||||
{
|
||||
IgnoreError(SendConflict());
|
||||
SendConflict();
|
||||
}
|
||||
}
|
||||
|
||||
otError PanIdQueryServer::SendConflict(void)
|
||||
void PanIdQueryServer::SendConflict(void)
|
||||
{
|
||||
otError error = OT_ERROR_NONE;
|
||||
MeshCoP::ChannelMaskTlv channelMask;
|
||||
@@ -135,12 +135,15 @@ otError PanIdQueryServer::SendConflict(void)
|
||||
|
||||
exit:
|
||||
|
||||
if (error != OT_ERROR_NONE && message != NULL)
|
||||
if (error != OT_ERROR_NONE)
|
||||
{
|
||||
message->Free();
|
||||
}
|
||||
otLogWarnMeshCoP("Failed to send panid conflict: %s", otThreadErrorToString(error));
|
||||
|
||||
return error;
|
||||
if (message != NULL)
|
||||
{
|
||||
message->Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void PanIdQueryServer::HandleTimer(Timer &aTimer)
|
||||
|
||||
@@ -75,7 +75,7 @@ private:
|
||||
|
||||
static void HandleUdpReceive(void *aContext, otMessage *aMessage, const otMessageInfo *aMessageInfo);
|
||||
|
||||
otError SendConflict(void);
|
||||
void SendConflict(void);
|
||||
|
||||
Ip6::Address mCommissioner;
|
||||
uint32_t mChannelMask;
|
||||
|
||||
Reference in New Issue
Block a user