Improves LED control

This commit is contained in:
ivanovborislav 2021-12-01 23:43:20 +02:00 committed by ivanovborislav
parent 6b8e19424a
commit f4d28acc0e
1 changed files with 3 additions and 3 deletions

View File

@ -143,7 +143,7 @@ int rtw_early_mode = 1;
#endif #endif
#ifdef CONFIG_RTW_SW_LED #ifdef CONFIG_RTW_SW_LED
int rtw_led_ctrl = 1; /* Default is set to Normal blink */ int rtw_led_ctrl = 1; /* default led blink */
#endif #endif
int rtw_usb_rxagg_mode = 2;/* RX_AGG_DMA=1, RX_AGG_USB=2 */ int rtw_usb_rxagg_mode = 2;/* RX_AGG_DMA=1, RX_AGG_USB=2 */
@ -619,7 +619,7 @@ module_param(rtw_early_mode, int, 0644);
#ifdef CONFIG_RTW_SW_LED #ifdef CONFIG_RTW_SW_LED
module_param(rtw_led_ctrl, int, 0644); module_param(rtw_led_ctrl, int, 0644);
MODULE_PARM_DESC(rtw_led_ctrl,"LED control, 0:Always off, 1:Normal blink, 2:Always on"); MODULE_PARM_DESC(rtw_led_ctrl,"led control, 0:led off, 1:led blink, 2:led on");
#endif #endif
#ifdef CONFIG_ADAPTOR_INFO_CACHING_FILE #ifdef CONFIG_ADAPTOR_INFO_CACHING_FILE
@ -4222,7 +4222,7 @@ void rtw_ips_pwr_down(_adapter *padapter)
padapter->net_closed = _TRUE; padapter->net_closed = _TRUE;
rtw_led_control(padapter, LED_CTL_POWER_OFF); // rtw_led_control(padapter, LED_CTL_POWER_OFF);
rtw_ips_dev_unload(padapter); rtw_ips_dev_unload(padapter);
RTW_INFO("<=== rtw_ips_pwr_down..................... in %dms\n", rtw_get_passing_time_ms(start_time)); RTW_INFO("<=== rtw_ips_pwr_down..................... in %dms\n", rtw_get_passing_time_ms(start_time));