1
0

lemote-rfkill.patch 694 B

123456789101112131415161718192021
  1. diff -Nur linux-3.3.orig/drivers/net/wireless/rtl818x/rtl8187/rfkill.c linux-3.3/drivers/net/wireless/rtl818x/rtl8187/rfkill.c
  2. --- linux-3.3.orig/drivers/net/wireless/rtl818x/rtl8187/rfkill.c 2012-03-19 00:15:34.000000000 +0100
  3. +++ linux-3.3/drivers/net/wireless/rtl818x/rtl8187/rfkill.c 2012-03-27 23:29:46.000000000 +0200
  4. @@ -22,6 +22,9 @@
  5. static bool rtl8187_is_radio_enabled(struct rtl8187_priv *priv)
  6. {
  7. +#ifdef CONFIG_LEMOTE_MACH2F
  8. + return 1;
  9. +#else
  10. u8 gpio;
  11. gpio = rtl818x_ioread8(priv, &priv->map->GPIO0);
  12. @@ -29,6 +32,7 @@
  13. gpio = rtl818x_ioread8(priv, &priv->map->GPIO1);
  14. return gpio & priv->rfkill_mask;
  15. +#endif
  16. }
  17. void rtl8187_rfkill_init(struct ieee80211_hw *hw)