Skip to content

Commit

Permalink
[nrf fromtree] net: wifi: Add disconnection success code
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kapbh authored and rlubos committed May 27, 2024
1 parent b8be35e commit a1769ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/zephyr/net/wifi_mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,10 @@ enum wifi_conn_status {
* in the disconnect result event for detailed reason.
*/
enum wifi_disconn_reason {
/** Success, overload status as reason */
WIFI_REASON_DISCONN_SUCCESS = 0,
/** Unspecified reason */
WIFI_REASON_DISCONN_UNSPECIFIED = WIFI_STATUS_DISCONN_FIRST_STATUS,
WIFI_REASON_DISCONN_UNSPECIFIED,
/** Disconnected due to user request */
WIFI_REASON_DISCONN_USER_REQUEST,
/** Disconnected due to AP leaving */
Expand Down

0 comments on commit a1769ab

Please sign in to comment.