net: wifi: Add disconnection success code
When disconnect request is successful, the status was taking as WIFI_REASON_DISCONN_UNSPECIFIED only. Adding WIFI_REASON_DISCONN_SUCCESS which can be help to determine status of disconnect request. If this status is failed then reason can be useful. Signed-off-by: Kapil Bhatt <kapil.bhatt@nordicsemi.no>
This commit is contained in:
parent
1339ce4bf0
commit
cc42d16b1c
1 changed files with 3 additions and 1 deletions
|
|
@ -427,8 +427,10 @@ enum wifi_conn_status {
|
||||||
* in the disconnect result event for detailed reason.
|
* in the disconnect result event for detailed reason.
|
||||||
*/
|
*/
|
||||||
enum wifi_disconn_reason {
|
enum wifi_disconn_reason {
|
||||||
|
/** Success, overload status as reason */
|
||||||
|
WIFI_REASON_DISCONN_SUCCESS = 0,
|
||||||
/** Unspecified reason */
|
/** Unspecified reason */
|
||||||
WIFI_REASON_DISCONN_UNSPECIFIED = WIFI_STATUS_DISCONN_FIRST_STATUS,
|
WIFI_REASON_DISCONN_UNSPECIFIED,
|
||||||
/** Disconnected due to user request */
|
/** Disconnected due to user request */
|
||||||
WIFI_REASON_DISCONN_USER_REQUEST,
|
WIFI_REASON_DISCONN_USER_REQUEST,
|
||||||
/** Disconnected due to AP leaving */
|
/** Disconnected due to AP leaving */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue