private fork
Fork of GSwifiInterface by
Diff: GSwifi/GSwifi_msg.cpp
- Revision:
- 13:189e04ac70bd
- Parent:
- 12:057089026a20
- Child:
- 14:1e89a3f0282d
diff -r 057089026a20 -r 189e04ac70bd GSwifi/GSwifi_msg.cpp --- a/GSwifi/GSwifi_msg.cpp Fri Nov 22 14:03:07 2013 +0000 +++ b/GSwifi/GSwifi_msg.cpp Tue Nov 26 09:06:35 2013 +0000 @@ -242,7 +242,7 @@ } #define MSG_TABLE_NUM 15 -#define RES_TABLE_NUM 10 +#define RES_TABLE_NUM 11 int GSwifi::parseMessage () { int i; char buf[256]; @@ -272,6 +272,7 @@ } res_table[RES_TABLE_NUM] = { {RES_NULL, NULL}, {RES_CONNECT, &GSwifi::resConnect}, + {RES_WPAPSK, &GSwifi::resWpapsk}, {RES_WPS, &GSwifi::resWps}, {RES_MACADDRESS, &GSwifi::resMacAddress}, {RES_DHCP, &GSwifi::resIp}, @@ -424,6 +425,13 @@ } } +void GSwifi::resWpapsk (const char *buf) { + if (strncmp(buf, "Computing PSK from SSID and PassPhrase", 38) == 0) { + _state.res = RES_NULL; + DBG("wpapsk\r\n"); + } +} + void GSwifi::resWps (const char *buf) { if (_state.n == 0 && strncmp(buf, "SSID", 4) == 0) { strncpy(_state.ssid, &buf[5], sizeof(_state.ssid));