Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:pos

46 	char *pos, *end, *sstart;
51 pos = s;
54 while (*pos == ' ' || *pos == '\t' || *pos == '\r')
55 pos++;
58 if (*pos == '#' || *pos == '\n' || *pos == '\0')
65 sstart = os_strchr(pos, '"');
69 sstart = pos;
74 end = pos + os_strlen(pos) - 1;
77 while (end > pos &&
82 if (*pos == '\0')
86 *_pos = pos;
87 return pos;
133 char buf[256], *pos, *pos2;
144 while (wpa_config_get_line(buf, sizeof(buf), f, line, &pos)) {
145 if (os_strcmp(pos, "}") == 0) {
150 pos2 = os_strchr(pos, '=');
153 "'%s'.", *line, pos);
168 if (wpa_config_set(ssid, pos, pos2, *line) < 0)
193 char buf[256], *pos;
201 while (wpa_config_get_line(buf, sizeof(buf), f, line, &pos)) {
202 if (os_strcmp(pos, "}") == 0) {
207 len = os_strlen(pos);
216 os_memcpy(encoded + encoded_len, pos, len);
248 char buf[256], *pos;
268 while (wpa_config_get_line(buf, sizeof(buf), f, &line, &pos)) {
269 if (os_strcmp(pos, "network={") == 0) {
292 } else if (os_strncmp(pos, "blob-base64-", 12) == 0) {
293 char *bname = pos + 12, *name_end;
314 } else if (os_strncmp(pos, "ctrl_interface=", 15) == 0) {
316 config->ctrl_interface = os_strdup(pos + 15);
319 } else if (os_strncmp(pos, "ctrl_interface_group=", 21) == 0) {
321 config->ctrl_interface_group = os_strdup(pos + 21);
326 } else if (os_strncmp(pos, "eapol_version=", 14) == 0) {
327 config->eapol_version = atoi(pos + 14);
332 line, config->eapol_version, pos);
338 } else if (os_strncmp(pos, "ap_scan=", 8) == 0) {
339 config->ap_scan = atoi(pos + 8);
341 } else if (os_strncmp(pos, "fast_reauth=", 12) == 0) {
342 config->fast_reauth = atoi(pos + 12);
345 } else if (os_strncmp(pos, "opensc_engine_path=", 19) == 0) {
347 config->opensc_engine_path = os_strdup(pos + 19);
350 } else if (os_strncmp(pos, "pkcs11_engine_path=", 19) == 0) {
352 config->pkcs11_engine_path = os_strdup(pos + 19);
355 } else if (os_strncmp(pos, "pkcs11_module_path=", 19) == 0) {
357 config->pkcs11_module_path = os_strdup(pos + 19);
360 } else if (os_strncmp(pos, "driver_param=", 13) == 0) {
362 config->driver_param = os_strdup(pos + 13);
365 } else if (os_strncmp(pos, "dot11RSNAConfigPMKLifetime=", 27)
367 config->dot11RSNAConfigPMKLifetime = atoi(pos + 27);
370 } else if (os_strncmp(pos,
374 atoi(pos + 34);
378 } else if (os_strncmp(pos, "dot11RSNAConfigSATimeout=", 25) ==
380 config->dot11RSNAConfigSATimeout = atoi(pos + 25);
383 } else if (os_strncmp(pos, "update_config=", 14) == 0) {
384 config->update_config = atoi(pos + 14);
387 } else if (os_strncmp(pos, "load_dynamic_eap=", 17) == 0) {
388 char *so = pos + 17;
403 "line '%s'.", line, pos);