1
0
mirror of https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git synced 2025-10-19 17:11:09 +02:00

Re-add module parameter for status LED.

This feature was lost when "merge new version v4.3.14" was applied.

Original PR: #136
Original commit: ea61cdf0fa
This commit is contained in:
Nick Bartos
2016-11-13 13:37:20 -08:00
parent 8db81745a2
commit 7e67577c79
4 changed files with 31 additions and 5 deletions

View File

@@ -328,6 +328,12 @@ uint rtw_notch_filter = RTW_NOTCH_FILTER;
module_param(rtw_notch_filter, uint, 0644);
MODULE_PARM_DESC(rtw_notch_filter, "0:Disable, 1:Enable, 2:Enable only for P2P");
#ifdef CONFIG_SW_LED
int rtw_led_enable = 1;
module_param(rtw_led_enable, int, 0644);
MODULE_PARM_DESC(rtw_led_enable,"Enable status LED");
#endif //CONFIG_SW_LED
uint rtw_hiq_filter = CONFIG_RTW_HIQ_FILTER;
module_param(rtw_hiq_filter, uint, 0644);
MODULE_PARM_DESC(rtw_hiq_filter, "0:allow all, 1:allow special, 2:deny all");
@@ -578,6 +584,10 @@ uint loadparam( _adapter *padapter, _nic_hdl pnetdev)
registry_par->ext_iface_num = (u8)rtw_ext_iface_num;
#endif //CONFIG_MULTI_VIR_IFACES
#ifdef CONFIG_SW_LED
registry_par->led_enable = (u8)rtw_led_enable;
#endif //CONFIG_SW_LED
registry_par->RegEnableTxPowerLimit = (u8)rtw_tx_pwr_lmt_enable;
registry_par->RegEnableTxPowerByRate = (u8)rtw_tx_pwr_by_rate;