Lines Matching refs:reply
100 char reply[10], cmd[256];
118 memset(reply, 0, sizeof(reply));
119 reply_len = sizeof(reply) - 1;
122 wpagui->ctrlRequest("ADD_NETWORK", reply, &reply_len);
123 if (reply[0] == 'F') {
128 id = atoi(reply);
208 reply_len = sizeof(reply);
209 wpagui->ctrlRequest(cmd, reply, &reply_len);
210 if (strncmp(reply, "OK", 2) != 0) {
216 wpagui->ctrlRequest("SAVE_CONFIG", reply, &reply_len);
230 char reply[10], cmd[256];
234 reply_len = sizeof(reply);
235 wpagui->ctrlRequest(cmd, reply, &reply_len);
236 return strncmp(reply, "OK", 2) == 0 ? 0 : -1;
296 static int key_value_isset(const char *reply, size_t reply_len)
298 return reply_len > 0 && (reply_len < 4 || memcmp(reply, "FAIL", 4) != 0);
309 char reply[1024], cmd[256], *pos;
313 reply_len = sizeof(reply) - 1;
314 if (wpagui->ctrlRequest(cmd, reply, &reply_len) >= 0 && reply_len >= 2 &&
315 reply[0] == '"') {
316 reply[reply_len] = '\0';
317 pos = strchr(reply + 1, '"');
320 ssidEdit->setText(reply + 1);
324 reply_len = sizeof(reply) - 1;
325 if (wpagui->ctrlRequest(cmd, reply, &reply_len) >= 0 && reply_len >= 2 &&
326 reply[0] == '"') {
327 reply[reply_len] = '\0';
328 pos = strchr(reply + 1, '"');
331 idstrEdit->setText(reply + 1);
335 reply_len = sizeof(reply) - 1;
337 if (wpagui->ctrlRequest(cmd, reply, &reply_len) >= 0) {
338 reply[reply_len] = '\0';
339 if (strstr(reply, "RSN") || strstr(reply, "WPA2"))
341 else if (strstr(reply, "WPA"))
347 reply_len = sizeof(reply) - 1;
348 if (wpagui->ctrlRequest(cmd, reply, &reply_len) >= 0) {
349 reply[reply_len] = '\0';
350 if (strstr(reply, "WPA-EAP"))
352 else if (strstr(reply, "WPA-PSK"))
354 else if (strstr(reply, "IEEE8021X")) {
361 reply_len = sizeof(reply) - 1;
362 if (wpagui->ctrlRequest(cmd, reply, &reply_len) >= 0) {
363 reply[reply_len] = '\0';
364 if (strstr(reply, "CCMP") && auth != AUTH_NONE)
366 else if (strstr(reply, "TKIP"))
368 else if (strstr(reply, "WEP"))
375 reply_len = sizeof(reply) - 1;
376 res = wpagui->ctrlRequest(cmd, reply, &reply_len);
377 if (res >= 0 && reply_len >= 2 && reply[0] == '"') {
378 reply[reply_len] = '\0';
379 pos = strchr(reply + 1, '"');
382 pskEdit->setText(reply + 1);
383 } else if (res >= 0 && key_value_isset(reply, reply_len)) {
388 reply_len = sizeof(reply) - 1;
389 if (wpagui->ctrlRequest(cmd, reply, &reply_len) >= 0 && reply_len >= 2 &&
390 reply[0] == '"') {
391 reply[reply_len] = '\0';
392 pos = strchr(reply + 1, '"');
395 identityEdit->setText(reply + 1);
399 reply_len = sizeof(reply) - 1;
400 res = wpagui->ctrlRequest(cmd, reply, &reply_len);
402 reply[0] == '"') {
403 reply[reply_len] = '\0';
404 pos = strchr(reply + 1, '"');
407 passwordEdit->setText(reply + 1);
408 } else if (res >= 0 && key_value_isset(reply, reply_len)) {
413 reply_len = sizeof(reply) - 1;
414 if (wpagui->ctrlRequest(cmd, reply, &reply_len) >= 0 && reply_len >= 2 &&
415 reply[0] == '"') {
416 reply[reply_len] = '\0';
417 pos = strchr(reply + 1, '"');
420 cacertEdit->setText(reply + 1);
424 reply_len = sizeof(reply) - 1;
425 if (wpagui->ctrlRequest(cmd, reply, &reply_len) >= 0 && reply_len >= 1) {
426 reply[reply_len] = '\0';
428 if (eapSelect->text(i).compare(reply) == 0) {
453 reply_len = sizeof(reply) - 1;
454 res = wpagui->ctrlRequest(cmd, reply, &reply_len);
455 if (res >= 0 && reply_len >= 2 && reply[0] == '"') {
456 reply[reply_len] = '\0';
457 pos = strchr(reply + 1, '"');
463 wepEdit->setText(reply + 1);
464 } else if (res >= 0 && key_value_isset(reply, reply_len)) {
472 reply_len = sizeof(reply) - 1;
473 if (wpagui->ctrlRequest(cmd, reply, &reply_len) >= 0 && reply_len >= 1) {
474 reply[reply_len] = '\0';
475 switch (atoi(reply)) {
504 char reply[10], cmd[256];
514 reply_len = sizeof(reply);
515 wpagui->ctrlRequest(cmd, reply, &reply_len);
516 if (strncmp(reply, "OK", 2) != 0) {
522 wpagui->ctrlRequest("SAVE_CONFIG", reply, &reply_len);
538 char reply[256];
544 reply_len = sizeof(reply) - 1;
545 if (wpagui->ctrlRequest("GET_CAPABILITY eap", reply, &reply_len) < 0)
547 reply[reply_len] = '\0';
549 QString res(reply);