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 7d6475e commit 55296abCopy full SHA for 55296ab
drivers/atwinc15x0/atwinc15x0_netdev.c
@@ -918,15 +918,15 @@ static int _atwinc15x0_scan(const wifi_scan_request_t *req)
918
if (_atwinc15x0_is_busy(atwinc15x0)) {
919
return -EBUSY;
920
}
921
- if (_atwinc15x0_is_sleeping(atwinc15x0)) {
922
- _set_state(atwinc15x0, NETOPT_STATE_IDLE);
923
- }
924
if (req->base.channel != NETOPT_SCAN_REQ_ALL_CH) {
925
if (req->base.channel < WIFI_2_4_CH_MIN ||
926
req->base.channel > WIFI_2_4_CH_MAX) {
927
return -EINVAL;
928
929
+ if (_atwinc15x0_is_sleeping(atwinc15x0)) {
+ _set_state(atwinc15x0, NETOPT_STATE_IDLE);
+ }
930
tstrM2MScanOption opt = {
931
.u8NumOfSlot = ATWINC1510_SCAN_SLOTS_DEF,
932
.u8ProbesPerSlot = ATWINC1510_SCAN_PROBES_NUMOF_DEF,
0 commit comments