[Bug 537708] New: wpa_supplicant seems to ignore an country=DE setting its config
ctrl_interface=/var/run/wpa_supplicant country=DE network={ scan_ssid=1 ssid="SSSSSSSSS" key_mgmt=WPA-PSK
http://bugzilla.novell.com/show_bug.cgi?id=537708 User mt@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=537708#c305301 Summary: wpa_supplicant seems to ignore an country=DE setting its config Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mt@novell.com QAContact: qa@suse.de Found By: --- It looks like, that the wpa_supplicant (-Dwext) in factory ignores an country=DE setting in its config, e.g.: psk="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" } <<< When I set the regulatory domain using "iw reg set DE", it works fine; I can see the event in "udevadm monitor --environment kernel" output: KERNEL[1252495972.399814] change /devices/platform/regulatory.0 (platform) UDEV_LOG=3 ACTION=change DEVPATH=/devices/platform/regulatory.0 SUBSYSTEM=platform COUNTRY=DE MODALIAS=platform:regulatory SEQNUM=1400 and "iw reg get" shows the proper "country DE" setting after. When I set it in the config and start wpa_supplicant, there is no such event visible and iw reg get query does not show the new setting. BTW: A sysconfig using/setting the country is in Base:System/sysconfig only at the moment. See also fate#305301. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=537708
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=537708
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=537708
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537708#c1
--- Comment #1 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=537708
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537708#c2
--- Comment #2 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=537708
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537708#c3
--- Comment #3 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=537708
User vbotka@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537708#c4
Vladimir Botka
Vladimir,
I'd say we need a "iw reg set" call in case the driver is not one that supports it / one of the above... What do you say?
Marius, Part of the project [1] is also a wpa_supplicant with -Dnl80211. This unified extension will solve this problem. I can see the wpa_supplicant to use the new extension in Factory [2], but to test the crda I need more time. Adding Jan Matejek to the CC who is the maintainer of the python-m2crypto. We need this package to build crda package. [1] http://linuxwireless.org/en/developers/Documentation/nl80211 [2] # wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlan0 -dd -Dnl80211 Initializing interface 'wlan0' conf '/etc/wpa_supplicant/wpa_supplicant.conf' driver 'nl80211' ctrl_interface 'N/A' bridge 'N/A' Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -> '/etc/wpa_supplicant/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' country='CZ' -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=537708
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537708#c5
--- Comment #5 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=537708
User vbotka@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537708#c6
--- Comment #6 from Vladimir Botka
OK. The nl80211 driver and crda were working fine for me in my test today, see attached output in comment 2.
The question is, if it is safe to switch from 'wext' to the new 'nl80211'.
I have tested the nl80211 with Factory and Intel 5100. For iwlagn it works. I would suggest that you switch the script to nl80211 at least for the Intel cards (iwl*) and we will fix it on the fly if something goes wrong and people report problems. I put [1] into your script, but "./ifup-wireless wlan0" did not start wpa_supplicant. I was not able to run it out of the box so please tell me how do you intend to use the ifup-wireless . I have tested the nl82011 by setting the AP via iwconfig, started wpa_supplicant and dhcpcd from command-line. [1] < iwlagn) < WPA_DRIVER=nl80211 < ;; -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=537708
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537708#c7
--- Comment #7 from Marius Tomaschewski
(In reply to comment #5)
OK. The nl80211 driver and crda were working fine for me in my test today, see attached output in comment 2.
The question is, if it is safe to switch from 'wext' to the new 'nl80211'.
I have tested the nl80211 with Factory and Intel 5100. For iwlagn it works. I would suggest that you switch the script to nl80211 at least for the Intel cards (iwl*) and we will fix it on the fly if something goes wrong and people report problems.
I put [1] into your script, but "./ifup-wireless wlan0" did not start wpa_supplicant. I was not able to run it out of the box so please tell me how do you intend to use the ifup-wireless.
Just call "yast2 network" and configure the wireless interface there. The ifup-wireless script is a script called via "ifup","ifdown" and "ifstatus" and "rcnetwork" in traditional mode (NETWORKMANAGER=no).
I have tested the nl82011 by setting the AP via iwconfig, started wpa_supplicant and dhcpcd from command-line.
[1] < iwlagn) < WPA_DRIVER=nl80211 < ;;
OK, then let's collect it a little bit. For me ath5k works fine too. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=537708
User vbotka@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537708#c8
Vladimir Botka
Just call "yast2 network" and configure the wireless interface there.
I have added the WIRELESS_REGULATORY_DOMAIN="CZ" into the /etc/sysconfig/network/config. When I bring the inteface up I receive messages: wlan0 device: Intel Corporation Wireless WiFi Link 5100 wlan0 starting wpa_supplicant Failed to set interface wlan0 mode Could not configure driver to use managed mode wlan0 IP address: 192.168.102.14/24 The wpa_supplicant is running: wpa_supplicant -iwlan0 -c/var/run/wpa_supplicant-wlan0.conf -Dnl80211 -P/var/run/wpa_supplicant/wlan0.pid -B But the regulatory domain is not set: # iw reg get country 00: If I put country=CZ into the /etc/wpa_supplicant/wpa_supplicant.conf and start the wpa_supplicant manualy: wpa_supplicant -iwlan0 -Dnl80211 -dddt -c/etc/wpa_supplicant/wpa_supplicant.conf Then the regulatory domain is set: # iw reg get country CZ: I have tested with the sysconfig 0.72.3-1.1 . Because this is sysconfig issue now I would like to assign it to you, Marius. Is it OK ? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=537708
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537708#c9
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=537708
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537708#c10
--- Comment #10 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=537708
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537708#c11
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=537708
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=537708#c12
--- Comment #12 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=537708
http://bugzilla.novell.com/show_bug.cgi?id=537708#c13
--- Comment #13 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=537708
http://bugzilla.novell.com/show_bug.cgi?id=537708#c14
--- Comment #14 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com