Hi.

I have ndiswrapper up and running for my card. Here is a scan of the AP i want to connect to-

Code:
Saturn conf.d # iwlist wlan0 scanning
wlan0     Scan completed :
          Cell 01 - Address: 00:18:39:5B:C7:85
                    ESSID:"WorRouter"
                    Protocol:IEEE 802.11g
                    Mode:Managed
                    Frequency:2.462 GHz (Channel 11)
                    Quality:0/100  Signal level:-39 dBm  Noise level:-256 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
                              6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
Here is my /etc/conf.d/net

Code:
modules=( "wpa_supplicant" )
wpa_supplicant_wlan0="-Dndiswrapper -iwlan0"

config_WLAN=( "dhcp" )
dhcpd_WLAN=" -t 10"
And here is my /etc/wpa_supplicant.conf:

Code:
# The below line not be changed otherwise we refuse to work
ctrl_interface=/var/run/wpa_supplicant

# Ensure that only root can read the WPA configuration
ctrl_interface_group=0

# Let wpa_supplicant take care of scanning and AP selection
ap_scan=1

network={
  ssid="WorRouter"
  psk="XXXXXXX"
  # The higher the priority the sooner we are matched
  priority=5
}
If i run:

Code:
Saturn opt # wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
Trying to associate with 00:18:39:5b:c7:85 (SSID='WorRouter' freq=2462 MHz)
Associated with 00:18:39:5b:c7:85
Authentication with 00:18:39:5b:c7:85 timed out.
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Do my configuration files look ok? Im using -Dwext in the last example as ive been told Dndiswrapper is no longer supported.

Thanks

<edit> Ive now cahnged my wpa config to:

Code:
# The below line not be changed otherwise we refuse to work
ctrl_interface=/var/run/wpa_supplicant

# Ensure that only root can read the WPA configuration
ctrl_interface_group=0

# Let wpa_supplicant take care of scanning and AP selection
ap_scan=1

network={
  ssid="WorRouter"
  scan_ssid=1
   proto=WPA
   key_mgmt=WPA-PSK
  psk="XXXXXX"
  # The higher the priority the sooner we are matched
  #priority=5
}
Which produces -

Code:
 Saturn jammin # wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
WPA: No assoc_wpa_ie set - cannot generate msg 2/4
WPA: No assoc_wpa_ie set - cannot generate msg 2/4
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
WPA: No assoc_wpa_ie set - cannot generate msg 2/4
WPA: No assoc_wpa_ie set - cannot generate msg 2/4
WPA: No assoc_wpa_ie set - cannot generate msg 2/4
ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
WPA: No assoc_wpa_ie set - cannot generate msg 2/4
WPA: No assoc_wpa_ie set - cannot generate msg 2/4
WPA: No assoc_wpa_ie set - cannot generate msg 2/4

[1]+  Stopped                 wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
Even if i change it back to how it was and reboot, same thing