maximum allowed for both ID and password are 20 characters.
I'm sure a 20 character password is enough to connect to most WiFi networks and my 63 character password is ridiculously long but I think there is valid argument for saying that a bit more than 20 is required if you want the best security possible.