-
Notifications
You must be signed in to change notification settings - Fork 173
Failed to return ES_WIFI_STATUS_OK of function ES_WIFI_HardResetModule #89
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinginternal bug trackerIssue confirmed and logged into the internal bug tracking systemIssue confirmed and logged into the internal bug tracking systemprojectsProjects-related (demos, applications, examples) issue or pull-request.Projects-related (demos, applications, examples) issue or pull-request.wifiWiFi-related issue or pull-requestWiFi-related issue or pull-requestwirelessWirelessWireless
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinginternal bug trackerIssue confirmed and logged into the internal bug tracking systemIssue confirmed and logged into the internal bug tracking systemprojectsProjects-related (demos, applications, examples) issue or pull-request.Projects-related (demos, applications, examples) issue or pull-request.wifiWiFi-related issue or pull-requestWiFi-related issue or pull-requestwirelessWirelessWireless
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Analyzed
Caution
At the return point of ES_WIFI_HardResetModule
STM32CubeL4/Projects/B-L475E-IOT01A/Applications/WiFi/Common/Src/es_wifi.c
Line 1530 in 692ff21
It requires the return value of
Obj->fops.IO_Init(i. e. if it's set,SPI_WIFI_Init) asret >0. However, when mode passed toSPI_WIFI_InitisES_WIFI_RESET, it callsSPI_WIFI_ResetModuleand return its return value. The called reset module function only has two possible of return values, 0 or -1. So, theES_WIFI_HardResetModulecan only return the case ofES_WIFI_STATUS_ERROR.Describe the set-up
Additional context
change it to
ret == 0may address this issue.