Home | History | Annotate | Download | only in common

Lines Matching full:rpos

1287 	u8 *start, *end, *rpos, *rend;
1307 rpos = start + 2;
1308 rend = rpos + start[1];
1311 rpos += 2 + 4;
1313 rpos += 2 + WPA_GET_LE16(rpos) * RSN_SELECTOR_LEN;
1315 rpos += 2 + WPA_GET_LE16(rpos) * RSN_SELECTOR_LEN;
1317 if (rpos == rend) {
1319 os_memmove(rpos + 2, rpos, end - rpos);
1320 *rpos++ = 0;
1321 *rpos++ = 0;
1324 rend = rpos;
1327 rpos += 2;
1328 if (rpos > rend) {
1335 if (rpos == rend) {
1337 os_memmove(rpos + 2 + PMKID_LEN, rpos, end + added - rpos);
1338 WPA_PUT_LE16(rpos, 1);
1339 rpos += 2;
1340 os_memcpy(rpos, pmkid, PMKID_LEN);
1346 if (rend - rpos < 2)
1348 num_pmkid = WPA_GET_LE16(rpos);
1353 if (num_pmkid * PMKID_LEN > rend - rpos - 2)
1363 after = rpos + 2 + num_pmkid * PMKID_LEN;
1364 os_memmove(rpos + 2, after, rend - after);
1368 WPA_PUT_LE16(rpos, 1);
1369 rpos += 2;
1370 os_memmove(rpos + PMKID_LEN, rpos, end + added - rpos);
1371 os_memcpy(rpos, pmkid, PMKID_LEN);