Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Usb wlan only works after unplug / plug usb cable
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lelik
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2005
Posts: 81
Location: Treasure Island

PostPosted: Tue Jan 13, 2009 8:39 pm    Post subject: Usb wlan only works after unplug / plug usb cable Reply with quote

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.
Code:
lsusb -vv

will see no device
Code:
iwconfig

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
Code:
ifconfig wlan0 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
Code:
dhcpcd wlan0


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
View user's profile Send private message
mardicas
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2008
Posts: 112
Location: Tallinn

PostPosted: Tue Jan 13, 2009 9:04 pm    Post subject: Reply with quote

What happens if you just reload the modules?

modprobe -r bahbah
modprobe bahbah
_________________
http://mardicas.dyndns.org
Back to top
View user's profile Send private message
lelik
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2005
Posts: 81
Location: Treasure Island

PostPosted: Thu Jan 15, 2009 2:11 am    Post subject: Reply with quote

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
Code:
ifconfig wlan0 up

brings wlan0 up
_________________
... and the only thing that scares me is Keyser Söze
Back to top
View user's profile Send private message
mardicas
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2008
Posts: 112
Location: Tallinn

PostPosted: Wed Jan 21, 2009 2:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
lelik
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2005
Posts: 81
Location: Treasure Island

PostPosted: Thu Jan 22, 2009 9:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
mardicas
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2008
Posts: 112
Location: Tallinn

PostPosted: Sat Jan 24, 2009 3:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum