[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTinwG5BR5=S14XYcwZ39c3k0xc9+2VsQFS+JHB0f@mail.gmail.com>
Date: Fri, 1 Apr 2011 00:22:51 +0800
From: wu zhangjin <wuzhangjin@...il.com>
To: Herton Ronaldo Krzesinski <herton.krzesinski@...onical.com>
Cc: Larry Finger <Larry.Finger@...inger.net>,
Hin-Tak Leung <htl10@...rs.sourceforge.net>,
Herton Ronaldo Krzesinski <herton@...onical.com>,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
Roman Mamedov <rm@...anrm.ru>
Subject: Re: [RFC PATCH] rtl8187: Fix led support for rfkill
On Mon, Mar 28, 2011 at 11:40 PM, Herton Ronaldo Krzesinski
<herton.krzesinski@...onical.com> wrote:
[...]
>>
>> My rtl8187 devices are both external USB sticks, thus they have no
>> interaction with a radio-kill switch. I will test your patch to make
>> sure it does no harm to my system.
>>
>> I think the commit message should be revised. A simple statement
>> like "the LED does not turn off when the rfkill switch is off"
>> should be sufficient.
>
> The patch should work, but I wonder if we should be fiddling with priv->vif
> for this, perhaps we should not assume vif to be valid after
> rtl8187_remove_interface (I don't see problems with current
> rtl8187/mac80211 code on a quick look, but...)
>
Yes, but seems only two places have touched the vif pointer.
$ grep "vif =" -ur drivers/net/wireless/rtl818x/rtl8187/
drivers/net/wireless/rtl818x/rtl8187/dev.c: priv->vif = NULL;
drivers/net/wireless/rtl818x/rtl8187/dev.c: priv->vif = vif;
> I cleaner solution may be to use a priv->mode like p54.
Yep, then, we may need to add a 'mode' member to rtl8187_priv and
update it properly like p54.
So, What do you prefer? I will prepare a new patch asap.
Best Regards,
Wu Zhangjin
>
>>
>> Larry
>>
>
> --
> []'s
> Herton
>
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists