Guest User

rtw89_core_disable_rfkill.patch

a guest
Oct 18th, 2025
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. rtw89: core: Temporarily disable check for HW RF kill
  2.  
  3. This patch comments out the default logic in rtw89_chip_has_rfkill()
  4. and hardcodes it to return false.
  5.  
  6. This is very hacky and will eventually be replaced with a driver option. I'm
  7. just extremely lazy :P
  8.  
  9. --- a/drivers/net/wireless/realtek/rtw89/core.c
  10. +++ b/drivers/net/wireless/realtek/rtw89/core.c
  11. @@ -754,7 +754,8 @@
  12.  
  13. static bool rtw89_chip_has_rfkill(struct rtw89_dev *rtwdev)
  14. {
  15. - return !!rtwdev->chip->rfkill_init;
  16. + // return !!rtwdev->chip->rfkill_init;
  17. + return false;
  18. }
  19.  
  20. static void rtw89_chip_set_rfkill(struct rtw89_dev *rtwdev, bool blocked)
Advertisement
Add Comment
Please, Sign In to add comment