mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-25 14:44:09 +00:00
Update os_intfs.c
* Add rtw_led_ctrl module
This commit is contained in:
parent
5f01dd24f0
commit
71c96cb928
@ -289,6 +289,12 @@ module_param(rtw_hwpwrp_detect, int, 0644);
|
|||||||
|
|
||||||
module_param(rtw_hw_wps_pbc, 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
|
#ifdef CONFIG_TX_EARLY_MODE
|
||||||
module_param(rtw_early_mode, int, 0644);
|
module_param(rtw_early_mode, int, 0644);
|
||||||
#endif
|
#endif
|
||||||
@ -668,6 +674,11 @@ _func_enter_;
|
|||||||
registry_par->reg_rxgain_offset_5gm = (u32) rtw_rxgain_offset_5gm;
|
registry_par->reg_rxgain_offset_5gm = (u32) rtw_rxgain_offset_5gm;
|
||||||
registry_par->reg_rxgain_offset_5gh = (u32) rtw_rxgain_offset_5gh;
|
registry_par->reg_rxgain_offset_5gh = (u32) rtw_rxgain_offset_5gh;
|
||||||
_func_exit_;
|
_func_exit_;
|
||||||
|
|
||||||
|
#ifdef CONFIG_SW_LED
|
||||||
|
registry_par->led_ctrl = (u8)rtw_led_ctrl;
|
||||||
|
#endif /* CONFIG_SW_LED */
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user