return pos - buf;
pos += ret;
}
+
+ switch (ssid->mode) {
+ case 0:
+ ret = os_snprintf(pos, end - pos,
+ "mode=station\n");
+ break;
+ case 1:
+ ret = os_snprintf(pos, end - pos,
+ "mode=IBSS\n");
+ break;
+ case 2:
+ ret = os_snprintf(pos, end - pos,
+ "mode=AP\n");
+ break;
+ default:
+ ret = 0;
+ break;
+ }
+ if (ret < 0 || ret >= end - pos)
+ return pos - buf;
+ pos += ret;
}
#ifdef CONFIG_AP
bool bssid_updated = false, ipaddr_updated = false;
bool status_updated = false;
char *pairwise_cipher = NULL, *group_cipher = NULL;
+ char *mode = NULL;
start = buf;
while (*start) {
pairwise_cipher = pos;
} else if (strcmp(start, "group_cipher") == 0) {
group_cipher = pos;
+ } else if (strcmp(start, "mode") == 0) {
+ mode = pos;
}
}
break;
start = end + 1;
}
+ if (status_updated && mode)
+ textStatus->setText(textStatus->text() + " (" + mode + ")");
if (pairwise_cipher || group_cipher) {
QString encr;