WiFi RS21 driver maximum password length issue

Hi all,
I just got my fantastic FEZ Spider and I started playing with the WiFi module.
When I try to join my access point with my 33 pwd len I get an IndexOutOfRangeException so I did several tests without getting through.
I then tried looping with a dummy password with len 1 to 40 and I noticed that after raising an exception (invalid password of course) for passwords of len 1 to 32 from 33 on the driver immediately triggers an index out of range exception (what a luck, just one more char :frowning: )
Is this a known issue? I guess the maximum pwd len for WPA2 is 64.
Is there any way to go around this? (I would like to avoid going around and change the password in all my devices…)

Sorry if someone already documented this, I could not find any doc.

Bye

Here is my exception stack trace:

Testing with pwd of len:32 - aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
#### Exception System.Exception - 0x00000000 (1) ####
#### Message:
#### GHIElectronics.NETMF.Net.RS21Driver::Join [IP: 0032] ####
#### GHIElectronics.NETMF.Net.WiFi::Join [IP: 0082] ####
#### Gadgeteer.Modules.GHIElectronics.WiFi_RS21::Join [IP: 0008] ####
#### GadgeteerApp1.Program::ProgramStarted [IP: 00e4] ####
#### GadgeteerApp1.Program::Main [IP: 0015] ####
#### Exception GHIElectronics.NETMF.Net.WiFi+WiFiException - 0x00000000 (1) ####
#### Message:
#### GHIElectronics.NETMF.Net.WiFi::Join [IP: 00ce] ####
#### Gadgeteer.Modules.GHIElectronics.WiFi_RS21::Join [IP: 0008] ####
#### GadgeteerApp1.Program::ProgramStarted [IP: 00e4] ####
#### GadgeteerApp1.Program::Main [IP: 0015] ####
A first chance exception of type ‘GHIElectronics.NETMF.Net.WiFi.WiFiException’ occurred in GHIElectronics.NETMF.Net.dll
Exception GHIElectronics.NETMF.Net.WiFi+WiFiException
Testing with pwd of len:33 - aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
#### Exception System.IndexOutOfRangeException - 0xa9000000 (1) ####
#### Message:
#### GHIElectronics.NETMF.Net.RS21Driver::JoinRequest [IP: 0000] ####
#### GHIElectronics.NETMF.Net.RS21Driver::Join [IP: 0017] ####
#### GHIElectronics.NETMF.Net.WiFi::Join [IP: 0082] ####
#### Gadgeteer.Modules.GHIElectronics.WiFi_RS21::Join [IP: 0008] ####
#### GadgeteerApp1.Program::ProgramStarted [IP: 00e4] ####
#### GadgeteerApp1.Program::Main [IP: 0015] ####
#### Exception GHIElectronics.NETMF.Net.WiFi+WiFiException - 0x00000000 (1) ####
#### Message:
#### GHIElectronics.NETMF.Net.WiFi::Join [IP: 00ce] ####
#### Gadgeteer.Modules.GHIElectronics.WiFi_RS21::Join [IP: 0008] ####
#### GadgeteerApp1.Program::ProgramStarted [IP: 00e4] ####
#### GadgeteerApp1.Program::Main [IP: 0015] ####

32bytes(char) is the maximum length for a password

@ Joe is is limitation of the wifi module or our drivers are set this way?

And @ chieg welcome to the community

Thank you for the quick answer.
I’ll change my AP password then :slight_smile:

It is the wifi module