Skip to content

Commit a1769ab

Browse files
kapbhrlubos
authored andcommitted
[nrf fromtree] 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 <[email protected]> (cherry picked from commit cc42d16) Signed-off-by: Robert Lubos <[email protected]>
1 parent b8be35e commit a1769ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/zephyr/net/wifi_mgmt.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,10 @@ enum wifi_conn_status {
427427
* in the disconnect result event for detailed reason.
428428
*/
429429
enum wifi_disconn_reason {
430+
/** Success, overload status as reason */
431+
WIFI_REASON_DISCONN_SUCCESS = 0,
430432
/** Unspecified reason */
431-
WIFI_REASON_DISCONN_UNSPECIFIED = WIFI_STATUS_DISCONN_FIRST_STATUS,
433+
WIFI_REASON_DISCONN_UNSPECIFIED,
432434
/** Disconnected due to user request */
433435
WIFI_REASON_DISCONN_USER_REQUEST,
434436
/** Disconnected due to AP leaving */

0 commit comments

Comments
 (0)