mirror of
https://github.com/espressif/openthread.git
synced 2026-08-03 09:27:47 +00:00
Refactor OpenThread Global Variables into a Single Context Structure (#357)
* Refactor OpenThread to contain all global/static variables in a single context structure.
This commit is contained in:
@@ -195,7 +195,7 @@ ThreadError Mle::Start(void)
|
||||
ThreadError error = kThreadError_None;
|
||||
|
||||
// cannot bring up the interface if IEEE 802.15.4 promiscuous mode is enabled
|
||||
VerifyOrExit(otPlatRadioGetPromiscuous(NULL) == false, error = kThreadError_Busy);
|
||||
VerifyOrExit(otPlatRadioGetPromiscuous(mNetif.GetInstance()) == false, error = kThreadError_Busy);
|
||||
VerifyOrExit(mNetif.IsUp(), error = kThreadError_InvalidState);
|
||||
|
||||
mDeviceState = kDeviceStateDetached;
|
||||
|
||||
Reference in New Issue
Block a user