If you can connect in the open mode, then your wireless device and wireless kernel module is working. This is good news because that is usually the hardest part. I'm using SuSE 10.1 so I apologize if my information is outdated.
You need to make sure that both the wireless-tools and wpa_supplicant packages are installed. You can install them in YaST2 using the software installer.
In YaST2 -> Network Devices -> Network Card, your first choice is whether to use ifup or NetworkManager. I prefer ifup because NetworkManager seems to work better with WEP rather than WPA-PSK. That may have changed with 10.2 so I'll let you decide which is your preference. Make your selection and click "Next"
On the following page, "Network Card Configuration Overview", select your wireless device in the list, and click on the edit button. Click on Automatic Address setup. This will cause the IP address, Gateway Address and DNS addresses to be supplied automatically by the modem. That saved a lot of work, didn't it!
Under Detailed settings, click on Hostname and Nameserver. Enter your computers hostname (not localhost please!!!). This is the same for all the network interfaces on the computer. This is just where this item ended up. Make sure that the "Update Name Servers and Search List" box is selected. This will supply your computer with the DNS address in /etc/resolv.conf. You need this to browse the web. Click the "OK" button.
If your modem includes a wireless NAT router, then you may access the internet through a local IP address such as 192.168.1.1. Check the routers documenation and if that is the case, enter that IP address in the "Default Gateway" line. Click "OK"
Click on the Hardware details. If you were using ndiswrapper, you might need to enter "ndiswrapper" in the module name line. However your device seems to be working so let's leave this line alone. Click "OK". Click "Next".
Here we finally get to the WPA configuration page. Select Operating Mode : Managed
Enter a name for your wireless network in "Network Name (ESSID)":
Under Authentication Mode, select "WPA-PSK"
For Key Input Type use the same type of key as the router uses and enter the same pre-shared-key as the modem uses. If the modem has a Local Ethernet port, then you may need to plug in directly to access the wireless configuration. It may use a web interface. I cut and pasted between my laptop and my wireless router to guarantee that the keys were identical. Be sure to make a the key vary hard.
I use this oneliner to generate a 64 hex digit random key to use:
Code:
dd if=/dev/random bs=32 count=1 2>/dev/null | od -t x2 | sed -e '3d' -e 's/^.\{8\}//' -e 's/ //g' | tr -d '\n' ; echo
You could cut and past it into "konsole" to print out your own random key. Then cut and paste it into the "Encryption Key" setting for both the interface and the modem.
Click on "Advanced". It is optional but you could enter your modems MAC address in the Access Point line. This will assure that you connect to the correct AP. ( Someone may use your essid to try to get your computer to authorize with their own AP. ) Good thing for WPA encryption. Click "OK" then click "Next".
Hopefully your encrypted wireless network is now working.