Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions drivers/wifi/siwx91x/siwx91x_wifi_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ int siwx91x_scan(const struct device *dev, struct wifi_scan_params *z_scan_confi
return -EINVAL;
}

if (sidev->state != WIFI_STATE_DISCONNECTED && sidev->state != WIFI_STATE_INACTIVE &&
sidev->state != WIFI_STATE_COMPLETED) {
if (sidev->state == WIFI_STATE_INTERFACE_DISABLED) {
LOG_ERR("Command given in invalid state");
return -EBUSY;
}
Expand Down