We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cd80bb commit 0696075Copy full SHA for 0696075
drivers/wifi/esp_at/esp.c
@@ -1026,7 +1026,7 @@ static void esp_init_work(struct k_work *work)
1026
net_if_up(dev->net_iface);
1027
}
1028
1029
-static void esp_reset(struct esp_data *dev)
+static int esp_reset(struct esp_data *dev)
1030
{
1031
if (net_if_is_up(dev->net_iface)) {
1032
net_if_down(dev->net_iface);
@@ -1055,9 +1055,10 @@ static void esp_reset(struct esp_data *dev)
1055
1056
if (ret < 0) {
1057
LOG_ERR("Failed to reset device: %d", ret);
1058
- return;
+ return -EAGAIN;
1059
1060
#endif
1061
+ return 0;
1062
1063
1064
static void esp_iface_init(struct net_if *iface)
0 commit comments