To get started, make sure that the Ndiswrapper driver works normally, without encryption. Create the /etc/wpa_supplicant.conf file, and insert the following lines into it by changing the ssid and psk values.
ctrl_interface=/var/run/wpa_supplicant network={ ssid="SSID-ulTauWIFI" psk="ParolaTaWiFi" key_mgmt=WPA-PSK proto=WPA pairwise=TKIP }
Test the connection. Make sure your router transmits its SSID.
sudo wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf -dd
If WPA works to load it with the system run
gksudo gedit /etc/network/interfaces
Change the wlan0 section With the following lines:
If you have a static address:
auto wlan0 iface wlan0 inet static address 192.168.1.20 netmask 255.255.255.0 gateway 192.168.1.1 pre-up wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf post-down killall -q wpa_supplicant
or the following lines if you get an address via DHCP.
auto wlan0 iface wlan0 inet dhcp pre-up wpa_supplicant -Bw -Dwext -iwlan0 -c/etc/wpa_supplicant.conf post-down killall -q wpa_supplicant
Restart the system