#include <include/net/wifi_ready.h>
Register a callback to be called when the Wi-Fi is ready.
- Parameters
-
| cb | Callback function to be called when the Wi-Fi is ready. The callback is called from NET_MGMT thread, so, care should be taken to avoid blocking the thread and also stack size should be considered. |
| iface | (optional) Interface to which the callback is registered. |
- Returns
- 0 if the callback was successfully registered, or a negative error code if the callback could not be registered.
- Return values
-
| -EINVAL | if the callback is NULL. |
| -ENOMEM | if the callback array is full. |
| -EALREADY | if the callback is already registered. |