View previous topic :: View next topic |
Author |
Message |
lelik Tux's lil' helper
Joined: 26 May 2005 Posts: 81 Location: Treasure Island
|
Posted: Tue Jan 13, 2009 8:39 pm Post subject: Usb wlan only works after unplug / plug usb cable |
|
|
Using Linksys WUSB54GSv2 using drivers from stock kernel gentoo-sources-2.6.27-r7
Built all drivers as modules, and loaded usbnet, rndis_wlan, usbnet, cdc_ether and rndis_host,etc.
will see no device
will return nothing as well.
Now, if I unplug usb cable and plug it back in, the device will be seen by the system and becomes fully operational.
I can bring it up
Associate with the wireless router
Code: | wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B |
and get an ip from dhcp server
Is there any way to automate it and assign to default level?
Or at least I can write a script and execute it on boot (put it to local).
But how to emulate plug /unplug of the usb cable? _________________ ... and the only thing that scares me is Keyser Söze |
|
Back to top |
|
|
mardicas Tux's lil' helper
Joined: 07 Jan 2008 Posts: 112 Location: Tallinn
|
Posted: Tue Jan 13, 2009 9:04 pm Post subject: |
|
|
What happens if you just reload the modules?
modprobe -r bahbah
modprobe bahbah _________________ http://mardicas.dyndns.org |
|
Back to top |
|
|
lelik Tux's lil' helper
Joined: 26 May 2005 Posts: 81 Location: Treasure Island
|
Posted: Thu Jan 15, 2009 2:11 am Post subject: |
|
|
Code: | modprobe -r usbnet
FATAL: Module usbnet is in use |
and
Code: | ifconfig wlan0 up
wlan0: ERROR while getting interface flags: No such device |
after plug /unplug
brings wlan0 up _________________ ... and the only thing that scares me is Keyser Söze |
|
Back to top |
|
|
mardicas Tux's lil' helper
Joined: 07 Jan 2008 Posts: 112 Location: Tallinn
|
Posted: Wed Jan 21, 2009 2:53 pm Post subject: |
|
|
Weird. Can you force the module unload? modprobe -rf or something like that.
And make sure to ifconfig wlan0 down and /etc/init.d/net.wlan0 stop _________________ http://mardicas.dyndns.org |
|
Back to top |
|
|
lelik Tux's lil' helper
Joined: 26 May 2005 Posts: 81 Location: Treasure Island
|
Posted: Thu Jan 22, 2009 9:23 pm Post subject: |
|
|
Same error
Code: | modprobe -rf usbnet
FATAL: Module usbnet is in use |
_________________ ... and the only thing that scares me is Keyser Söze |
|
Back to top |
|
|
mardicas Tux's lil' helper
Joined: 07 Jan 2008 Posts: 112 Location: Tallinn
|
Posted: Sat Jan 24, 2009 3:53 pm Post subject: |
|
|
What is the result of:
Code: |
lsmod | grep usbnet |
Wonder why the module in use is...maybe it is used by another module? _________________ http://mardicas.dyndns.org |
|
Back to top |
|
|
|