From 71c96cb928d1606a97d33f877f4af836a9233cb4 Mon Sep 17 00:00:00 2001 From: Christian kimocoder Date: Mon, 2 Oct 2017 21:38:27 +0200 Subject: [PATCH] Update os_intfs.c * Add rtw_led_ctrl module --- os_dep/linux/os_intfs.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index 394bcbf..77bbb82 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -289,6 +289,12 @@ module_param(rtw_hwpwrp_detect, int, 0644); module_param(rtw_hw_wps_pbc, int, 0644); +#ifdef CONFIG_SW_LED +int rtw_led_ctrl = 1; /* Default to normal blink */ +module_param(rtw_led_ctrl, int, 0644); +MODULE_PARM_DESC(rtw_led_ctrl,"Led Control: 0=Always off, 1=Normal blink, 2=Always on"); +#endif /* CONFIG_SW_LED */ + #ifdef CONFIG_TX_EARLY_MODE module_param(rtw_early_mode, int, 0644); #endif @@ -668,6 +674,11 @@ _func_enter_; registry_par->reg_rxgain_offset_5gm = (u32) rtw_rxgain_offset_5gm; registry_par->reg_rxgain_offset_5gh = (u32) rtw_rxgain_offset_5gh; _func_exit_; + +#ifdef CONFIG_SW_LED + registry_par->led_ctrl = (u8)rtw_led_ctrl; +#endif /* CONFIG_SW_LED */ + return status; }