mirror of
https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
synced 2025-12-10 06:36:21 +01:00
Add module parameter for status LED. (#136)
This commit is contained in:
committed by
Harshavardhana
parent
a87576f63f
commit
ea61cdf0fa
@@ -301,6 +301,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
|
||||
|
||||
static uint loadparam(PADAPTER padapter, _nic_hdl pnetdev);
|
||||
int _netdev_open(struct net_device *pnetdev);
|
||||
int netdev_open (struct net_device *pnetdev);
|
||||
@@ -1568,6 +1574,10 @@ _func_enter_;
|
||||
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
|
||||
|
||||
_func_exit_;
|
||||
|
||||
return status;
|
||||
|
||||
Reference in New Issue
Block a user