Bug 131117 - random changes of wlan essid to "any"
Summary: random changes of wlan essid to "any"
Status: RESOLVED WONTFIX
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Network (show other bugs)
Version: Final
Hardware: Other Other
: P5 - None : Critical
Target Milestone: ---
Assignee: Chris Lahey
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-27 19:38 UTC by Stanislav Brabec
Modified: 2005-12-19 20:58 UTC (History)
0 users

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


Attachments
y2log.bz2 (40.54 KB, application/x-bzip2)
2005-10-31 19:30 UTC, Stanislav Brabec
Details
/etc/sysconfig/network/ifcfg-wlan-id-00:60:b3:6b:d3:c5 (665 bytes, text/plain)
2005-11-28 19:57 UTC, Stanislav Brabec
Details
/etc/sysconfig/network/ifcfg-wlan-id-00:60:b3:6b:d3:c5 (666 bytes, text/plain)
2005-11-28 20:00 UTC, Stanislav Brabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Brabec 2005-10-27 19:38:10 UTC
How to repoproduce:

1. Configure wlan0 in YaST2.
2. Manually change /etc/sysconfig/network/ifcfg-wlan-id-* WIRELESS_ESSID="any" to name of preferred ESSID (there is no GUI tool to set it - see bug 118765).
3. Test - wireless works.
4. Add new sound card (in my case it was hotplugged usb0).
5. Configure new card in YaST2 network configuration.

Actual result: Your WIRELESS_ESSID is lost. Wireless connects to bad AP.

Expected result: Do not reset wireless configuration while adding usb0.
Comment 1 Michael Gross 2005-10-28 13:03:35 UTC
Martin and Ladislav: Can you take care of that, please?
Comment 2 Martin Vidner 2005-10-31 09:35:25 UTC
Always, always attach the logs, please.
http://www.opensuse.org/Bug_Reporting_FAQ#YaST

Anyway, that other bug makes me wonder: did you use yast2 sysconfig in step 1 instead of yast2 lan? If yes, why?
Comment 3 Stanislav Brabec 2005-10-31 19:30:45 UTC
Created attachment 56033 [details]
y2log.bz2
Comment 4 Ladislav Slezák 2005-11-01 06:23:15 UTC
I think that the sound configuration is not related to the ESSID problem at all.
ESSID is probably changed by the network module.
Comment 5 Stanislav Brabec 2005-11-01 14:40:50 UTC
Sorry for typo - usb0 was not a sound card, but network card.

< 4. Add new sound card (in my case it was hotplugged usb0).
> 4. Add new network card (in my case it was hotplugged usb0).
Comment 6 Martin Vidner 2005-11-03 15:26:20 UTC
(Sound is not involved, so removing Lada.)

The log shows (grep ESSID) that WIRELESS_ESSID in ifcfg-wlan-* was always set to either "wia" or "any", never "". And if you had it set on any, no wonder it could connect to a different AP.

A possible problem *might* be that after changing the essid in yast, iwconfig could not pass it to the driver. But that is only my guess.
Can you reproduce and describe the problem in more detail? Check the ifcfg contents and iwconfig output after yast runs.
Comment 7 Stanislav Brabec 2005-11-11 23:21:43 UTC
I cannot reproduce. It is possible, that this change was not done by YaST, but by netapplet. But I cannot reproduce this with netapplet anyway.
Comment 8 Stanislav Brabec 2005-11-28 19:55:47 UTC
Reopening. The overwrite ocurred after use of kismet or after subsequent rcnetwork restart.

# ls -al --full-time /etc/sysconfig/network/ifcfg-wlan*
-rw-r--r--    1 root root   665 2005-11-23 10:02:27.000000000 +0100 /etc/sysconfig/network/ifcfg-wlan-id-00:60:b3:6b:d3:c5

/var/log/messages:
Nov 23 10:02:08 utx kernel: device wlan0 entered promiscuous mode
Nov 23 10:02:21 utx SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
Nov 23 10:02:21 utx SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Nov 23 10:02:22 utx SuSEfirewall2: batch committing...
Nov 23 10:02:22 utx SuSEfirewall2: Firewall rules successfully set
Nov 23 10:02:23 utx syslog-ng[3663]: Changing permissions on special file /dev/xconsole
Nov 23 10:02:23 utx syslog-ng[3663]: Changing permissions on special file /dev/tty10
Nov 23 10:02:23 utx dhcpcd[4898]: terminating on signal 15
Nov 23 10:02:23 utx modify_resolvconf: restored /etc/resolv.conf.saved.by.dhcpcd.wlan0 to /etc/resolv.conf
Nov 23 10:02:24 utx kernel: device wlan0 left promiscuous mode
Nov 23 10:02:24 utx kernel: wlan0: New link status: Disconnected (0002)
Nov 23 10:02:25 utx SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
Nov 23 10:02:25 utx SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Nov 23 10:02:25 utx SuSEfirewall2: batch committing...
Nov 23 10:02:25 utx SuSEfirewall2: Firewall rules successfully set
Nov 23 10:02:26 utx SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
Nov 23 10:02:26 utx SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Nov 23 10:02:26 utx SuSEfirewall2: batch committing...
Nov 23 10:02:26 utx SuSEfirewall2: Firewall rules successfully set
Nov 23 10:02:26 utx kernel: wlan0: New link status: Association Failed (0006)
Nov 23 10:02:26 utx SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
Nov 23 10:02:26 utx SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
Nov 23 10:02:27 utx SuSEfirewall2: batch committing...
Nov 23 10:02:27 utx SuSEfirewall2: Firewall rules successfully set
Nov 23 10:02:27 utx kernel: wlan0: New link status: Disconnected (0002)
Nov 23 10:02:28 utx kernel: wlan0: New link status: Connected (0001)

y2log does not contain any message in this time.
Comment 9 Stanislav Brabec 2005-11-28 19:57:51 UTC
Created attachment 58864 [details]
/etc/sysconfig/network/ifcfg-wlan-id-00:60:b3:6b:d3:c5

Overwritten file.
Comment 10 Stanislav Brabec 2005-11-28 20:00:44 UTC
Created attachment 58865 [details]
/etc/sysconfig/network/ifcfg-wlan-id-00:60:b3:6b:d3:c5

Previous version of this file restored from backup.
Comment 11 Martin Vidner 2005-11-29 08:53:06 UTC
I doubt that rcnetwork or kismet would overwrite an ifcfg, but let's have the maintainers confirm that.
I think that a way to find out the culprit is using lastcomm (acct.rpm), when the problem happens yet again.
Comment 12 Christian Zoz 2005-11-29 13:16:27 UTC
No script from sysconfig writes ifcfg-* files. But i remember net-applet which did. But afaik we don't have net-applet anymore (i'm not sure).

Marian, Kismet?
Comment 13 Marian Jancar 2005-11-29 13:55:00 UTC
kismet doesn't touch the ifcfg
Comment 14 JaDr. Tucny 2005-11-29 13:58:12 UTC
then try lastcomm
Comment 15 Stanislav Brabec 2005-12-08 10:38:01 UTC
It has nothing to do with kismet. It appeared again, probably in the moment, when provider have had a short outage.

It seems to be a "feature" of netapplet. At least I am able to find string '"any"' in the sources.

Reassigning to maintainer.

Increasing to Critical. In some situations it causes network breakage and loss of mails.
Comment 16 JP Rosevear 2005-12-19 17:51:00 UTC
Robert, is netapplet really overwriting the config file?
Comment 17 Robert Love 2005-12-19 18:14:57 UTC
Yes, that is its MO.  It generates the config files and then runs ifup.
Comment 18 JP Rosevear 2005-12-19 20:58:49 UTC
The purpose of netapplet is to make it easy to switch between wired and various wireless networks.  If multiple networks are available, it connects to the strongest signal (of course you can change the connection).

Network Manager is much smarter and connects only to 'trusted' networks and uses the most recently used trusted network if there are multiple available so that after an initial selection you should never get this.  This should solve the problem going forward.