Commit 1006104 2 people authored and committed
1 parent d6f7696 commit 1006104 Copy full SHA for 1006104
File tree 4 files changed +5
-12
lines changed
4 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ static void wfx_rsi_save_ap_info()
357
357
#else /* !WIFI_ENABLE_SECURITY_WPA3 */
358
358
wfx_rsi .sec .security = WFX_SEC_WPA2 ;
359
359
#endif /* WIFI_ENABLE_SECURITY_WPA3 */
360
- SILABS_LOG ("%s: warn: failed with status: %02x" , status );
360
+ SILABS_LOG ("%s: warn: failed with status: %02x" , __func__ , status );
361
361
return ;
362
362
}
363
363
else
@@ -429,7 +429,7 @@ static void wfx_rsi_do_join(void)
429
429
connect_security_mode = RSI_OPEN ;
430
430
break ;
431
431
default :
432
- SILABS_LOG ("%s: error: unknown security type." );
432
+ SILABS_LOG ("%s: error: unknown security type." , __func__ );
433
433
return ;
434
434
}
435
435
Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ static void wfx_rsi_save_ap_info() // translation
408
408
#else /* !WIFI_ENABLE_SECURITY_WPA3 */
409
409
wfx_rsi .sec .security = WFX_SEC_WPA2 ;
410
410
#endif /* WIFI_ENABLE_SECURITY_WPA3 */
411
- SILABS_LOG ("%s: warn: failed with status: %02x" , status );
411
+ SILABS_LOG ("%s: warn: failed with status: %02x" , __func__ , status );
412
412
return ;
413
413
}
414
414
else
@@ -482,7 +482,7 @@ static void wfx_rsi_do_join(void)
482
482
connect_security_mode = RSI_OPEN ;
483
483
break ;
484
484
default :
485
- SILABS_LOG ("%s: error: unknown security type." );
485
+ SILABS_LOG ("%s: error: unknown security type." , __func__ );
486
486
return ;
487
487
}
488
488
Original file line number Diff line number Diff line change @@ -381,10 +381,6 @@ sl_status_t sl_wfx_host_enable_spi(void)
381
381
{
382
382
if (spi_enabled == false)
383
383
{
384
- #ifdef SLEEP_ENABLED
385
- // Prevent the host to use lower EM than EM1
386
- sl_power_manager_add_em_requirement (SL_POWER_MANAGER_EM1 );
387
- #endif
388
384
spi_enabled = true;
389
385
}
390
386
return SL_STATUS_OK ;
@@ -403,10 +399,6 @@ sl_status_t sl_wfx_host_disable_spi(void)
403
399
if (spi_enabled == true)
404
400
{
405
401
spi_enabled = false;
406
- #ifdef SLEEP_ENABLED
407
- // Allow the host to use the lowest allowed EM
408
- sl_power_manager_remove_em_requirement (SL_POWER_MANAGER_EM1 );
409
- #endif
410
402
}
411
403
return SL_STATUS_OK ;
412
404
}
Original file line number Diff line number Diff line change @@ -606,6 +606,7 @@ static void wfx_events_task(void * p_arg)
606
606
if (!(wfx_get_wifi_state () & SL_WFX_AP_INTERFACE_UP))
607
607
{
608
608
// Enable the power save
609
+ SILABS_LOG (" WF200 going to DTIM based sleep" );
609
610
sl_wfx_set_power_mode (WFM_PM_MODE_DTIM, WFM_PM_POLL_FAST_PS, BEACON_1);
610
611
sl_wfx_enable_device_power_save ();
611
612
}
You can’t perform that action at this time.
0 commit comments