Skip to content

Commit

Permalink
[nrf fromlist] wifi: Add the enums to the status
Browse files Browse the repository at this point in the history
This helps to demonstrate that the enumerations have to be used to
interpret the status.

Upstream PR: zephyrproject-rtos/zephyr#66285

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
  • Loading branch information
krish2718 authored and rlubos committed Dec 8, 2023
1 parent 4c6c7fa commit 1a6d964
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion include/zephyr/net/wifi_mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,11 @@ enum wifi_disconn_reason {

/** Generic Wi-Fi status for commands and events */
struct wifi_status {
int status;
union {
int status;
enum wifi_conn_status conn_status;
enum wifi_disconn_reason disconn_reason;
};
};

/** Wi-Fi interface status */
Expand Down
2 changes: 1 addition & 1 deletion lib/libc/newlib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ if NEWLIB_LIBC

config NEWLIB_LIBC_NANO
bool "Build with newlib-nano C library"
depends on HAS_NEWLIB_LIBC_NANO
depends on HAS_NEWLIB_LIBC_NANO && !WPA_SUPP
help
Build with newlib-nano library, for small embedded apps.
The newlib-nano library for ARM embedded processors is a part of the
Expand Down

0 comments on commit 1a6d964

Please sign in to comment.