* [PATCH] rtl8187: Fix for change in STA handling in mac80211
@ 2008-12-11 1:59 Larry Finger
2008-12-11 8:26 ` Johannes Berg
2008-12-11 12:17 ` Hin-Tak Leung
0 siblings, 2 replies; 8+ messages in thread
From: Larry Finger @ 2008-12-11 1:59 UTC (permalink / raw)
To: John W Linville, Johannes Berg
Cc: Herton Ronaldo Krzesinski, Hin-Tak Leung, linux-wireless
After commit ca247d5f50acd4fc6fdc1dec770e726b0d7eda60 "mac80211: only create
default STA interface if supported", rtl8187 stopped working because the
add_interface callback was not called. For reasons that I do not understand,
the IFTYPE_ADHOC bit, as well as the IFTYPE_STATION bit, must be set in the
interface_modes variable.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
---
John,
This should be added to wireless-testing as soon as possible.
Larry
---
Index: wireless-testing/drivers/net/wireless/rtl818x/rtl8187_dev.c
===================================================================
--- wireless-testing.orig/drivers/net/wireless/rtl818x/rtl8187_dev.c
+++ wireless-testing/drivers/net/wireless/rtl818x/rtl8187_dev.c
@@ -1429,7 +1429,10 @@ static int __devinit rtl8187_probe(struc
* XXX: Once this driver supports anything that requires
* beacons it must implement IEEE80211_TX_CTL_ASSIGN_SEQ.
*/
- dev->wiphy->interface_modes = BIT(NL80211_IFTYPE_STATION);
+ dev->wiphy->interface_modes =
+ BIT(NL80211_IFTYPE_STATION) |
+ BIT(NL80211_IFTYPE_ADHOC);
+
if ((id->driver_info == DEVICE_RTL8187) && priv->is_rtl8187b)
printk(KERN_INFO "rtl8187: inconsistency between id with OEM"
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] rtl8187: Fix for change in STA handling in mac80211
2008-12-11 1:59 [PATCH] rtl8187: Fix for change in STA handling in mac80211 Larry Finger
@ 2008-12-11 8:26 ` Johannes Berg
2008-12-11 11:58 ` Hin-Tak Leung
2008-12-11 12:17 ` Hin-Tak Leung
1 sibling, 1 reply; 8+ messages in thread
From: Johannes Berg @ 2008-12-11 8:26 UTC (permalink / raw)
To: Larry Finger
Cc: John W Linville, Herton Ronaldo Krzesinski, Hin-Tak Leung,
linux-wireless
[-- Attachment #1: Type: text/plain, Size: 459 bytes --]
On Wed, 2008-12-10 at 19:59 -0600, Larry Finger wrote:
> After commit ca247d5f50acd4fc6fdc1dec770e726b0d7eda60 "mac80211: only create
> default STA interface if supported", rtl8187 stopped working because the
> add_interface callback was not called. For reasons that I do not understand,
> the IFTYPE_ADHOC bit, as well as the IFTYPE_STATION bit, must be set in the
> interface_modes variable.
Because I'm stupid. Don't apply this patch.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] rtl8187: Fix for change in STA handling in mac80211
2008-12-11 8:26 ` Johannes Berg
@ 2008-12-11 11:58 ` Hin-Tak Leung
0 siblings, 0 replies; 8+ messages in thread
From: Hin-Tak Leung @ 2008-12-11 11:58 UTC (permalink / raw)
To: Larry Finger, Johannes Berg
Cc: John W Linville, Herton Ronaldo Krzesinski, linux-wireless
--- On Thu, 11/12/08, Johannes Berg <johannes@sipsolutions.net> wrote:
> From: Johannes Berg <johannes@sipsolutions.net>
> Subject: Re: [PATCH] rtl8187: Fix for change in STA handling in mac80211
> To: "Larry Finger" <Larry.Finger@lwfinger.net>
> Cc: "John W Linville" <linville@tuxdriver.com>, "Herton Ronaldo Krzesinski" <herton@mandriva.com.br>, "Hin-Tak Leung" <htl10@users.sourceforge.net>, linux-wireless@vger.kernel.org
> Date: Thursday, 11 December, 2008, 8:26 AM
> On Wed, 2008-12-10 at 19:59 -0600, Larry Finger wrote:
> > After commit ca247d5f50acd4fc6fdc1dec770e726b0d7eda60
> "mac80211: only create
> > default STA interface if supported", rtl8187
> stopped working because the
> > add_interface callback was not called. For reasons
> that I do not understand,
> > the IFTYPE_ADHOC bit, as well as the IFTYPE_STATION
> bit, must be set in the
> > interface_modes variable.
>
> Because I'm stupid. Don't apply this patch.
okay - that explains why my wlan* device disappeared last night after upgrading to the latest wireless-testing :-). I knew breakage like that got to be big news in the wireless-testing mailing list, *if only and as soon as I can revert the change to get my wireless connectivity back*.
I better go and check Larry's patch and see how it turns out :-). Write again soon, after I have tested Larry's patch, hopefully.
Hin-Tak
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] rtl8187: Fix for change in STA handling in mac80211
2008-12-11 1:59 [PATCH] rtl8187: Fix for change in STA handling in mac80211 Larry Finger
2008-12-11 8:26 ` Johannes Berg
@ 2008-12-11 12:17 ` Hin-Tak Leung
2008-12-11 15:33 ` Larry Finger
1 sibling, 1 reply; 8+ messages in thread
From: Hin-Tak Leung @ 2008-12-11 12:17 UTC (permalink / raw)
To: John W Linville, Johannes Berg, Larry Finger
Cc: Herton Ronaldo Krzesinski, linux-wireless
--- On Thu, 11/12/08, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> From: Larry Finger <Larry.Finger@lwfinger.net>
<snipped>
> After commit ca247d5f50acd4fc6fdc1dec770e726b0d7eda60
> "mac80211: only create
> default STA interface if supported", rtl8187 stopped
> working because the
> add_interface callback was not called. For reasons that I
> do not understand,
> the IFTYPE_ADHOC bit, as well as the IFTYPE_STATION bit,
> must be set in the
> interface_modes variable.
>
> Signed-off-by: Larry Finger
> <Larry.Finger@lwfinger.net>
Tested-by: Hin-Tak Leung <htl10@users.sourceforge.net>
Okay, the disappeared wlan* device is back.
> John,
>
> This should be added to wireless-testing as soon as
> possible.
I don't know the verdict yet - but I think we need to either revert Johannes's earlier patch, or have this change from Larry incoporated, ASAP.
Hin-Tak
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] rtl8187: Fix for change in STA handling in mac80211
2008-12-11 12:17 ` Hin-Tak Leung
@ 2008-12-11 15:33 ` Larry Finger
2008-12-11 17:33 ` Hin-Tak Leung
2008-12-11 19:24 ` Hin-Tak Leung
0 siblings, 2 replies; 8+ messages in thread
From: Larry Finger @ 2008-12-11 15:33 UTC (permalink / raw)
To: htl10
Cc: John W Linville, Johannes Berg, Herton Ronaldo Krzesinski,
linux-wireless
Hin-Tak Leung wrote:
>
> I don't know the verdict yet - but I think we need to either revert Johannes's earlier patch, or have this change from Larry incoporated, ASAP.
>
> Hin-Tak
No, the best solution is to incorporate Johannes patch of today. Now that I
understand what happened, my patch just wallpapers over his mistake.
To explain how that happened, he used NL80211_IFTYPE_STATION (2) when he meant
BIT(NL80211_IFTYPE_STATION)(4). My "fix" works because BIT(NL80211_IFTYPE_ADHOC)
== NL80211_IFTYPE_STATION.
Larry
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] rtl8187: Fix for change in STA handling in mac80211
2008-12-11 15:33 ` Larry Finger
@ 2008-12-11 17:33 ` Hin-Tak Leung
2008-12-11 17:37 ` Stefanik Gábor
2008-12-11 19:24 ` Hin-Tak Leung
1 sibling, 1 reply; 8+ messages in thread
From: Hin-Tak Leung @ 2008-12-11 17:33 UTC (permalink / raw)
To: Larry Finger
Cc: John W Linville, Johannes Berg, Herton Ronaldo Krzesinski,
linux-wireless
--- On Thu, 11/12/08, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> Hin-Tak Leung wrote:
> >
> > I don't know the verdict yet - but I think we need
> to either revert Johannes's earlier patch, or have this
> change from Larry incoporated, ASAP.
> >
> > Hin-Tak
>
> No, the best solution is to incorporate Johannes patch of
> today. Now that I
> understand what happened, my patch just wallpapers over his
> mistake.
>
> To explain how that happened, he used
> NL80211_IFTYPE_STATION (2) when he meant
> BIT(NL80211_IFTYPE_STATION)(4). My "fix" works
> because BIT(NL80211_IFTYPE_ADHOC)
> == NL80211_IFTYPE_STATION.
okay, I like my wlan* device not to disappear. One way or the other, this needs fixing ASAP. It was very weird to put the latest wireless-testing on and wlanX is nowhere to be found :-). I'll dig through the archive for the patch. (still not subscribe to linux-wireless - maybe I should when I figure out gmail's filtering system).
Hin-Tak
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] rtl8187: Fix for change in STA handling in mac80211
2008-12-11 17:33 ` Hin-Tak Leung
@ 2008-12-11 17:37 ` Stefanik Gábor
0 siblings, 0 replies; 8+ messages in thread
From: Stefanik Gábor @ 2008-12-11 17:37 UTC (permalink / raw)
To: htl10
Cc: Larry Finger, John W Linville, Johannes Berg,
Herton Ronaldo Krzesinski, linux-wireless
On Thu, Dec 11, 2008 at 6:33 PM, Hin-Tak Leung
<htl10@users.sourceforge.net> wrote:
> --- On Thu, 11/12/08, Larry Finger <Larry.Finger@lwfinger.net> wrote:
>> Hin-Tak Leung wrote:
>> >
>> > I don't know the verdict yet - but I think we need
>> to either revert Johannes's earlier patch, or have this
>> change from Larry incoporated, ASAP.
>> >
>> > Hin-Tak
>>
>> No, the best solution is to incorporate Johannes patch of
>> today. Now that I
>> understand what happened, my patch just wallpapers over his
>> mistake.
>>
>> To explain how that happened, he used
>> NL80211_IFTYPE_STATION (2) when he meant
>> BIT(NL80211_IFTYPE_STATION)(4). My "fix" works
>> because BIT(NL80211_IFTYPE_ADHOC)
>> == NL80211_IFTYPE_STATION.
>
> okay, I like my wlan* device not to disappear. One way or the other, this needs fixing ASAP. It was very weird to put the latest wireless-testing on and wlanX is nowhere to be found :-). I'll dig through the archive for the patch. (still not subscribe to linux-wireless - maybe I should when I figure out gmail's filtering system).
>
> Hin-Tak
A little help: Subscribe, and when you get the first message from the
list, click "Show details", then click "Filter messages from this
mailing list". Gmail will configure the filter criteria for you.
--
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] rtl8187: Fix for change in STA handling in mac80211
2008-12-11 15:33 ` Larry Finger
2008-12-11 17:33 ` Hin-Tak Leung
@ 2008-12-11 19:24 ` Hin-Tak Leung
1 sibling, 0 replies; 8+ messages in thread
From: Hin-Tak Leung @ 2008-12-11 19:24 UTC (permalink / raw)
To: Larry Finger
Cc: John W Linville, Johannes Berg, Herton Ronaldo Krzesinski,
linux-wireless
--- On Thu, 11/12/08, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> Hin-Tak Leung wrote:
> >
> > I don't know the verdict yet - but I think we need
> to either revert Johannes's earlier patch, or have this
> change from Larry incoporated, ASAP.
> >
> > Hin-Tak
>
> No, the best solution is to incorporate Johannes patch of
> today. Now that I
> understand what happened, my patch just wallpapers over his
> mistake.
>
> To explain how that happened, he used
> NL80211_IFTYPE_STATION (2) when he meant
> BIT(NL80211_IFTYPE_STATION)(4). My "fix" works
> because BIT(NL80211_IFTYPE_ADHOC)
> == NL80211_IFTYPE_STATION.
Found Johannes's new patch - and using it right now. So I could have a
Tested-by: ... Yes, it makes more sense :-).
Hin-Tak
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-12-11 19:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-11 1:59 [PATCH] rtl8187: Fix for change in STA handling in mac80211 Larry Finger
2008-12-11 8:26 ` Johannes Berg
2008-12-11 11:58 ` Hin-Tak Leung
2008-12-11 12:17 ` Hin-Tak Leung
2008-12-11 15:33 ` Larry Finger
2008-12-11 17:33 ` Hin-Tak Leung
2008-12-11 17:37 ` Stefanik Gábor
2008-12-11 19:24 ` Hin-Tak Leung
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).