LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-28-2010, 10:32 AM   #1
Unforgiven79
Member
 
Registered: May 2006
Location: Italy
Distribution: FC5, Suse 10
Posts: 70

Rep: Reputation: 15
Broadcome wireless network spottly accesses my WPA-protected network


Hello.

All through this (and others) forum I have read just so many threads about the WAP/Broadcom issues. Basically, the latter will not access, but my case is slightly different.

My system DOES connect the protected w-network via Gnome Network Manager, but only after several attempts (sometime at 1st-2nd attempt, sometime after tens of attempts I just grow tired and give up ...).
By means of WiCD (which, on its side never makes it) I have discovered that the problem is not on the security stage, but while receiving the IP address from the DHCP server.

(It also happen to drop connection relatively easily (compared to Win), but this I guess is a secondary problem)

I use Sabayon Linux on an HP Pavillion, with obvious Broadcom w-network (eth1). I use a w-bridge to extend the newtork availability from a Netgear router. No issue is reported with wireless when using Win.

Other data:
Quote:
xabaras alessandro # uname -r
2.6.31-sabayon
xabaras alessandro # lspci | grep Broa
02:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g (rev 01)
xabaras alessandro # ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:23:8b:81:ee:b3
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:32 Base address:0xa000

eth1 Link encap:Ethernet HWaddr 00:21:00:ad:6f:19
inet addr:192.168.0.4 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::221:ff:fead:6f19/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2157147 errors:0 dropped:0 overruns:0 frame:1567143
TX packets:2091668 errors:14537 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1631082061 (1.5 GiB) TX bytes:510576178 (486.9 MiB)
Interrupt:16

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3680 errors:0 dropped:0 overruns:0 frame:0
TX packets:3680 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:188997 (184.5 KiB) TX bytes:188997 (184.5 KiB)

pan0 Link encap:Ethernet HWaddr ce:1d:62:d1:36:c3
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Have you please got any clue?
Thank you
 
Old 03-29-2010, 03:30 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,373

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
I have the same kit. Broadcom 4312 in a HP laptop (HP Compaq 6715S) If you type in iwconfig wlan0 at any point while connected, you can see signal strength. If you're disconnected, iwlist wlan0 scan |less
does show it also.

Find out what level you disconnect at, and I'll try to duplicate here. You could have plenty of noise, or a competing wifi link on the same channel. It may be as simple as changing modem channel. You may do better to set up with iw-tools on bopotup, instead of using network manager - it is a royal PITA sometimes.
 
Old 03-30-2010, 05:46 PM   #3
Unforgiven79
Member
 
Registered: May 2006
Location: Italy
Distribution: FC5, Suse 10
Posts: 70

Original Poster
Rep: Reputation: 15
While disconnected (tonight there was really now way to get connection...) :

Quote:



xabaras alessandro # iwlist eth1 scan
eth1 Scan completed :
Cell 01 - Address: 00:22:3F:56:74:28
ESSID:"Pian Family Wireless Network"
Mode:Managed
Frequency:2.412 GHz (Channel 1)
Quality:1/5 Signal level:-89 dBm Noise level:-92 dBm
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
IE: Unknown: DD710050F204104A00011010440001021041000100103B00010310470010000102030405060708090A0B0C0D0EBB10210007 44474E323030301023000744474E323030301024000631323334353610420004313233341054000800060050F20400011011 000744474E32303030100800020088
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : CCMP TKIP
Authentication Suites (1) : PSK
Encryption keyn
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Cell 02 - Address: 00:22:B0:B1:0A0
ESSID:"Pian Family Wireless Network"
Mode:Managed
Frequency:2.412 GHz (Channel 1)
Quality:3/5 Signal level:-68 dBm Noise level:-92 dBm
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Encryption keyn
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
One more thing: please also consider that, before protecting my network with WPA, there was no issue at all even with Linux...
 
Old 03-31-2010, 03:46 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,373

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Ok. 2 wirweless sources? Are you going from one to the other?

I would check /etc/wpa_supplicant/wpa_supplicant.conf and make sure you have both cells and both keys in there, as well as all the protocols pask,tkip, ccmp

The best kept secret in this is wpa_passphrase. Run that (Man wpa_passphrase), and put the output in as your key.
 
Old 03-31-2010, 07:30 AM   #5
Unforgiven79
Member
 
Registered: May 2006
Location: Italy
Distribution: FC5, Suse 10
Posts: 70

Original Poster
Rep: Reputation: 15
No, it was a mess I must have made with Network Manager.
Due to frustration, I had made an attempt my manually setting my Wireless network ("Pian Family Wireless Network"); NM must have added it to the one already automatically recognized, so it actually is the same one doubled.
 
Old 03-31-2010, 05:25 PM   #6
Unforgiven79
Member
 
Registered: May 2006
Location: Italy
Distribution: FC5, Suse 10
Posts: 70

Original Poster
Rep: Reputation: 15
Well, I have checked it out... and /etc/wpa_supplicant/wpa_supplicant.conf does not even exist.
The only thing present into the above directory is a script: wpa_cli.sh
 
Old 03-31-2010, 06:14 PM   #7
Unforgiven79
Member
 
Registered: May 2006
Location: Italy
Distribution: FC5, Suse 10
Posts: 70

Original Poster
Rep: Reputation: 15
One more thing: now that I am being connected and navigating, I can produce some more output.
Quote:
xabaras / # iwconfig eth1
eth1 IEEE 802.11bg ESSID:"Pian Family Wireless Network" Nickname:""
Mode:Managed Frequency:2.412 GHz Access Point: 00:22:3F:56:74:28
Bit Rate=1 Mb/s Tx-Power:32 dBm
Retry min limit:7 RTS thrff Fragment thrff
Power Managementmode:All packets received
 
Old 04-01-2010, 03:13 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,373

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
On wpa_supplicant.conf, Slcakware puts it in /etc, Fedora in /etc/wpa_supplicant. Your friend is
man wpa_supplicant.conf
But you are connected. The first rule in my business (hardware) is
"If it ain't broke, don't fix it!"
 
Old 04-01-2010, 05:47 AM   #9
Unforgiven79
Member
 
Registered: May 2006
Location: Italy
Distribution: FC5, Suse 10
Posts: 70

Original Poster
Rep: Reputation: 15
Thank you, I will inspect the man file as soon as I get back home.

Yes, I am connected, but as I mentioned above, my system takes several (frustrating) attempts before achieving that... last night, for instance, after 20 attempts it was still not able to get IP, so I grew fed up and went to sleep...
This is a sign that there must be a some systematic mistake in my settings, which makes my connection getting an IP correctly dependent on a random parameter that I cannot identify.

It is not possible that Win connects right away at start-up, and Linux shows these problems, on the same laptop!

Thank you for you assistance in the meantime.
 
Old 04-02-2010, 03:35 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,373

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Quote:
Originally Posted by Unforgiven79 View Post
Thank you, I will inspect the man file as soon as I get back home.

It is not possible that Win connects right away at start-up, and Linux shows these problems, on the same laptop!
Sadly, it is possible. But with proper configuration it's usually the other way around, and we all know about fixing windows.
 
Old 04-03-2010, 04:17 AM   #11
Unforgiven79
Member
 
Registered: May 2006
Location: Italy
Distribution: FC5, Suse 10
Posts: 70

Original Poster
Rep: Reputation: 15
So, two updates:

1) I have found out why two wireless seem present : since I am using a wireless bridge as range extender due to house walls, my laptop now reports the presence of the same network twice. One is the bridge signal (stronger), and the other is the DSL router signal (weaker).

2) I have gone through the wpa_supplicant.conf example file and man, and this is the file I have composed then:
Quote:
update_config=1
DIR=/var/run/wpa_supplicant GROUP=root
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
country=IT
dot11RSNAConfigPMKLifetime=43200
dot11RSNAConfigPMKReauthThreshold=70
dot11RSNAConfigSATimeout=30
device_name=Alessandro_s Wireless
manufacturer=Broadcom Corporation
model_name=BCM4312
device_type=1-0050F204-1
wps_cred_processing=0

network={
ssid="Pian Family Wireless Network"
scan_ssid=0
key_mgmt=WPA-PSK
psk="xxxxxxxxxxx"
mode=0
proto=WPA
auth_alg=OPEN
eapol_flags=0
mixed_cells=1
password="xxxxxxxxxx"
}
Now, hot to test it? Network Manager uses its own setup, the same for WiCD...

Thank you
 
Old 04-04-2010, 03:51 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,373

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Make sure you have run your key through wpa_passhphrase

wpa_passphrase Your_Essid Your_Key

It willo give you a totally different string, abnd use that in the conf.
To use it,

ifconfig wlan0 up
iwlist wlan0 scan |less. Then pick out your essid, and run a mouse over the mac address of the access point
iwconfig essid Your_Essid ap <paste mac address> ap

Iwconfig wlan0 should now show you the magic word 'associated'. You are now on the router

dhcpcd (or dhclient) wlan0 should not get an ip for wlan0

It of course helps if Network Manager or dhcp are not already running, as they think they know better and may screw thiongs up automagically for you.
 
  


Reply



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
Unsecured wireless network used instead of configured WPA network. SCVirus Ubuntu 3 05-15-2008 11:14 PM
I cannot connect to WEP-protected wireless network niklasfischer Linux - Wireless Networking 1 12-11-2006 04:16 AM
wireless network - WPA jaymoney Ubuntu 29 10-19-2006 10:08 AM
WPA on wireless network The Patbon Mandriva 10 03-16-2005 10:55 PM

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

All times are GMT -5. The time now is 03:02 PM.

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