Lines Matching refs:pos

25 	u8 *pos = eid;
29 *pos++ = WLAN_EID_TIMEOUT_INTERVAL;
30 *pos++ = 5;
31 *pos++ = WLAN_TIMEOUT_ASSOC_COMEBACK;
41 WPA_PUT_LE32(pos, timeout);
42 pos += 4;
44 return pos;
167 static void hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos, int idx)
169 *pos = 0x00;
174 *pos |= 0x01; /* Bit 0 - Coexistence management */
176 *pos |= 0x04; /* Bit 2 - Extended Channel Switching */
180 *pos |= 0x10; /* Bit 12 - Proxy ARP */
184 *pos |= 0x02; /* Bit 17 - WNM-Sleep Mode */
186 *pos |= 0x08; /* Bit 19 - BSS Transition */
190 *pos |= 0x02; /* Bit 25 - SSID List */
193 *pos |= 0x08; /* Bit 27 - UTC TSF Offset */
195 *pos |= 0x80; /* Bit 31 - Interworking */
199 *pos |= 0x01; /* Bit 32 - QoS Map */
201 *pos |= 0x40; /* Bit 38 - TDLS Prohibited */
204 *pos |= 0x80;
210 *pos |= 0x40; /* Bit 46 - WNM-Notification */
214 *pos |= 0x40; /* Bit 46 - WNM-Notification */
219 *pos |= 0x01; /* Bit 48 - UTF-8 SSID */
225 *pos |= 0x40; /* Bit 70 - FTM responder */
227 *pos |= 0x80; /* Bit 71 - FTM initiator */
232 *pos |= 0x01;
241 u8 *pos = eid;
279 *pos++ = WLAN_EID_EXT_CAPAB;
280 *pos++ = len;
281 for (i = 0; i < len; i++, pos++) {
282 hostapd_ext_capab_byte(hapd, pos, i);
285 *pos &= ~hapd->iface->extended_capa_mask[i];
286 *pos |= hapd->iface->extended_capa[i];
303 u8 *pos = eid;
309 *pos++ = WLAN_EID_QOS_MAP_SET;
310 *pos++ = len;
311 os_memcpy(pos, hapd->conf->qos_map_set, len);
312 pos += len;
314 return pos;
320 u8 *pos = eid;
327 *pos++ = WLAN_EID_INTERWORKING;
328 len = pos++;
330 *pos = hapd->conf->access_network_type;
332 *pos |= INTERWORKING_ANO_INTERNET;
334 *pos |= INTERWORKING_ANO_ASRA;
336 *pos |= INTERWORKING_ANO_ESR;
338 *pos |= INTERWORKING_ANO_UESA;
339 pos++;
342 *pos++ = hapd->conf->venue_group;
343 *pos++ = hapd->conf->venue_type;
347 os_memcpy(pos, hapd->conf->hessid, ETH_ALEN);
348 pos += ETH_ALEN;
351 *len = pos - len - 1;
354 return pos;
360 u8 *pos = eid;
367 *pos++ = WLAN_EID_ADV_PROTO;
368 *pos++ = 2;
369 *pos++ = 0x7F; /* Query Response Length Limit | PAME-BI */
370 *pos++ = ACCESS_NETWORK_QUERY_PROTOCOL;
373 return pos;
379 u8 *pos = eid;
389 *pos++ = WLAN_EID_ROAMING_CONSORTIUM;
390 len = pos++;
394 *pos++ = 255;
396 *pos++ = hapd->conf->roaming_consortium_count - 3;
398 *pos++ = 0;
401 *pos = hapd->conf->roaming_consortium[0].len;
403 *pos |= hapd->conf->roaming_consortium[1].len << 4;
404 pos++;
412 os_memcpy(pos, hapd->conf->roaming_consortium[i].oi,
414 pos += hapd->conf->roaming_consortium[i].len;
417 *len = pos - len - 1;
420 return pos;
467 u8 *pos;
479 pos = wpabuf_put(hapd->time_adv, elen);
481 pos = wpabuf_mhead_u8(hapd->time_adv);
483 *pos++ = WLAN_EID_TIME_ADVERTISEMENT;
484 *pos++ = 1 + 10 + 5 + 1;
486 *pos++ = 2; /* UTC time at which the TSF timer is 0 */
490 WPA_PUT_LE16(pos, tm.year); /* Year */
491 pos += 2;
492 *pos++ = tm.month; /* Month */
493 *pos++ = tm.day; /* Day of month */
494 *pos++ = tm.hour; /* Hours */
495 *pos++ = tm.min; /* Minutes */
496 *pos++ = tm.sec; /* Seconds */
497 WPA_PUT_LE16(pos, 0); /* Milliseconds (not used) */
498 pos += 2;
499 *pos++ = 0; /* Reserved */
503 *pos++ = 0;
504 *pos++ = 0;
505 *pos++ = 0;
506 *pos++ = 0;
507 *pos++ = 0;
509 *pos++ = hapd->time_update_counter++;
517 u8 *pos = eid;
522 *pos++ = WLAN_EID_BSS_MAX_IDLE_PERIOD;
523 *pos++ = 3;
533 WPA_PUT_LE16(pos, val);
534 pos += 2;
535 *pos++ = 0x00; /* TODO: Protected Keep-Alive Required */
539 return pos;
548 u8 *pos = eid;
564 pos += mbo_add_ie(pos, len, mbo, mbo_pos - mbo);
566 return pos;
604 u8 *pos = eid;
613 return pos;
619 *pos++ = WLAN_EID_FILS_INDICATION;
620 len = pos++;
636 WPA_PUT_LE16(pos, fils_info);
637 pos += 2;
639 os_memcpy(pos, hapd->conf->fils_cache_id, FILS_CACHE_ID_LEN);
640 pos += FILS_CACHE_ID_LEN;
643 os_memcpy(pos, hapd->conf->hessid, ETH_ALEN);
644 pos += ETH_ALEN;
652 os_memcpy(pos, realm->hash, 2);
653 pos += 2;
655 *len = pos - len - 1;
658 return pos;