Bug 130163 - multiple configurations for wpa are interpreted partially wrong.
Summary: multiple configurations for wpa are interpreted partially wrong.
Status: VERIFIED FIXED
: 130164 (view as bug list)
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Mobile Devices (show other bugs)
Version: unspecified
Hardware: i386 SuSE Linux 10.0
: P5 - None : Critical
Target Milestone: ---
Assignee: Joachim Gleissner
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-22 18:48 UTC by Andreas Sexauer
Modified: 2007-06-05 10:04 UTC (History)
0 users

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


Attachments
fixed ifup-wireless (18.80 KB, text/plain)
2005-10-27 13:48 UTC, Joachim Gleissner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sexauer 2005-10-22 18:48:42 UTC
Using wpa with a usb wlan stick. Configured for first wpa network with yast.
Adding a second configuration with a text editor for a second wpa secured
network fails. 
It is possible to add additional params in the
/etc/syconfig/network/ifcfg-wlan-usb file in the form _1
these params get into the resulting /var/run/wpa_supplicant-wlan0.conf file
for the wpa-supplicant.
The parameter WIRELESS_WPA_PSK_1 from /etc/sysconfig/network get lost while the
script /etc/sysconfig/network/scripts/ipup-wireless generates the needed
wpa-supplicant configuration in  /var/run when you use the command ipup wlan0 to
activate the network.
What you get from that script are two network blocks in
/var/run/wpa_supplicant-wlan0.conf, all params (as far as I use them) getting
correct in multiple network blocks as needed. (Even for more than two of them)
But the only params that does not work are the WIRELESS_WPA_PSK and
WIRELESS_WPA_PSK_1. You get in the first network block the correct entry for the
value of WIRELESS_WPA_PSK and in the second network block the same value of
WIRELESS_WPA_PSK added a "_1" and not the value of WIRELESS_WPA_PSK_1.
Same for a third definition _2 you get the value of WIRELESS_WPA_PSK added a "_2".

Example for resulting wpa_supplicant-wlan0.conf file:

ctrl_interface=/var/run/wpa_supplicant
network={
  scan_ssid=1
  ssid="ssidnumberone"
  key_mgmt=WPA-PSK
  psk="mysecretpassword"
}
network={
  scan_ssid=1
  ssid="ssidnumbertwo"
  key_mgmt=WPA-PSK
  psk="mysecretpassword_1"
}
network={
  scan_ssid=1
  ssid="ssidnumberthree"
  key_mgmt=WPA-PSK
  psk="mysecretpassword_2"
}
tried to debug the /etc/sysconfig/network/scripts/ipup-wireless script, but
sorry that is beyond my knowledge of shell programming.

Greetings
Andreas
Comment 1 Andreas Sexauer 2005-10-23 06:01:15 UTC
*** Bug 130164 has been marked as a duplicate of this bug. ***
Comment 2 Dr. Werner Fink 2005-10-24 09:24:38 UTC
This is IMHO not a blocker.
Comment 3 Forgotten User ZhJd0F0L3x 2005-10-24 14:13:23 UTC
"Reassign bug to default assignee and QA contact of selected component"
Comment 4 Joachim Gleissner 2005-10-27 13:48:05 UTC
Created attachment 55711 [details]
fixed ifup-wireless

Could you test the attached ifup-wireless? Just copy to /etc/sysconfig/network/scripts.
Comment 5 Andreas Sexauer 2005-10-28 06:03:11 UTC
Thx,
fixed script now working like expected. Tried it with up to three different configured wpa networks. 
Comment 6 Joachim Gleissner 2005-11-18 15:18:25 UTC
Fixed and patchinfo submitted.