Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rtw89: core: Module option to disable check for HW RF kill
- This patch forces bool rtw89_chip_has_rfkill to return false.
- If option disable_rfkill_check is set to 1 (or true), this will
- prevent the driver from polling the chip for an rfkill state.
- --- a/drivers/net/wireless/realtek/rtw89/core.c
- +++ b/drivers/net/wireless/realtek/rtw89/core.c
- @@ -24,6 +24,10 @@ static bool rtw89_disable_ps_mode;
- module_param_named(disable_ps_mode, rtw89_disable_ps_mode, bool, 0644);
- MODULE_PARM_DESC(disable_ps_mode, "Set Y to disable low power mode");
- +static bool rtw89_disable_rfkill_check;
- +module_param_named(disable_rfkill_check, rtw89_disable_rfkill_check, bool, 0644);
- +MODULE_PARM_DESC(disable_rfkill_check, "Disable check for chip hw rfkill state");
- +
- #define RTW89_DEF_CHAN(_freq, _hw_val, _flags, _band) \
- { .center_freq = _freq, .hw_value = _hw_val, .flags = _flags, .band = _band, }
- #define RTW89_DEF_CHAN_2G(_freq, _hw_val) \
- @@ -5540,6 +5544,10 @@ static int rtw89_chip_board_info_setup(struct rtw89_dev *rtwdev)
- static bool rtw89_chip_has_rfkill(struct rtw89_dev *rtwdev)
- {
- + if (rtw89_disable_rfkill_check) {
- + return false;
- + }
- +
- return !!rtwdev->chip->rfkill_init;
- }
Advertisement
Add Comment
Please, Sign In to add comment