Just finished getting the wep key from aircrack but I keep seeing this error when I try to use the key.

I have tried the following commands:

# iwconfig ath0 mode managed key 40:EF:CC:26:34
Error for wireless request "Set Mode" (8B06) :
SET failed on device ath0 ; Invalid argument.

Then I tried destroying the ath0 thinking that might be the problem:
# wlanconfig ath0 destroy

# iwconfig wifi0 mode managed key 40:EF:CC:26:34
Error for wireless request "Set Mode" (8B06) :
SET failed on device wifi0 ; Invalid argument.

Same issue.

# iwconfig
lo no wireless extensions.

wifi0 no wireless extensions.

eth0 no wireless extensions.

I searched google but everyone claims its a driver issue and I know thats not the reason because I am able to connect to OPN ap's without a problem. I searched this forum but this question has not been answered.

Any ideas?