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 9e0bbb6 commit 4cecd8eCopy full SHA for 4cecd8e
drivers/wifi/siwx91x/siwx91x_wifi.c
@@ -282,11 +282,13 @@ static int siwx91x_apply_power_save(struct siwx91x_dev *sidev)
282
283
interface = sl_wifi_get_default_interface();
284
if (FIELD_GET(SIWX91X_INTERFACE_MASK, interface) != SL_WIFI_CLIENT_INTERFACE) {
285
- return 0;
+ LOG_ERR("Wi-Fi not in station mode");
286
+ return -EINVAL;
287
}
288
289
if (sidev->state == WIFI_STATE_INTERFACE_DISABLED) {
290
+ LOG_ERR("Command given in invalid state");
291
292
293
294
sl_wifi_get_performance_profile(&sl_ps_profile);
0 commit comments