On Sun, 27 Mar 2011 20:19:37 +0800
wu zhangjin <wuzhang...@gmail.com> wrote:

> On Sun, Mar 27, 2011 at 7:32 PM, Roman Mamedov <r...@romanrm.ru> wrote:
> > On Sun, 27 Mar 2011 19:01:04 +0800
> > wu zhangjin <wuzhang...@gmail.com> wrote:
> >
> >> BTW, perhaps you can check if this patch work?
> >
> > Yes -- it does work. :)
> 
> Congratulation ;-)
> 
> So, in reality, the 'hard' state of rtl8187 is not really blocked in
> YeeLoong laptop.

Since there is no other solution in sight for now, maybe include this patch to
rtl8187 into the loongson-community repo? I am concerned that after changing
the wireless driver everyone is now required to manually press Fn+F5 each
boot, and this is inconvenient.

> 
> Regards,
> Wu Zhangjin
> 
> >
> > 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
> >
> 


-- 
With respect,
Roman

Attachment: signature.asc
Description: PGP signature

Reply via email to