Skip to content

Commit c6ba3fe

Browse files
committed
fixup! sys/shell: add iw shell command
1 parent 55296ab commit c6ba3fe

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sys/shell/cmds/iw.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static int _iw_connect(netif_t *iface, wifi_connect_request_t *request)
165165
return ret;
166166
}
167167
/* callback unlocks mutex */
168-
ztimer_mutex_lock_timeout(ZTIMER_SEC, &_sync, SC_IW_AP_SCAN_TIMEOUT_SEC_MAX);
168+
ztimer_mutex_lock_timeout(ZTIMER_SEC, &_sync, SC_IW_AP_CONNECT_TIMEOUT_SEC_MAX);
169169
mutex_unlock(&_sync);
170170
return 0;
171171
}
@@ -294,7 +294,7 @@ static int _iw_scan(netif_t *iface, wifi_scan_request_t *request)
294294
return ret;
295295
}
296296
/* callback unlocks mutex */
297-
ztimer_mutex_lock_timeout(ZTIMER_SEC, &_sync, SC_IW_AP_CONNECT_TIMEOUT_SEC_MAX);
297+
ztimer_mutex_lock_timeout(ZTIMER_SEC, &_sync, SC_IW_AP_SCAN_TIMEOUT_SEC_MAX);
298298
mutex_unlock(&_sync);
299299
return 0;
300300
}
@@ -364,16 +364,16 @@ int _iw_cmd(int argc, char **argv)
364364
int ret = -EINVAL;
365365
netif_t *iface = netif_get_by_name(argv[1]);
366366
if (!iface) {
367-
printf("%s: invalid interface given", argv[0]);
367+
printf("%s: invalid interface given\n", argv[0]);
368368
goto exit_failure;
369369
}
370370
if ((ret = _iw_probe(iface)) != 0) {
371371
if (ret == -ENOTSUP) {
372-
printf("%s: interface is not Wi-Fi", argv[0]);
372+
printf("%s: interface is not Wi-Fi\n", argv[0]);
373373
goto exit_failure;
374374
}
375375
else {
376-
printf("%s: interface communication error", argv[0]);
376+
printf("%s: interface communication error\n", argv[0]);
377377
goto exit_failure;
378378
}
379379
}

0 commit comments

Comments
 (0)