Wifly authorized when it's not

I have modified the transparent terminal code. My network is WPA2 so I have changed the ssid and pass phrase and saved them. Under program control it reboots and joins the default successfully. The program sends a ‘show c’ and gets ‘8a33’ as expected. Now, to test authorization, I change the saved pass phrase and run again but ‘show c’ still returns 8a33 The program tests bit 5 (auth = 1) and thinks it’s connected. Then a short time later the terminal displays ‘Disconn from ssidname, AUTH-ERR’ four times. If I manually send a ‘show c’ it returns 8a03 indicating authorization failed, as it should. I have tried adding delays before and after the ‘show c’ but nothing seems to work. It always sends a 8a33 right after joining whether or not authentication fails. What am I missing?

btw, the red and yellow LEDS on my shield are swapped relative to the GSX user manual.

Here’s what the terminal shows:

15:10:20.683 [RX] - SPI UART on WiFly Shield terminal tool<CR><LF>
--------------------------------------<CR><LF>
Attempting to connect to SPI UART...<CR><LF>
Connected to SPI UART.<CR><LF>
Exit CMD Mode<CR><LF>
Entering command mode.<CR><LF>
Rebooting<CR><LF>
Entering command mode.<CR><LF>
Joining.<CR><LF>
show c 8a33<CR><LF>
<2.21> <CR><LF>
<CR><LF>
Authorized!<CR><LF>
Assigned IP: 192.168.1.103<CR><LF>
EXIT<CR><LF>
Disconn from apollo13,AUTH-ERR<CR><LF>
Disconn from apollo13,AUTH-ERR<CR><LF>
Disconn from apollo13,AUTH-ERR<CR><LF>

15:11:00.339 [TX] - $$
15:11:00.794 [RX] - CMD<CR><LF>

15:11:03.250 [TX] - show c<CR><LF>

15:11:05.873 [RX] - 8a03<CR><LF>
<2.21> <CR><LF>