On Sun, 27 Mar 2011 19:01:04 +0800 wu zhangjin <[email protected]> wrote:
> BTW, perhaps you can check if this patch work?
Yes -- it does work. :)
The patch got somehow corrupted in email body, but I did the same change
manually, and now I no longer need to press Fn+F5 to get wifi working.
>
> diff --git a/drivers/net/wireless/rtl818x/rtl8187/rfkill.c
> b/drivers/net/wireless/rtl818x/rtl8187/rfkill.c
> index 3411671..b2fe03e 100644
> --- a/drivers/net/wireless/rtl818x/rtl8187/rfkill.c
> +++ b/drivers/net/wireless/rtl818x/rtl8187/rfkill.c
> @@ -21,7 +21,10 @@
> #include "rfkill.h"
>
> static bool rtl8187_is_radio_enabled(struct rtl8187_priv *priv)
> -{
> +{
> +#ifdef CONFIG_LEMOTE_MACH2F
> + return 1;
> +#else
> u8 gpio;
>
> gpio = rtl818x_ioread8(priv, &priv->map->GPIO0);
> @@ -29,6 +32,7 @@ static bool rtl8187_is_radio_enabled(struct
> rtl8187_priv *priv)
> gpio = rtl818x_ioread8(priv, &priv->map->GPIO1);
>
> return gpio & priv->rfkill_mask;
> +#endif
> }
>
> void rtl8187_rfkill_init(struct ieee80211_hw *hw)
>
> Or we may really need to turn on the 'hard' state by default in
> rtl8187_init_hw().
>
> Best Regards,
> Wu Zhangjin
>
--
With respect,
Roman
signature.asc
Description: PGP signature
