Bug 130163

Summary: multiple configurations for wpa are interpreted partially wrong.
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Andreas Sexauer <andreas.sexauer+novell>
Component: Mobile DevicesAssignee: Joachim Gleissner <joachim.gleissner>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None    
Version: unspecified   
Target Milestone: ---   
Hardware: i386   
OS: SuSE Linux 10.0   
Whiteboard:
Found By: Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: fixed ifup-wireless

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.