On Sun, Mar 27, 2011 at 7:32 PM, Roman Mamedov <[email protected]> wrote:
> 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. :)
Congratulation ;-)
So, in reality, the 'hard' state of rtl8187 is not really blocked in
YeeLoong laptop.
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
>
--
You received this message because you are subscribed to the Google Groups
"loongson-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/loongson-dev?hl=en.