From 699922ec911c39b6b0dbc0782dcabb2192a4e670 Mon Sep 17 00:00:00 2001 From: Christian kimocoder Date: Tue, 26 Sep 2017 19:10:56 +0200 Subject: [PATCH] Update os_intfs.c * Add rtw_led_ctrl module --- os_dep/linux/os_intfs.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/os_dep/linux/os_intfs.c b/os_dep/linux/os_intfs.c index 0a9bdfd..035354b 100644 --- a/os_dep/linux/os_intfs.c +++ b/os_dep/linux/os_intfs.c @@ -622,6 +622,12 @@ module_param(rtw_mcc_sta_bw40_target_tx_tp, int, 0644); module_param(rtw_mcc_sta_bw80_target_tx_tp, int, 0644); #endif /*CONFIG_MCC_MODE */ +#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 */ + void rtw_regsty_load_target_tx_power(struct registry_priv *regsty) { int path, rs; @@ -913,7 +919,10 @@ uint loadparam(_adapter *padapter) registry_par->trx_share_mode = rtw_trx_share_mode; #endif - +#ifdef CONFIG_SW_LED + registry_par->led_ctrl = (u8)rtw_led_ctrl; +#endif /* CONFIG_SW_LED */ + return status; }