Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:pos

303 		const char *pos;
307 pos = os_strrchr(value, '"');
308 if (pos)
309 len = pos - value;
436 char *buf, *pos, *end;
438 pos = buf = os_zalloc(10);
444 ret = os_snprintf(pos, end - pos, "%sWPA", first ? "" : " ");
445 if (ret < 0 || ret >= end - pos)
447 pos += ret;
452 ret = os_snprintf(pos, end - pos, "%sRSN", first ? "" : " ");
453 if (ret < 0 || ret >= end - pos)
455 pos += ret;
546 char *buf, *pos, *end;
549 pos = buf = os_zalloc(50);
555 ret = os_snprintf(pos, end - pos, "%sWPA-PSK",
556 pos == buf ? "" : " ");
557 if (ret < 0 || ret >= end - pos) {
561 pos += ret;
565 ret = os_snprintf(pos, end - pos, "%sWPA-EAP",
566 pos == buf ? "" : " ");
567 if (ret < 0 || ret >= end - pos) {
571 pos += ret;
575 ret = os_snprintf(pos, end - pos, "%sIEEE8021X",
576 pos == buf ? "" : " ");
577 if (ret < 0 || ret >= end - pos) {
581 pos += ret;
585 ret = os_snprintf(pos, end - pos, "%sNONE",
586 pos == buf ? "" : " ");
587 if (ret < 0 || ret >= end - pos) {
591 pos += ret;
595 ret = os_snprintf(pos, end - pos, "%sWPA-NONE",
596 pos == buf ? "" : " ");
597 if (ret < 0 || ret >= end - pos) {
601 pos += ret;
606 pos += os_snprintf(pos, end - pos, "%sFT-PSK",
607 pos == buf ? "" : " ");
610 pos += os_snprintf(pos, end - pos, "%sFT-EAP",
611 pos == buf ? "" : " ");
616 pos += os_snprintf(pos, end - pos, "%sWPA-PSK-SHA256",
617 pos == buf ? "" : " ");
620 pos += os_snprintf(pos, end - pos, "%sWPA-EAP-SHA256",
621 pos == buf ? "" : " ");
626 pos += os_snprintf(pos, end - pos, "%sWPS",
627 pos == buf ? "" : " ");
783 char *buf, *pos, *end;
786 pos = buf = os_zalloc(30);
792 ret = os_snprintf(pos, end - pos, "%sOPEN",
793 pos == buf ? "" : " ");
794 if (ret < 0 || ret >= end - pos) {
798 pos += ret;
802 ret = os_snprintf(pos, end - pos, "%sSHARED",
803 pos == buf ? "" : " ");
804 if (ret < 0 || ret >= end - pos) {
808 pos += ret;
812 ret = os_snprintf(pos, end - pos, "%sLEAP",
813 pos == buf ? "" : " ");
814 if (ret < 0 || ret >= end - pos) {
818 pos += ret;
830 const char *pos;
838 pos = value;
839 while (pos) {
840 while (*pos == ' ')
841 pos++;
856 freqs[used] = atoi(pos);
860 pos = os_strchr(pos + 1, ' ');
903 char *buf, *pos, *end;
914 pos = buf = os_zalloc(10 * count + 1);
920 ret = os_snprintf(pos, end - pos, "%s%u",
922 if (ret < 0 || ret >= end - pos) {
926 pos += ret;
1026 char *buf, *pos, *end;
1033 pos = buf = os_zalloc(100);
1043 ret = os_snprintf(pos, end - pos, "%s%s",
1044 pos == buf ? "" : " ", name);
1045 if (ret < 0 || ret >= end - pos)
1047 pos += ret;
1290 const char *pos;
1297 pos = value;
1298 while (pos && *pos) {
1299 while (*pos == ' ')
1300 pos++;
1302 if (hwaddr_aton(pos, addr)) {
1314 line, pos);
1329 pos = os_strchr(pos, ' ');
1344 char *value, *end, *pos;
1354 pos = value;
1358 res = os_snprintf(pos, end - pos, MACSTR " ",
1361 if (res < 0 || res >= end - pos) {
1365 pos += res;
1368 if (pos > value)
1369 pos[-1] = '\0';
1381 const char *pos;
1387 pos = value;
1388 if (os_strncmp(pos, "P2P-", 4) == 0) {
1390 pos += 4;
1393 if (hwaddr_aton(pos, p->addr)) {
1395 line, pos);
1399 pos += 17;
1400 if (*pos != '-') {
1402 line, pos);
1406 pos++;
1408 if (hexstr2bin(pos, p->psk, PMK_LEN) || pos[PMK_LEN * 2] != '\0') {
1410 line, pos);
2596 struct wpa_config_blob *pos = config->blobs, *prev = NULL;
2598 while (pos) {
2599 if (os_strcmp(pos->name, name) == 0) {
2601 prev->next = pos->next;
2603 config->blobs = pos->next;
2604 wpa_config_free_blob(pos);
2607 prev = pos;
2608 pos = pos->next;
2702 const char *pos)
2708 val = strtol(pos, &end, 0);
2711 line, pos);
2740 const char *pos)
2745 len = os_strlen(pos);
2760 tmp = os_strdup(pos);
2775 const char *pos)
2780 len = os_strlen(pos);
2788 if (hexstr2bin(pos, wpabuf_put(tmp, len / 2), len / 2)) {
2819 const char *pos)
2821 if (!pos[0] || !pos[1]) {
2825 config->country[0] = pos[0];
2826 config->country[1] = pos[1];
2857 const char *pos)
2860 if (uuid_str2bin(pos, config->uuid)) {
2872 struct wpa_config *config, int line, const char *pos)
2874 return wps_dev_type_str2bin(pos, config->device_type);
2880 const char *pos)
2882 if (hexstr2bin(pos, config->os_version, 4)) {
2894 struct wpa_config *config, int line, const char *pos)
2897 int len = os_strlen(pos) / 2;
2910 if (hexstr2bin(pos, p, len)) {
2933 struct wpa_config *config, int line, const char *pos)
2945 if (wps_dev_type_str2bin(pos, config->sec_device_type[idx]))
2955 struct wpa_config *config, int line, const char *pos)
2964 while (*pos) {
2965 op_class = atoi(pos);
2966 pos2 = os_strchr(pos, ':');
2981 pos = os_strchr(pos2, ',');
2982 if (pos == NULL)
2984 pos++;
3006 struct wpa_config *config, int line, const char *pos)
3008 if (hwaddr_aton2(pos, config->hessid) < 0) {
3010 line, pos);
3020 struct wpa_config *config, int line, const char *pos)
3022 int *groups = wpa_config_parse_int_array(pos);
3025 line, pos);
3038 struct wpa_config *config, int line, const char *pos)
3041 int len = os_strlen(pos) / 2;
3054 if (hexstr2bin(pos, p, len)) {
3189 int wpa_config_process_global(struct wpa_config *config, char *pos, int line)
3197 if (os_strncmp(pos, field->name, flen) != 0 ||
3198 pos[flen] != '=')
3201 if (field->parser(field, config, line, pos + flen + 1)) {
3203 "parse '%s'.", line, pos);
3213 if (os_strncmp(pos, "wmm_ac_", 7) == 0) {
3214 char *tmp = os_strchr(pos, '=');
3219 "'%s'", line, pos);
3223 if (hostapd_config_wmm_ac(config->wmm_ac_params, pos,
3234 line, pos);