Bug 156389 - NetworkManager: Problems connecting to AP
Summary: NetworkManager: Problems connecting to AP
Status: VERIFIED FIXED
: 156409 (view as bug list)
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Network (show other bugs)
Version: Beta 6
Hardware: i686 SuSE Linux 10.1
: P5 - None : Normal (vote)
Target Milestone: RC 1
Assignee: Timo Hoenig
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-09 10:33 UTC by Stefan Arndt
Modified: 2007-06-05 09:57 UTC (History)
1 user (show)

See Also:
Found By: Component Test
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Output of hwinfo --wlan (1.28 KB, text/plain)
2006-03-09 13:37 UTC, Stefan Arndt
Details
Output of ifconfig (1.28 KB, text/plain)
2006-03-09 13:38 UTC, Stefan Arndt
Details
NetworkManager Log File (35.80 KB, text/plain)
2006-03-09 13:40 UTC, Stefan Arndt
Details
nm-tool output (1.29 KB, text/plain)
2006-03-13 17:55 UTC, Stefan Arndt
Details
NetworkManager logfile, starting with proposed version. (10.29 KB, application/octet-stream)
2006-03-13 17:56 UTC, Stefan Arndt
Details
KNetworkManager dialog, showing wrong options (53.16 KB, image/png)
2006-03-13 17:58 UTC, Stefan Arndt
Details
KNetworkManager dialog, showing correct options (50.91 KB, image/png)
2006-03-13 17:59 UTC, Stefan Arndt
Details
trace of knetworkmanager crash (3.48 KB, text/plain)
2006-03-14 11:35 UTC, Stefan Arndt
Details
Output of nm-tool (1.06 KB, text/plain)
2006-03-14 11:36 UTC, Stefan Arndt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Arndt 2006-03-09 10:33:45 UTC
Hello,

I experienced the following problems with when trying to use (K?)NetworkManager to use wireless internet.

First, I use the packages from Beta6 and I am able to connect
to my AP with NetworkManager.

Sometimes, my access point simply do not appear on the list of
knetworkmanager, sometimes there are wireless networks shown
without a single ESSID. Here, usually restarting NetworkManager
helps. 
Looking through the other NetworkManager Bugreports, I found
recommondations to update
NetworkManager (to 0.6.0cvs20060306). The result was no wireless
networks were shown in KNetworkManager, even though nm-tool
listed all available networks. (I updated KNetworkmanager as well,
but it was the same version as in beta6)

Another point I want to make is that when the initial
attempt to connect to my access point fails, I get
the Knetworkmanager dialog to connect to other wireless network,
but the wrong one.

My knetworkmanagerrc is as follows:
ESSID=Egal
Encryption=WEP
HardwareAddresses=00:....
Timestamp=2006,3,8,23,51,42
Trusted=true
WEPMethod=OpenSystem
WEPType=ASCII

Furthermore I am a bit confused that it is possible at this point
to make my encryption key visible. I know that the key is stored
in kwallet but here I need to have the password. I think
a possible wrong encryption key must only be corrected in kwallet.

I hope I did not reopen known bugs.
Regards

Stefan Arndt

WEPType=ASCII
Comment 1 Michael Gross 2006-03-09 12:21:00 UTC
Please attach:

/var/log/NetworkManager
`hwinfo --wlan'
`ifconfig'
Comment 2 Michael Gross 2006-03-09 12:44:32 UTC
*** Bug 156409 has been marked as a duplicate of this bug. ***
Comment 3 Stefan Arndt 2006-03-09 13:37:40 UTC
Created attachment 71978 [details]
Output of hwinfo --wlan
Comment 4 Stefan Arndt 2006-03-09 13:38:42 UTC
Created attachment 71979 [details]
Output of ifconfig
Comment 5 Stefan Arndt 2006-03-09 13:40:27 UTC
Created attachment 71980 [details]
NetworkManager Log File
Comment 6 Timo Hoenig 2006-03-13 15:34:59 UTC
(In reply to comment #0)

> NetworkManager (to 0.6.0cvs20060306). The result was no wireless
> networks were shown in KNetworkManager, even though nm-tool
> listed all available networks. (I updated KNetworkmanager as well,
> but it was the same version as in beta6)

Can you please try with nm-applet (NetworkManager-gnome) and report whether it shows the same behaviour?

> Another point I want to make is that when the initial
> attempt to connect to my access point fails, I get
> the Knetworkmanager dialog to connect to other wireless network,
> but the wrong one.

Please define "wrong one".  Wrong encryption scheme?  I have fixed a couple of bugs with regard to this.  RPMs are available at:

http://nouse.net/projects/KNetworkManager/NetworkManager-kde-0.1r5842-1.i586.rpm
http://nouse.net/projects/KNetworkManager/NetworkManager-kde-0.1r5842-1.src.rpm
http://nouse.net/projects/KNetworkManager/NetworkManager-kde-debuginfo-0.1r5842-1.i586.rpm
 
Prior using the new version of KNetworkManager I advise you to delete knetworkmanagerrc.  You can also delete the already stored secrets for networks using kwalletmanager.
Comment 7 Stefan Arndt 2006-03-13 17:53:44 UTC
I have attached a couple of information regarding your questions.

Unfortunately, installing
http://nouse.net/projects/KNetworkManager/NetworkManager-kde-0.1r5842-1.i586.rpm
leaves the system unusuable because KNetworkManager cannot find a single wireless AP.
nm-tool (output attached) gives the correct information.
The NetworkManager log file is attached as well.

Furthermore attached are two screenshots of KNetworkManager connect dialog.

Do I need to start gnome for nm-applet?
gnome is not installed on my system, starting nm-applet from within a shell under
kde does not work.

Comment 8 Stefan Arndt 2006-03-13 17:55:38 UTC
Created attachment 72625 [details]
nm-tool output
Comment 9 Stefan Arndt 2006-03-13 17:56:53 UTC
Created attachment 72626 [details]
NetworkManager logfile, starting with proposed version.
Comment 10 Stefan Arndt 2006-03-13 17:58:10 UTC
Created attachment 72627 [details]
KNetworkManager dialog, showing wrong options
Comment 11 Stefan Arndt 2006-03-13 17:59:10 UTC
Created attachment 72628 [details]
KNetworkManager dialog, showing correct options
Comment 12 Timo Hoenig 2006-03-13 18:55:56 UTC
Ah, sorry, you also need to update NetworkManager in order to use this version of KNetworkManager.  Packages are available at:

http://primates.ximian.com/~rml/misc/NetworkManager/

Could you please let me know if this helps?  Thanks!
Comment 13 Stefan Arndt 2006-03-13 20:40:19 UTC
It looks like it works. But I experience a weird problem. nm-tool as well as KNetworkManager
do not give me my AP, ESSID Egal.

Wireless Networks (* = Current Network)
    orion:           Infrastructure Mode, Freq 0.000 MHz, Rate 0 Mb/s, Strength 33%, Encrypted (WEP)
    WLAN:            Infrastructure Mode, Freq 0.000 MHz, Rate 0 Mb/s, Strength 33%
    LindeVX8:        Infrastructure Mode, Freq 0.000 MHz, Rate 0 Mb/s, Strength 50%, Encrypted (WEP)
    ALICE-WLAN:      Infrastructure Mode, Freq 0.000 MHz, Rate 0 Mb/s, Strength 33%, Encrypted (WEP)
    Ohana:           Infrastructure Mode, Freq 0.000 MHz, Rate 0 Mb/s, Strength 29%, Encrypted (WPA)

Using connect to other network it connects to Egal, but Egal is shown with zeo strength and
as hidden, which it is not.

 Wireless Networks (* = Current Network)
    orion:           Infrastructure Mode, Freq 0.000 MHz, Rate 0 Mb/s, Strength 33%, Encrypted (WEP)
    WLAN:            Infrastructure Mode, Freq 0.000 MHz, Rate 0 Mb/s, Strength 33%
    LindeVX8:        Infrastructure Mode, Freq 0.000 MHz, Rate 0 Mb/s, Strength 50%, Encrypted (WEP)
    ALICE-WLAN:      Infrastructure Mode, Freq 0.000 MHz, Rate 0 Mb/s, Strength 33%, Encrypted (WEP)
    Ohana:           Infrastructure Mode, Freq 0.000 MHz, Rate 0 Mb/s, Strength 29%, Encrypted (WPA)
    *Egal:           Infrastructure Mode, Freq 0.000 MHz, Rate 0 Mb/s, Strength 0%, Encrypted (WEP), Hidden

I am currently working with KNetworkManager indicating zero strength.
Comment 14 Timo Hoenig 2006-03-14 08:30:27 UTC
(In reply to comment #13)
> It looks like it works.

Good.

> But I experience a weird problem. nm-tool as well as KNetworkManager do not 
> give me my AP, ESSID Egal.



> Using connect to other network it connects to Egal, but Egal is shown with zeo
> strength and as hidden, which it is not.

This is strange.  I've never seen that before.

Does the network show up after rebooting the system?
Comment 15 Stefan Arndt 2006-03-14 11:32:42 UTC
I looked a bit further into it.
First, I managed to crash KNetworkManager.
A trace is attached. I did it by using connect to other networks and just
fill in my AP's ESSID (Egal) and pressing connect.

Furthermore I have attached a nm-tool output again because
at first nm-tool showed again my AP uses hidden ESSID,
running nm-tool 10s later, all was correct.
(I noticed that KnetworkManagers systray icon changed from white to blue,
indicating full strength)
Comment 16 Stefan Arndt 2006-03-14 11:35:51 UTC
Created attachment 72745 [details]
trace of knetworkmanager crash
Comment 17 Stefan Arndt 2006-03-14 11:36:33 UTC
Created attachment 72746 [details]
Output of nm-tool
Comment 18 Timo Hoenig 2006-03-14 11:57:31 UTC
(In reply to comment #16)

> Created an attachment (id=72745) [edit]
> trace of knetworkmanager crash

Could not reproduce this.  Can you reproduce it?

Other than that I see things being working as expected?  Signal strength is being reported correctly and also the network isn't marked as hidden anymore.

Comment 19 Stefan Arndt 2006-03-14 17:24:19 UTC
I could reproduce the crash.
After reboot, KNetworkManager could not see my ESSID.
Dialog connect to other wireless network, typing Egal (my ESSID)
and return, for a couple of seconds I see a message box, then the KDE crah manager.

Well, things work as expected, at least kind of.

Restarting KNetworkManager after the crash gave me my ESSID.
Selecting Egal from the list of networks did not work, although Egal 
is setup in knetworkmanagerrc and the encryption key is stored in kwallet.

Next step was to use the dialog connect to other .... .
After manually entering the encryption key, the message box got up to
57% . After a while I got the connect to other ... dialog again.
Select the proper encrytion method the message box got up to 57%
again, gave me the dialog connect to other ..., after pressing return the knetworkmanager
disappeared from the systray, then reappeared as not connected.
Now I could select Egal from the network list and all worked.

To me it looks like that knetworkmanager has problems when it takes
a while (e.g. after switching on the AP) to connect to the AP.

Regarding your question if the network appears after rebooting (comment #14) 
I experienced no difference wether I reboot or not or wether the AP was switched on
before rebooting or switched on while or after rebooting.
Comment 20 Timo Hoenig 2006-03-20 13:05:57 UTC
Stefan, do you still see the crash with Beta 8?  Otherwise, I'd consider this one as fixed.
Comment 21 Stefan Arndt 2006-03-22 19:20:35 UTC
Running beta8 I have not experienced a crash.
I still do have the problem of knetworkmanager sometimes not showing ESSIDs.
 
Comment 22 Timo Hoenig 2006-03-22 19:28:00 UTC
Thanks for the update.

From now on I'm refusing to show networks for which KNetworkManager did not receive ESSIDs.  I'll upload RPMs for SVN r5927 in a couple of minutes.  Would be nice if you could give them a try.
Comment 23 Timo Hoenig 2006-03-22 19:39:29 UTC
Here they are: http://nouse.net/projects/KNetworkManager/

Please let me know if this version works for you.

Thanks!
Comment 24 Stefan Arndt 2006-03-23 22:39:05 UTC
I have installed it. So far it looks good. I will keep you informed if I experience
problems.

Thanks a lot!

Stefan
Comment 25 Timo Hoenig 2006-03-24 10:03:26 UTC
Excellent news!

Closing as fixed.