Improve:wifi hal fastboot.

This commit is contained in:
Fancy code 2024-05-06 16:51:44 +08:00
parent 80ba0a816f
commit d11518383a
2 changed files with 6 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public:
private:
bool CheckWlan0IfExist(void);
private:
protected:
bool mInitRunning;
};
#endif

View File

@ -176,7 +176,11 @@ void AppManager::WifiApModeInit(const AppParam &param)
* @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.
*/
wifi->OpenApMode();
StatusCode code = wifi->OpenApMode();
if (!IsCodeOK(code)) {
LogError("OpenApMode failed.\n");
return;
}
if (false == mInitRuning) {
LogWarning("AppManager init stop.\n");
return;