Code:
[root@localhost sbin]# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

sit0      no wireless extensions.

wlan0     IEEE 802.11g  ESSID:"linksys_SES_22074"  Nickname:"localhost"
          Mode:Managed  Frequency:2.447 GHz  Access Point: 00:13:10:FD:89:06
          Bit Rate=54 Mb/s   Tx-Power:32 dBm
          RTS thr=2347 B   Fragment thr=2346 B
          Encryption key:off
          Power Management:off
          Link Quality:100/100  Signal level:-42 dBm  Noise level:-256 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

[root@localhost sbin]# iwconfig wlan0 essid linksys_SES_22074
[root@localhost sbin]# iwconfig wlan0 key s:"xxxxxxxxx"
Error for wireless request "Set Encode" (8B2A) :
    SET failed on device wlan0 ; Invalid argument.
So as you can see when i run iwconfig it has my encryption set to off, when it try to do any thing with the iwconfig wlan0 key I get any error. Any suggestions would be greatly apprectiated
-thanx matt