Improve:wifi hal fastboot.
This commit is contained in:
parent
80ba0a816f
commit
d11518383a
|
@ -28,7 +28,7 @@ public:
|
||||||
private:
|
private:
|
||||||
bool CheckWlan0IfExist(void);
|
bool CheckWlan0IfExist(void);
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
bool mInitRunning;
|
bool mInitRunning;
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
|
@ -176,7 +176,11 @@ void AppManager::WifiApModeInit(const AppParam ¶m)
|
||||||
* @brief This interface depends on hardware and may block. It is necessary to ensure that hardware interface
|
* @brief This interface depends on hardware and may block. It is necessary to ensure that hardware interface
|
||||||
* blocking does not cause the main thread to block.
|
* blocking does not cause the main thread to block.
|
||||||
*/
|
*/
|
||||||
wifi->OpenApMode();
|
StatusCode code = wifi->OpenApMode();
|
||||||
|
if (!IsCodeOK(code)) {
|
||||||
|
LogError("OpenApMode failed.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (false == mInitRuning) {
|
if (false == mInitRuning) {
|
||||||
LogWarning("AppManager init stop.\n");
|
LogWarning("AppManager init stop.\n");
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user