Browse Source

wpa_gui-qt4: Handle UNKNOWN COMMAND reply during peer window update

Avoid an infinite loop if wpa_supplicant is not built with AP support.
Jouni Malinen 15 years ago
parent
commit
acd8ba74c0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      wpa_supplicant/wpa_gui-qt4/peers.cpp

+ 2 - 1
wpa_supplicant/wpa_gui-qt4/peers.cpp

@@ -145,7 +145,8 @@ void Peers::update_peers()
 		while (*txt != '\0' && *txt != '\n')
 			txt++;
 		*txt++ = '\0';
-		if (strncmp(reply, "FAIL", 4) == 0)
+		if (strncmp(reply, "FAIL", 4) == 0 ||
+		    strncmp(reply, "UNKNOWN", 7) == 0)
 			break;
 
 		QStringList lines = info.split(QRegExp("\\n"));