LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 01-17-2007, 11:04 PM   #1
pajamabama
LQ Newbie
 
Registered: Jan 2006
Location: Golden, CO
Distribution: Sabayon 3.26 x64
Posts: 28

Rep: Reputation: 15
Command line to bring up wlan0?


For some reason wlan0 is not fully activated when my system boots up. It's a Broadcom 4310 running via ndiswrapper.

KNetworkManager lists all available wifi networks, so the thing is clearly working. But it won't actually connect to one. It gets to 28% 'Configuring Device' and just stops.

KWifiManager on the other hand, will connect. I select a network, give it the root password, and all's well. After this, KNetworkManager also works normally. So clearly KWifiManager is doing some final stage of activation.

So my question is, does anyone know what that extra activation step that wifimgr does is? And how I might go about doing that from a script that runs a boot time?

Thanks.
 
Old 01-17-2007, 11:10 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
What type of encryption are you using. If it is wpa-psk, you could run as root:
wpa_cli [-p<path to ctrl sockets>] [-i<ifname>]
On my system, this would be
sudo wpa_cli -p/var/run/wpa_supplicant -iwlan0

From the cli you can monitor the association process, or scan for networks and try to reassociate manually. It might give a clue what the problem is, but my guess is that you need to check the values for ssid or that the key matches the APs key.
 
Old 01-17-2007, 11:15 PM   #3
pajamabama
LQ Newbie
 
Registered: Jan 2006
Location: Golden, CO
Distribution: Sabayon 3.26 x64
Posts: 28

Original Poster
Rep: Reputation: 15
thanks for the quick reply.

It's actually an unsecured network. no WPA or encryption or anything. We haven't even gotten around to changing the ssid from the default 'linksys'. I know, it's a bad idea, but it's my housemate's thing, and he's repsonsible for it.

anyway, I'll give your suggestion a look. thanks.
 
Old 01-17-2007, 11:25 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
I'm not familiar with your distribution. In suse, you can configure the device in YaST. This creates the file /etc/sysconfig/network/ifcfg-wlan0 which defines variable values used by the startup scripts ifup-wlan0, etal, that SuSE runs. You may want to find a similar program or file, because I think that there is entry that is off. Given that you aren't using encryption, you might try using iwconfig to manually set the essid, frequency and other variables to match the network. You can get this information from "sudo /usr/sbin/iwlist wlan0 scan" if your device is named wlan0.

If you can change one of the wifi parameters to get it to work, then go back and change it in your configuration. Then maybe kwifimanager will be able to connect next time.

Until the latest version, kwifimanager didn't support wpa encryption, so I never used it.

Last edited by jschiwal; 01-17-2007 at 11:50 PM.
 
Old 01-17-2007, 11:32 PM   #5
pajamabama
LQ Newbie
 
Registered: Jan 2006
Location: Golden, CO
Distribution: Sabayon 3.26 x64
Posts: 28

Original Poster
Rep: Reputation: 15
I used suse a long time. I miss it, especially yast. but it's not really stable on this new laptop. sabayon is a gentoo-based distro. actually pretty well built and configured.

I'm not exactly sure where the wlan0 configuration is stored. I'll look on the gentoo wiki or something and see if I can adjust any values. That's actually a pretty good idea.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to bring my printer on line........ Ryan L. Brown Linux - Hardware 1 11-18-2005 11:48 PM
hostap doesnt bring up wlan0 chuck2 Linux - Wireless Networking 2 10-29-2005 02:58 PM
Cannot bring up wlan0 device JayBox Linux - Wireless Networking 6 05-31-2005 03:59 PM
Failed to bring up wlan0 jon_k Linux - Software 2 12-31-2004 05:56 PM
Bring 'up' wlan0 Haon Linux - Wireless Networking 1 02-21-2004 04:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 04:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration