modules: hostap: fix disconnect print fail log
WIFI_REASON_DISCONN_UNSPECIFIED is 1, when disconnect reason is 0, wpas_to_wifi_mgmt_disconn_status return the WIFI_REASON_DISCONN_UNSPECIFIED and print error log "Disconnection request failed (1)" Signed-off-by: Gaofeng Zhang <gaofeng.zhang@nxp.com>
This commit is contained in:
parent
8be6db67fc
commit
27270fa14d
1 changed files with 2 additions and 0 deletions
|
|
@ -71,6 +71,8 @@ static enum wifi_conn_status wpas_to_wifi_mgmt_conn_status(int status)
|
|||
static enum wifi_disconn_reason wpas_to_wifi_mgmt_disconn_status(int status)
|
||||
{
|
||||
switch (status) {
|
||||
case WIFI_REASON_DISCONN_SUCCESS:
|
||||
return WIFI_REASON_DISCONN_SUCCESS;
|
||||
case WLAN_REASON_DEAUTH_LEAVING:
|
||||
return WIFI_REASON_DISCONN_AP_LEAVING;
|
||||
case WLAN_REASON_DISASSOC_DUE_TO_INACTIVITY:
|
||||
|
|
|
|||
Loading…
Reference in a new issue