* Kernel panic in wireless-testing-2008-09-24 with rtl8187
@ 2008-09-25 19:26 Hauke Mehrtens
2008-09-25 20:08 ` John W. Linville
` (3 more replies)
0 siblings, 4 replies; 16+ messages in thread
From: Hauke Mehrtens @ 2008-09-25 19:26 UTC (permalink / raw)
To: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 397 bytes --]
After upgrading from wireless-testing-2008-09-12 to
wireless-testing-2008-09-24 I got the following kernel panic short after
starting linux.
It happens at every start. After starting an older linux version
everything works as it should.
I think it happens in the connecting process.
I am using Ubuntu Hardy with network manager 0.7
I have got an rtl8187 chip on my Asus P5B Deluxe wifi.
Hauke
[-- Attachment #2: kernel-panic-rtl8187.jpg --]
[-- Type: image/jpeg, Size: 214814 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-25 19:26 Kernel panic in wireless-testing-2008-09-24 with rtl8187 Hauke Mehrtens
@ 2008-09-25 20:08 ` John W. Linville
2008-09-25 21:18 ` Larry Finger
` (2 subsequent siblings)
3 siblings, 0 replies; 16+ messages in thread
From: John W. Linville @ 2008-09-25 20:08 UTC (permalink / raw)
To: Hauke Mehrtens; +Cc: linux-wireless
On Thu, Sep 25, 2008 at 09:26:32PM +0200, Hauke Mehrtens wrote:
> After upgrading from wireless-testing-2008-09-12 to
> wireless-testing-2008-09-24 I got the following kernel panic short after
> starting linux.
>
> It happens at every start. After starting an older linux version
> everything works as it should.
>
> I think it happens in the connecting process.
>
> I am using Ubuntu Hardy with network manager 0.7
> I have got an rtl8187 chip on my Asus P5B Deluxe wifi.
Could you try master-2008-09-22 and master-2008-09-23 as well?
That might help to isolate the issue.
Thanks!
John
--
John W. Linville Linux should be at the core
linville@tuxdriver.com of your literate lifestyle.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-25 19:26 Kernel panic in wireless-testing-2008-09-24 with rtl8187 Hauke Mehrtens
2008-09-25 20:08 ` John W. Linville
@ 2008-09-25 21:18 ` Larry Finger
2008-09-25 21:36 ` Tomas Winkler
2008-09-25 23:14 ` Pavel Roskin
2008-09-26 16:28 ` John W. Linville
3 siblings, 1 reply; 16+ messages in thread
From: Larry Finger @ 2008-09-25 21:18 UTC (permalink / raw)
To: Hauke Mehrtens; +Cc: linux-wireless
Hauke Mehrtens wrote:
> After upgrading from wireless-testing-2008-09-12 to
> wireless-testing-2008-09-24 I got the following kernel panic short after
> starting linux.
>
> It happens at every start. After starting an older linux version
> everything works as it should.
>
> I think it happens in the connecting process.
>
> I am using Ubuntu Hardy with network manager 0.7
> I have got an rtl8187 chip on my Asus P5B Deluxe wifi.
I can confirm this with and without my RTL8187B inserted.
Larry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-25 21:18 ` Larry Finger
@ 2008-09-25 21:36 ` Tomas Winkler
2008-09-26 3:06 ` Larry Finger
0 siblings, 1 reply; 16+ messages in thread
From: Tomas Winkler @ 2008-09-25 21:36 UTC (permalink / raw)
To: Larry Finger; +Cc: Hauke Mehrtens, linux-wireless
On Fri, Sep 26, 2008 at 12:18 AM, Larry Finger
<Larry.Finger@lwfinger.net> wrote:
> Hauke Mehrtens wrote:
>> After upgrading from wireless-testing-2008-09-12 to
>> wireless-testing-2008-09-24 I got the following kernel panic short after
>> starting linux.
>>
>> It happens at every start. After starting an older linux version
>> everything works as it should.
>>
>> I think it happens in the connecting process.
>>
>> I am using Ubuntu Hardy with network manager 0.7
>> I have got an rtl8187 chip on my Asus P5B Deluxe wifi.
>
> I can confirm this with and without my RTL8187B inserted.
>
> Larry
>
wild guess try to revert:
'mac80211: make master iface not wireless'
Tomas
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-25 19:26 Kernel panic in wireless-testing-2008-09-24 with rtl8187 Hauke Mehrtens
2008-09-25 20:08 ` John W. Linville
2008-09-25 21:18 ` Larry Finger
@ 2008-09-25 23:14 ` Pavel Roskin
2008-09-26 16:28 ` John W. Linville
3 siblings, 0 replies; 16+ messages in thread
From: Pavel Roskin @ 2008-09-25 23:14 UTC (permalink / raw)
To: Hauke Mehrtens; +Cc: linux-wireless
On Thu, 2008-09-25 at 21:26 +0200, Hauke Mehrtens wrote:
> After upgrading from wireless-testing-2008-09-12 to
> wireless-testing-2008-09-24 I got the following kernel panic short after
> starting linux.
Same thing here. Also in ieee80211_select_queue. Fedora Development,
x86_64, current wireless-testing/master. The system where it happens
has b43, b43legacy and rt61pci compiled as modules, they all are loaded
on startup, and there are supported cards for all of them.
Due to a finicky video card, I cannot use more than 25 lines on the
terminal, so I don't see if there is a BUG before the trace in my case.
--
Regards,
Pavel Roskin
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-25 21:36 ` Tomas Winkler
@ 2008-09-26 3:06 ` Larry Finger
2008-09-26 6:42 ` Tomas Winkler
2008-09-26 7:06 ` Luis R. Rodriguez
0 siblings, 2 replies; 16+ messages in thread
From: Larry Finger @ 2008-09-26 3:06 UTC (permalink / raw)
To: Tomas Winkler, Johannes Berg; +Cc: Hauke Mehrtens, linux-wireless
Tomas Winkler wrote:
> wild guess try to revert:
> 'mac80211: make master iface not wireless'
You win the prize. Bisection shows that
84b0ba8ed0423a3c56a28e701b735daae3e15766 is first bad commit
commit 84b0ba8ed0423a3c56a28e701b735daae3e15766
Author: Johannes Berg <johannes@sipsolutions.net>
Date: Tue Sep 16 14:18:59 2008 +0200
mac80211: make master iface not wireless
The actual crash is in the following routine from include/net/wireless.h:
/**
* wiphy_priv - return priv from wiphy
*/
static inline void *wiphy_priv(struct wiphy *wiphy)
{
BUG_ON(!wiphy);
return &wiphy->priv;
}
I'm still looking to see where it goes wrong.
Larry
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-26 3:06 ` Larry Finger
@ 2008-09-26 6:42 ` Tomas Winkler
2008-09-26 6:50 ` Luis R. Rodriguez
2008-09-26 7:06 ` Luis R. Rodriguez
1 sibling, 1 reply; 16+ messages in thread
From: Tomas Winkler @ 2008-09-26 6:42 UTC (permalink / raw)
To: Larry Finger; +Cc: Johannes Berg, Hauke Mehrtens, linux-wireless
On Fri, Sep 26, 2008 at 6:06 AM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> Tomas Winkler wrote:
>> wild guess try to revert:
>> 'mac80211: make master iface not wireless'
>
> You win the prize. Bisection shows that
> 84b0ba8ed0423a3c56a28e701b735daae3e15766 is first bad commit
>
> commit 84b0ba8ed0423a3c56a28e701b735daae3e15766
> Author: Johannes Berg <johannes@sipsolutions.net>
> Date: Tue Sep 16 14:18:59 2008 +0200
>
> mac80211: make master iface not wireless
>
>
> The actual crash is in the following routine from include/net/wireless.h:
>
> /**
> * wiphy_priv - return priv from wiphy
> */
> static inline void *wiphy_priv(struct wiphy *wiphy)
> {
> BUG_ON(!wiphy);
> return &wiphy->priv;
> }
>
> I'm still looking to see where it goes wrong.
What do you mean? The root cause is written in the commit log.
Tomas
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-26 6:42 ` Tomas Winkler
@ 2008-09-26 6:50 ` Luis R. Rodriguez
2008-09-26 6:51 ` Luis R. Rodriguez
0 siblings, 1 reply; 16+ messages in thread
From: Luis R. Rodriguez @ 2008-09-26 6:50 UTC (permalink / raw)
To: Tomas Winkler; +Cc: Larry Finger, Johannes Berg, Hauke Mehrtens, linux-wireless
On Thu, Sep 25, 2008 at 11:42 PM, Tomas Winkler <tomasw@gmail.com> wrote:
> On Fri, Sep 26, 2008 at 6:06 AM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
>> Tomas Winkler wrote:
>>> wild guess try to revert:
>>> 'mac80211: make master iface not wireless'
>>
>> You win the prize. Bisection shows that
>> 84b0ba8ed0423a3c56a28e701b735daae3e15766 is first bad commit
>>
>> commit 84b0ba8ed0423a3c56a28e701b735daae3e15766
>> Author: Johannes Berg <johannes@sipsolutions.net>
>> Date: Tue Sep 16 14:18:59 2008 +0200
>>
>> mac80211: make master iface not wireless
>>
>>
>> The actual crash is in the following routine from include/net/wireless.h:
>>
>> /**
>> * wiphy_priv - return priv from wiphy
>> */
>> static inline void *wiphy_priv(struct wiphy *wiphy)
>> {
>> BUG_ON(!wiphy);
>> return &wiphy->priv;
>> }
>>
>> I'm still looking to see where it goes wrong.
>
> What do you mean? The root cause is written in the commit log.
> Tomas
The question is who calls wiphy_priv(mdev) or wiphy_priv(NULL) and where.
Luis
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-26 6:50 ` Luis R. Rodriguez
@ 2008-09-26 6:51 ` Luis R. Rodriguez
0 siblings, 0 replies; 16+ messages in thread
From: Luis R. Rodriguez @ 2008-09-26 6:51 UTC (permalink / raw)
To: Tomas Winkler; +Cc: Larry Finger, Johannes Berg, Hauke Mehrtens, linux-wireless
On Thu, Sep 25, 2008 at 11:50 PM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Thu, Sep 25, 2008 at 11:42 PM, Tomas Winkler <tomasw@gmail.com> wrote:
>> On Fri, Sep 26, 2008 at 6:06 AM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
>>> Tomas Winkler wrote:
>>>> wild guess try to revert:
>>>> 'mac80211: make master iface not wireless'
>>>
>>> You win the prize. Bisection shows that
>>> 84b0ba8ed0423a3c56a28e701b735daae3e15766 is first bad commit
>>>
>>> commit 84b0ba8ed0423a3c56a28e701b735daae3e15766
>>> Author: Johannes Berg <johannes@sipsolutions.net>
>>> Date: Tue Sep 16 14:18:59 2008 +0200
>>>
>>> mac80211: make master iface not wireless
>>>
>>>
>>> The actual crash is in the following routine from include/net/wireless.h:
>>>
>>> /**
>>> * wiphy_priv - return priv from wiphy
>>> */
>>> static inline void *wiphy_priv(struct wiphy *wiphy)
>>> {
>>> BUG_ON(!wiphy);
>>> return &wiphy->priv;
>>> }
>>>
>>> I'm still looking to see where it goes wrong.
>>
>> What do you mean? The root cause is written in the commit log.
>> Tomas
>
> The question is who calls wiphy_priv(mdev) or wiphy_priv(NULL) and where.
Actually just the later.
Luis
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-26 3:06 ` Larry Finger
2008-09-26 6:42 ` Tomas Winkler
@ 2008-09-26 7:06 ` Luis R. Rodriguez
2008-09-26 7:43 ` Luis R. Rodriguez
1 sibling, 1 reply; 16+ messages in thread
From: Luis R. Rodriguez @ 2008-09-26 7:06 UTC (permalink / raw)
To: Larry Finger; +Cc: Tomas Winkler, Johannes Berg, Hauke Mehrtens, linux-wireless
On Thu, Sep 25, 2008 at 8:06 PM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> Tomas Winkler wrote:
>> wild guess try to revert:
>> 'mac80211: make master iface not wireless'
>
> You win the prize. Bisection shows that
> 84b0ba8ed0423a3c56a28e701b735daae3e15766 is first bad commit
>
> commit 84b0ba8ed0423a3c56a28e701b735daae3e15766
> Author: Johannes Berg <johannes@sipsolutions.net>
> Date: Tue Sep 16 14:18:59 2008 +0200
>
> mac80211: make master iface not wireless
>
>
> The actual crash is in the following routine from include/net/wireless.h:
>
> /**
> * wiphy_priv - return priv from wiphy
> */
> static inline void *wiphy_priv(struct wiphy *wiphy)
> {
> BUG_ON(!wiphy);
> return &wiphy->priv;
> }
>
> I'm still looking to see where it goes wrong.
Actually wouldn't you get a stack trace here?
Luis
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-26 7:06 ` Luis R. Rodriguez
@ 2008-09-26 7:43 ` Luis R. Rodriguez
2008-09-26 8:11 ` Tomas Winkler
0 siblings, 1 reply; 16+ messages in thread
From: Luis R. Rodriguez @ 2008-09-26 7:43 UTC (permalink / raw)
To: Larry Finger; +Cc: Tomas Winkler, Johannes Berg, Hauke Mehrtens, linux-wireless
On Fri, Sep 26, 2008 at 12:06 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Thu, Sep 25, 2008 at 8:06 PM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
>> Tomas Winkler wrote:
>>> wild guess try to revert:
>>> 'mac80211: make master iface not wireless'
>>
>> You win the prize. Bisection shows that
>> 84b0ba8ed0423a3c56a28e701b735daae3e15766 is first bad commit
>>
>> commit 84b0ba8ed0423a3c56a28e701b735daae3e15766
>> Author: Johannes Berg <johannes@sipsolutions.net>
>> Date: Tue Sep 16 14:18:59 2008 +0200
>>
>> mac80211: make master iface not wireless
>>
>>
>> The actual crash is in the following routine from include/net/wireless.h:
>>
>> /**
>> * wiphy_priv - return priv from wiphy
>> */
>> static inline void *wiphy_priv(struct wiphy *wiphy)
>> {
>> BUG_ON(!wiphy);
>> return &wiphy->priv;
>> }
>>
>> I'm still looking to see where it goes wrong.
>
> Actually wouldn't you get a stack trace here?
Yeah not sure I tested against !wiphy on its callers and didn't find a
case where it hit. I don't think this is it.
Luis
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-26 7:43 ` Luis R. Rodriguez
@ 2008-09-26 8:11 ` Tomas Winkler
2008-09-26 8:12 ` Luis R. Rodriguez
2008-09-26 8:47 ` Luis R. Rodriguez
0 siblings, 2 replies; 16+ messages in thread
From: Tomas Winkler @ 2008-09-26 8:11 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: Larry Finger, Johannes Berg, Hauke Mehrtens, linux-wireless
On Fri, Sep 26, 2008 at 10:43 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> On Fri, Sep 26, 2008 at 12:06 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
>> On Thu, Sep 25, 2008 at 8:06 PM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
>>> Tomas Winkler wrote:
>>>> wild guess try to revert:
>>>> 'mac80211: make master iface not wireless'
>>>
>>> You win the prize. Bisection shows that
>>> 84b0ba8ed0423a3c56a28e701b735daae3e15766 is first bad commit
>>>
>>> commit 84b0ba8ed0423a3c56a28e701b735daae3e15766
>>> Author: Johannes Berg <johannes@sipsolutions.net>
>>> Date: Tue Sep 16 14:18:59 2008 +0200
>>>
>>> mac80211: make master iface not wireless
>>>
>>>
>>> The actual crash is in the following routine from include/net/wireless.h:
>>>
>>> /**
>>> * wiphy_priv - return priv from wiphy
>>> */
>>> static inline void *wiphy_priv(struct wiphy *wiphy)
>>> {
>>> BUG_ON(!wiphy);
>>> return &wiphy->priv;
>>> }
>>>
>>> I'm still looking to see where it goes wrong.
>>
>> Actually wouldn't you get a stack trace here?
>
> Yeah not sure I tested against !wiphy on its callers and didn't find a
> case where it hit. I don't think this is it.
u16 ieee80211_select_queue(struct net_device *dev, struct sk_buff *skb)
{
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
--- this is the line
Tomas
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-26 8:11 ` Tomas Winkler
@ 2008-09-26 8:12 ` Luis R. Rodriguez
2008-09-26 8:47 ` Luis R. Rodriguez
1 sibling, 0 replies; 16+ messages in thread
From: Luis R. Rodriguez @ 2008-09-26 8:12 UTC (permalink / raw)
To: Tomas Winkler; +Cc: Larry Finger, Johannes Berg, Hauke Mehrtens, linux-wireless
On Fri, Sep 26, 2008 at 1:11 AM, Tomas Winkler <tomasw@gmail.com> wrote:
> On Fri, Sep 26, 2008 at 10:43 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
>> On Fri, Sep 26, 2008 at 12:06 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
>>> On Thu, Sep 25, 2008 at 8:06 PM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
>>>> Tomas Winkler wrote:
>>>>> wild guess try to revert:
>>>>> 'mac80211: make master iface not wireless'
>>>>
>>>> You win the prize. Bisection shows that
>>>> 84b0ba8ed0423a3c56a28e701b735daae3e15766 is first bad commit
>>>>
>>>> commit 84b0ba8ed0423a3c56a28e701b735daae3e15766
>>>> Author: Johannes Berg <johannes@sipsolutions.net>
>>>> Date: Tue Sep 16 14:18:59 2008 +0200
>>>>
>>>> mac80211: make master iface not wireless
>>>>
>>>>
>>>> The actual crash is in the following routine from include/net/wireless.h:
>>>>
>>>> /**
>>>> * wiphy_priv - return priv from wiphy
>>>> */
>>>> static inline void *wiphy_priv(struct wiphy *wiphy)
>>>> {
>>>> BUG_ON(!wiphy);
>>>> return &wiphy->priv;
>>>> }
>>>>
>>>> I'm still looking to see where it goes wrong.
>>>
>>> Actually wouldn't you get a stack trace here?
>>
>> Yeah not sure I tested against !wiphy on its callers and didn't find a
>> case where it hit. I don't think this is it.
>
> u16 ieee80211_select_queue(struct net_device *dev, struct sk_buff *skb)
> {
> struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
> struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
> --- this is the line
Yeah I just landed there too.
Luis
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-26 8:11 ` Tomas Winkler
2008-09-26 8:12 ` Luis R. Rodriguez
@ 2008-09-26 8:47 ` Luis R. Rodriguez
1 sibling, 0 replies; 16+ messages in thread
From: Luis R. Rodriguez @ 2008-09-26 8:47 UTC (permalink / raw)
To: Tomas Winkler
Cc: Luis R. Rodriguez, Larry Finger, Johannes Berg, Hauke Mehrtens,
linux-wireless
On Fri, Sep 26, 2008 at 01:11:53AM -0700, Tomas Winkler wrote:
> On Fri, Sep 26, 2008 at 10:43 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> > On Fri, Sep 26, 2008 at 12:06 AM, Luis R. Rodriguez <mcgrof@gmail.com> wrote:
> >> On Thu, Sep 25, 2008 at 8:06 PM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> >>> Tomas Winkler wrote:
> >>>> wild guess try to revert:
> >>>> 'mac80211: make master iface not wireless'
> >>>
> >>> You win the prize. Bisection shows that
> >>> 84b0ba8ed0423a3c56a28e701b735daae3e15766 is first bad commit
> >>>
> >>> commit 84b0ba8ed0423a3c56a28e701b735daae3e15766
> >>> Author: Johannes Berg <johannes@sipsolutions.net>
> >>> Date: Tue Sep 16 14:18:59 2008 +0200
> >>>
> >>> mac80211: make master iface not wireless
> >>>
> >>>
> >>> The actual crash is in the following routine from include/net/wireless.h:
> >>>
> >>> /**
> >>> * wiphy_priv - return priv from wiphy
> >>> */
> >>> static inline void *wiphy_priv(struct wiphy *wiphy)
> >>> {
> >>> BUG_ON(!wiphy);
> >>> return &wiphy->priv;
> >>> }
> >>>
> >>> I'm still looking to see where it goes wrong.
> >>
> >> Actually wouldn't you get a stack trace here?
> >
> > Yeah not sure I tested against !wiphy on its callers and didn't find a
> > case where it hit. I don't think this is it.
>
> u16 ieee80211_select_queue(struct net_device *dev, struct sk_buff *skb)
> {
> struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
> struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
> --- this is the line
--- This is the fix
diff --git a/net/mac80211/wme.c b/net/mac80211/wme.c
index 6748ded..7d114bd 100644
--- a/net/mac80211/wme.c
+++ b/net/mac80211/wme.c
@@ -75,8 +75,16 @@ static int wme_downgrade_ac(struct sk_buff *skb)
/* Indicate which queue to use. */
static u16 classify80211(struct sk_buff *skb, struct net_device *dev)
{
- struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
+ struct ieee80211_local *local;
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
+ struct ieee80211_master_priv *mpriv;
+
+ /* this is not for wiphys, just for mdev */
+ BUG_ON (dev->ieee80211_ptr);
+
+ mpriv = netdev_priv(dev);
+ local = mpriv->local;
+
if (!ieee80211_is_data(hdr->frame_control)) {
/* management frames go on AC_VO queue, but are sent
@@ -114,12 +122,19 @@ static u16 classify80211(struct sk_buff *skb, struct net_device *dev)
u16 ieee80211_select_queue(struct net_device *dev, struct sk_buff *skb)
{
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
- struct ieee80211_local *local = wdev_priv(dev->ieee80211_ptr);
+ struct ieee80211_local *local;
struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb);
+ struct ieee80211_master_priv *mpriv;
struct sta_info *sta;
u16 queue;
u8 tid;
+ /* this is not for wiphys, just for mdev */
+ BUG_ON (dev->ieee80211_ptr);
+
+ mpriv = netdev_priv(dev);
+ local = mpriv->local;
+
queue = classify80211(skb, dev);
if (unlikely(queue >= local->hw.queues))
queue = local->hw.queues - 1;
^ permalink raw reply related [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-25 19:26 Kernel panic in wireless-testing-2008-09-24 with rtl8187 Hauke Mehrtens
` (2 preceding siblings ...)
2008-09-25 23:14 ` Pavel Roskin
@ 2008-09-26 16:28 ` John W. Linville
2008-09-27 11:49 ` Hauke Mehrtens
3 siblings, 1 reply; 16+ messages in thread
From: John W. Linville @ 2008-09-26 16:28 UTC (permalink / raw)
To: Hauke Mehrtens; +Cc: linux-wireless
On Thu, Sep 25, 2008 at 09:26:32PM +0200, Hauke Mehrtens wrote:
> After upgrading from wireless-testing-2008-09-12 to
> wireless-testing-2008-09-24 I got the following kernel panic short after
> starting linux.
>
> It happens at every start. After starting an older linux version
> everything works as it should.
>
> I think it happens in the connecting process.
>
> I am using Ubuntu Hardy with network manager 0.7
> I have got an rtl8187 chip on my Asus P5B Deluxe wifi.
I have applied Johannes's fix (slightly more complete than the one
from Luis) to wireless-testing, and it is available now. Please verify
that it is working for you.
Thanks!
John
--
John W. Linville Linux should be at the core
linville@tuxdriver.com of your literate lifestyle.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Kernel panic in wireless-testing-2008-09-24 with rtl8187
2008-09-26 16:28 ` John W. Linville
@ 2008-09-27 11:49 ` Hauke Mehrtens
0 siblings, 0 replies; 16+ messages in thread
From: Hauke Mehrtens @ 2008-09-27 11:49 UTC (permalink / raw)
To: John W. Linville; +Cc: linux-wireless
John W. Linville wrote:
> I have applied Johannes's fix (slightly more complete than the one
> from Luis) to wireless-testing, and it is available now. Please verify
> that it is working for you.
Thanks for the patch. It loads and connects to the wireless network like
with older kernels.
Hauke
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2008-09-27 11:49 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-25 19:26 Kernel panic in wireless-testing-2008-09-24 with rtl8187 Hauke Mehrtens
2008-09-25 20:08 ` John W. Linville
2008-09-25 21:18 ` Larry Finger
2008-09-25 21:36 ` Tomas Winkler
2008-09-26 3:06 ` Larry Finger
2008-09-26 6:42 ` Tomas Winkler
2008-09-26 6:50 ` Luis R. Rodriguez
2008-09-26 6:51 ` Luis R. Rodriguez
2008-09-26 7:06 ` Luis R. Rodriguez
2008-09-26 7:43 ` Luis R. Rodriguez
2008-09-26 8:11 ` Tomas Winkler
2008-09-26 8:12 ` Luis R. Rodriguez
2008-09-26 8:47 ` Luis R. Rodriguez
2008-09-25 23:14 ` Pavel Roskin
2008-09-26 16:28 ` John W. Linville
2008-09-27 11:49 ` Hauke Mehrtens
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).