mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* w35und driver unusable
@ 2009-03-17  4:41 luoyi
  2009-03-17  6:07 ` Pekka Enberg
  0 siblings, 1 reply; 7+ messages in thread
From: luoyi @ 2009-03-17  4:41 UTC (permalink / raw)
  To: linux-kernel

hello, I'm trying to run Slackware-current on my AMTEK T700 UMPC box. and from:

http://ubuntuforums.org/showthread.php?t=664458

I know that the my box's wifi is WinBound's products.

I'm currently running kernel 2.6.28.7 now and have modprobed w35und.
and I also have a linksys usb wireless card on the USB port.

Now, the situation is Linksys's card can just work well. and the
Winbound card can't .

wlan1 is the WinBound card:

root@t700:~# dmesg |grep wlan1
udev: renamed network interface wlan0 to wlan1
ADDRCONF(NETDEV_UP): wlan1: link is not ready

root@t700:~# iwlist wlan1 scan
wlan1     No scan results

root@t700:~# iwlist wlan0 scan
wlan0     Scan completed :
         Cell 01 - Address: 00:1B:FC:7E:57:51
                   ESSID:"default"
                   Mode:Master
                   Channel:5
                   Frequency:2.432 GHz (Channel 5)
                   Quality=56/100  Signal level:-22 dBm
                   Encryption key:off
                   IE: Unknown: 000764656661756C74
                   IE: Unknown: 010882848B968C929824
                   IE: Unknown: 030105
                   IE: Unknown: 0406000200000000
                   IE: Unknown: 2A0100
                   IE: Unknown: 3204B048606C
                   Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                             9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                             48 Mb/s; 54 Mb/s
                   Extra:tsf=00000035772ec17e
                   Extra: Last beacon: 52ms ago

does this mean that the winbound drivers in the kernel tree is not
ready for use ? or do we have any idea for make it work ?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: w35und driver unusable
  2009-03-17  4:41 w35und driver unusable luoyi
@ 2009-03-17  6:07 ` Pekka Enberg
  2009-03-17  9:03   ` Pavel Machek
  0 siblings, 1 reply; 7+ messages in thread
From: Pekka Enberg @ 2009-03-17  6:07 UTC (permalink / raw)
  To: luoyi; +Cc: linux-kernel, Pavel Machek, Greg KH

On Mon, Mar 16, 2009 at 9:41 PM, luoyi <luoyi.ly@gmail.com> wrote:
> hello, I'm trying to run Slackware-current on my AMTEK T700 UMPC box. and from:
>
> http://ubuntuforums.org/showthread.php?t=664458
>
> I know that the my box's wifi is WinBound's products.
>
> I'm currently running kernel 2.6.28.7 now and have modprobed w35und.
> and I also have a linksys usb wireless card on the USB port.
>
> Now, the situation is Linksys's card can just work well. and the
> Winbound card can't .
>
> wlan1 is the WinBound card:
>
> root@t700:~# dmesg |grep wlan1
> udev: renamed network interface wlan0 to wlan1
> ADDRCONF(NETDEV_UP): wlan1: link is not ready
>
> root@t700:~# iwlist wlan1 scan
> wlan1     No scan results
>
> root@t700:~# iwlist wlan0 scan
> wlan0     Scan completed :
>         Cell 01 - Address: 00:1B:FC:7E:57:51
>                   ESSID:"default"
>                   Mode:Master
>                   Channel:5
>                   Frequency:2.432 GHz (Channel 5)
>                   Quality=56/100  Signal level:-22 dBm
>                   Encryption key:off
>                   IE: Unknown: 000764656661756C74
>                   IE: Unknown: 010882848B968C929824
>                   IE: Unknown: 030105
>                   IE: Unknown: 0406000200000000
>                   IE: Unknown: 2A0100
>                   IE: Unknown: 3204B048606C
>                   Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
>                             9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
>                             48 Mb/s; 54 Mb/s
>                   Extra:tsf=00000035772ec17e
>                   Extra: Last beacon: 52ms ago
>
> does this mean that the winbound drivers in the kernel tree is not
> ready for use ? or do we have any idea for make it work ?

The driver is known to be broken in 2.6.28. You might want to try out
2.6.29-rc8 which carries fixes for the driver. Note that the driver is
in the staging directory which means it is not of production quality.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: w35und driver unusable
  2009-03-17  6:07 ` Pekka Enberg
@ 2009-03-17  9:03   ` Pavel Machek
  2009-03-17 12:43     ` luoyi
  0 siblings, 1 reply; 7+ messages in thread
From: Pavel Machek @ 2009-03-17  9:03 UTC (permalink / raw)
  To: Pekka Enberg; +Cc: luoyi, linux-kernel, Greg KH

Hi!

> > http://ubuntuforums.org/showthread.php?t=664458
> >
> > I know that the my box's wifi is WinBound's products.
> >
> > I'm currently running kernel 2.6.28.7 now and have modprobed w35und.
> > and I also have a linksys usb wireless card on the USB port.
> >
> > Now, the situation is Linksys's card can just work well. and the
> > Winbound card can't .
> >
> > wlan1 is the WinBound card:
> >
> > root@t700:~# dmesg |grep wlan1
> > udev: renamed network interface wlan0 to wlan1
> > ADDRCONF(NETDEV_UP): wlan1: link is not ready
> >
> > root@t700:~# iwlist wlan1 scan
> > wlan1     No scan results
> >
> > root@t700:~# iwlist wlan0 scan
> > wlan0     Scan completed :
> >         Cell 01 - Address: 00:1B:FC:7E:57:51
> >                   ESSID:"default"
> >                   Mode:Master
> >                   Channel:5
> >                   Frequency:2.432 GHz (Channel 5)
> >                   Quality=56/100  Signal level:-22 dBm
> >                   Encryption key:off
> >                   IE: Unknown: 000764656661756C74
> >                   IE: Unknown: 010882848B968C929824
> >                   IE: Unknown: 030105
> >                   IE: Unknown: 0406000200000000
> >                   IE: Unknown: 2A0100
> >                   IE: Unknown: 3204B048606C
> >                   Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
> >                             9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
> >                             48 Mb/s; 54 Mb/s
> >                   Extra:tsf=00000035772ec17e
> >                   Extra: Last beacon: 52ms ago
> >
> > does this mean that the winbound drivers in the kernel tree is not
> > ready for use ? or do we have any idea for make it work ?

> The driver is known to be broken in 2.6.28. You might want to try out
> 2.6.29-rc8 which carries fixes for the driver. Note that the driver is
> in the staging directory which means it is not of production quality.

Winbond driver only supports channel 1, for now.
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: w35und driver unusable
  2009-03-17  9:03   ` Pavel Machek
@ 2009-03-17 12:43     ` luoyi
  2009-03-17 16:38       ` Pekka Enberg
       [not found]       ` <84144f020903170940nf76d905t43bfa497bd5fe6d5@mail.gmail.com>
  0 siblings, 2 replies; 7+ messages in thread
From: luoyi @ 2009-03-17 12:43 UTC (permalink / raw)
  To: Pavel Machek; +Cc: Pekka Enberg, linux-kernel, Greg KH

Wow,  thanks for your advice. and I can get it work now after I set my
wireless AP's channel to 1 and mode to "b/g auto".

3 problems:

1. it can only work with 802.11b mode

2. rmmod w35und
   modprobe w35und
   Kernel Panic

3. after it get IP address with dhcpcd, if I execute iwlist scan, then
it will lose the connection and never restore again, the only way make
it work again is to restart my computer.






2009/3/17 Pavel Machek <pavel@ucw.cz>:

>
> Winbond driver only supports channel 1, for now.
>                                                                        Pavel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: w35und driver unusable
  2009-03-17 12:43     ` luoyi
@ 2009-03-17 16:38       ` Pekka Enberg
       [not found]       ` <84144f020903170940nf76d905t43bfa497bd5fe6d5@mail.gmail.com>
  1 sibling, 0 replies; 7+ messages in thread
From: Pekka Enberg @ 2009-03-17 16:38 UTC (permalink / raw)
  To: luoyi; +Cc: Pavel Machek, linux-kernel, Greg KH, Sandro Bonazzola

Hi!

On Tue, Mar 17, 2009 at 5:43 AM, luoyi <luoyi.ly@gmail.com> wrote:
> 2. rmmod w35und
>   modprobe w35und
>   Kernel Panic

Can you please post the exact oops so we can figure out what is going
on? Sandro, can you see this as well?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: w35und driver unusable
       [not found]       ` <84144f020903170940nf76d905t43bfa497bd5fe6d5@mail.gmail.com>
@ 2009-03-18 14:22         ` luoyi
  2009-03-23  8:20           ` Pekka Enberg
  0 siblings, 1 reply; 7+ messages in thread
From: luoyi @ 2009-03-18 14:22 UTC (permalink / raw)
  To: Pekka Enberg; +Cc: Pavel Machek, linux-kernel

just rmmod and modprobe it will trigger the oops.

I've just upload a oops snapshot picture onto flickr:

http://www.flickr.com/photos/21260339@N03/3364812089/

hope it will help for you.

2009/3/18 Pekka Enberg <penberg@cs.helsinki.fi>:
> Hi!
>
> (off-list)
>
> On Tue, Mar 17, 2009 at 5:43 AM, luoyi <luoyi.ly@gmail.com> wrote:
>> Wow,  thanks for your advice. and I can get it work now after I set my
>> wireless AP's channel to 1 and mode to "b/g auto".
>>
>> 3 problems:
>>
>> 1. it can only work with 802.11b mode
>>
>> 2. rmmod w35und
>>   modprobe w35und
>>   Kernel Panic
>>
>> 3. after it get IP address with dhcpcd, if I execute iwlist scan, then
>> it will lose the connection and never restore again, the only way make
>> it work again is to restart my computer.
>
> Just to let you know, I am traveling right now and dont have my laptop
> with me. I wont be able to look at the issues until next week but
> please do post the oops as requested in the other email so other
> people can take a look at it meanwhile.
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: w35und driver unusable
  2009-03-18 14:22         ` luoyi
@ 2009-03-23  8:20           ` Pekka Enberg
  0 siblings, 0 replies; 7+ messages in thread
From: Pekka Enberg @ 2009-03-23  8:20 UTC (permalink / raw)
  To: luoyi; +Cc: Pavel Machek, linux-kernel

Hi!

On Wed, 2009-03-18 at 22:22 +0800, luoyi wrote:
> just rmmod and modprobe it will trigger the oops.
> 
> I've just upload a oops snapshot picture onto flickr:
> 
> http://www.flickr.com/photos/21260339@N03/3364812089/
> 
> hope it will help for you.

Can you try this patch, please?

>From 727c633f7ac374261752b269ee77c007bd55a527 Mon Sep 17 00:00:00 2001
From: Pekka Enberg <penberg@cs.helsinki.fi>
Date: Mon, 23 Mar 2009 10:17:36 +0200
Subject: [PATCH] w35und: unregister device from the ieee80211 stack upon ->disconnect()

This patch fixes an oops when the w35und module is removed from the kernel and
added back.

Reported-by: luoyi <luoyi.ly@gmail.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
---
 drivers/staging/winbond/wbusb.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/winbond/wbusb.c b/drivers/staging/winbond/wbusb.c
index f716b2e..7a7aa9a 100644
--- a/drivers/staging/winbond/wbusb.c
+++ b/drivers/staging/winbond/wbusb.c
@@ -386,7 +386,7 @@ static int wb35_probe(struct usb_interface *intf, const struct usb_device_id *id
 	if (err)
 		goto error_free_hw;
 
-	usb_set_intfdata(intf, priv);
+	usb_set_intfdata(intf, dev);
 
 	return 0;
 
@@ -415,10 +415,15 @@ static void wb35_hw_halt(struct wbsoft_priv *adapter)
 
 static void wb35_disconnect(struct usb_interface *intf)
 {
-	struct wbsoft_priv *priv = usb_get_intfdata(intf);
+	struct ieee80211_hw *hw = usb_get_intfdata(intf);
+	struct wbsoft_priv *priv = hw->priv;
 
 	wb35_hw_halt(priv);
 
+	ieee80211_stop_queues(hw);
+	ieee80211_unregister_hw(hw);
+	ieee80211_free_hw(hw);
+
 	usb_set_intfdata(intf, NULL);
 	usb_put_dev(interface_to_usbdev(intf));
 }
-- 
1.5.4.3




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-03-23  8:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-17  4:41 w35und driver unusable luoyi
2009-03-17  6:07 ` Pekka Enberg
2009-03-17  9:03   ` Pavel Machek
2009-03-17 12:43     ` luoyi
2009-03-17 16:38       ` Pekka Enberg
     [not found]       ` <84144f020903170940nf76d905t43bfa497bd5fe6d5@mail.gmail.com>
2009-03-18 14:22         ` luoyi
2009-03-23  8:20           ` Pekka Enberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome