mirror of
https://github.com/espressif/openthread.git
synced 2026-07-28 14:47:46 +00:00
Logging and Raw Link Layer Cleanup (#1541)
* Logging and Raw Link Layer Cleanup * make pretty
This commit is contained in:
@@ -192,7 +192,8 @@ void otPlatRadioSetPanId(_In_ otInstance *otCtx, uint16_t panid)
|
||||
|
||||
pFilter->otPanID = panid;
|
||||
|
||||
if (pFilter->otPhyState != kStateDisabled)
|
||||
if (pFilter->otPhyState != kStateDisabled &&
|
||||
pFilter->otPanID != 0xFFFF)
|
||||
{
|
||||
// Indicate to the miniport
|
||||
status =
|
||||
@@ -321,17 +322,20 @@ ThreadError otPlatRadioEnable(_In_ otInstance *otCtx)
|
||||
|
||||
LogInfo(DRIVER_DEFAULT, "Filter %p PhyState = kStateSleep.", pFilter);
|
||||
|
||||
// Indicate PANID to the miniport
|
||||
status =
|
||||
otLwfCmdSetProp(
|
||||
pFilter,
|
||||
SPINEL_PROP_MAC_15_4_PANID,
|
||||
SPINEL_DATATYPE_UINT16_S,
|
||||
pFilter->otPanID
|
||||
);
|
||||
if (!NT_SUCCESS(status))
|
||||
if (pFilter->otPanID != 0xFFFF)
|
||||
{
|
||||
LogError(DRIVER_DEFAULT, "Set SPINEL_PROP_MAC_15_4_PANID failed, %!STATUS!", status);
|
||||
// Indicate PANID to the miniport
|
||||
status =
|
||||
otLwfCmdSetProp(
|
||||
pFilter,
|
||||
SPINEL_PROP_MAC_15_4_PANID,
|
||||
SPINEL_DATATYPE_UINT16_S,
|
||||
pFilter->otPanID
|
||||
);
|
||||
if (!NT_SUCCESS(status))
|
||||
{
|
||||
LogError(DRIVER_DEFAULT, "Set SPINEL_PROP_MAC_15_4_PANID failed, %!STATUS!", status);
|
||||
}
|
||||
}
|
||||
|
||||
// Indicate Short address to the miniport
|
||||
|
||||
Reference in New Issue
Block a user