Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching full:pos2

937 		const char *pos2 = os_strstr(pos, " " #str "="); \
938 if (pos2) { \
939 pos2 += sizeof(" " #str "=") - 1; \
940 freq_params.str = atoi(pos2); \
1504 char *pos, *pos2;
1519 pos2 = os_strchr(pos, ' ');
1520 if (pos2)
1521 *pos2++ = '\0';
1527 os_strcmp(pos, "WPS-CR") == 0, pos2);
1552 char *pos, *role, *type, *pos2;
1581 pos2 = os_strchr(pos, ' ');
1582 if (pos2 == NULL) {
1586 *pos2++ = '\0';
1606 len = os_strlen(pos2);
1620 if (hexstr2bin(pos2, wpabuf_put(sel, len), len) < 0) {
5424 char *pos, *pos2;
5462 pos2 = os_strstr(pos, " persistent=");
5463 if (pos2) {
5465 persistent_id = atoi(pos2 + 12);
5483 pos2 = os_strstr(pos, " go_intent=");
5484 if (pos2) {
5485 pos2 += 11;
5486 go_intent = atoi(pos2);
5491 pos2 = os_strstr(pos, " freq=");
5492 if (pos2) {
5493 pos2 += 6;
5494 freq = atoi(pos2);
5499 pos2 = os_strstr(pos, " freq2=");
5500 if (pos2)
5501 freq2 = atoi(pos2 + 7);
5503 pos2 = os_strstr(pos, " max_oper_chwidth=");
5504 if (pos2)
5505 chwidth = atoi(pos2 + 18);
5511 pos2 = os_strstr(pos, " ssid=");
5512 if (pos2) {
5515 pos2 += 6;
5516 end = os_strchr(pos2, ' ');
5518 group_ssid_len = os_strlen(pos2) / 2;
5520 group_ssid_len = (end - pos2) / 2;
5522 hexstr2bin(pos2, _group_ssid, group_ssid_len) < 0)
5739 char *pos, *pos2;
5757 pos2 = os_strchr(pos, ' ');
5758 if (pos2 == NULL)
5760 *pos2++ = '\0';
5763 len = os_strlen(pos2);
5770 if (hexstr2bin(pos2, wpabuf_put(resp_tlvs, len), len) < 0) {
6693 char *pos, *pos2;
6703 pos2 = os_strchr(pos, ' ');
6704 if (pos2)
6705 *pos2++ = '\0';
6708 pos2 = NULL;
6710 if (pos2) {
6711 pos = os_strchr(pos2, ' ');
6715 dur2 = atoi(pos2);
7890 char *pos, *pos2;
7906 pos2 = os_strstr(pos, "freq=");
7907 if (pos2)
7908 freq = atoi(pos2 + 5);
7910 pos2 = os_strstr(pos, "timeout=");
7911 if (pos2)
7912 ework->timeout = atoi(pos2 + 8);
9420 char *pos, *pos2, *end;
9445 pos2 = pos;
9446 ret = os_snprintf(pos2, end - pos2, MACSTR " ",
9448 if (os_snprintf_error(end - pos2, ret))
9450 pos2 += ret;
9452 pos2 += wpa_snprintf_hex(pos2, end - pos2, entry->pmkid,
9455 ret = os_snprintf(pos2, end - pos2, " ");
9456 if (os_snprintf_error(end - pos2, ret))
9458 pos2 += ret;
9460 pos2 += wpa_snprintf_hex(pos2, end - pos2, entry->pmk,
9463 ret = os_snprintf(pos2, end - pos2, " %d %d %d %d",
9468 if (os_snprintf_error(end - pos2, ret))
9470 pos2 += ret;
9473 ret = os_snprintf(pos2, end - pos2, " %02x%02x",
9476 if (os_snprintf_error(end - pos2, ret))
9478 pos2 += ret;
9481 ret = os_snprintf(pos2, end - pos2, "\n");
9482 if (os_snprintf_error(end - pos2, ret))
9484 pos2 += ret;
9486 pos = pos2;
9498 char *pos, *pos2;
9539 pos2 = os_strchr(pos, ' ');
9540 if (!pos2)
9542 entry->pmk_len = (pos2 - pos) / 2;