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 */
180 *pos |= 0x02; /* Bit 17 - WNM-Sleep Mode */
182 *pos |= 0x08; /* Bit 19 - BSS Transition */
186 *pos |= 0x02; /* Bit 25 - SSID List */
189 *pos |= 0x08; /* Bit 27 - UTC TSF Offset */
191 *pos |= 0x80; /* Bit 31 - Interworking */
195 *pos |= 0x01; /* Bit 32 - QoS Map */
197 *pos |= 0x40; /* Bit 38 - TDLS Prohibited */
200 *pos |= 0x80;
206 *pos |= 0x40; /* Bit 46 - WNM-Notification */
211 *pos |= 0x01; /* Bit 48 - UTF-8 SSID */
219 u8 *pos = eid;
245 *pos++ = WLAN_EID_EXT_CAPAB;
246 *pos++ = len;
247 for (i = 0; i < len; i++, pos++) {
248 hostapd_ext_capab_byte(hapd, pos, i);
251 *pos &= ~hapd->iface->extended_capa_mask[i];
252 *pos |= hapd->iface->extended_capa[i];
269 u8 *pos = eid;
275 *pos++ = WLAN_EID_QOS_MAP_SET;
276 *pos++ = len;
277 os_memcpy(pos, hapd->conf->qos_map_set, len);
278 pos += len;
280 return pos;
286 u8 *pos = eid;
293 *pos++ = WLAN_EID_INTERWORKING;
294 len = pos++;
296 *pos = hapd->conf->access_network_type;
298 *pos |= INTERWORKING_ANO_INTERNET;
300 *pos |= INTERWORKING_ANO_ASRA;
302 *pos |= INTERWORKING_ANO_ESR;
304 *pos |= INTERWORKING_ANO_UESA;
305 pos++;
308 *pos++ = hapd->conf->venue_group;
309 *pos++ = hapd->conf->venue_type;
313 os_memcpy(pos, hapd->conf->hessid, ETH_ALEN);
314 pos += ETH_ALEN;
317 *len = pos - len - 1;
320 return pos;
326 u8 *pos = eid;
333 *pos++ = WLAN_EID_ADV_PROTO;
334 *pos++ = 2;
335 *pos++ = 0x7F; /* Query Response Length Limit | PAME-BI */
336 *pos++ = ACCESS_NETWORK_QUERY_PROTOCOL;
339 return pos;
345 u8 *pos = eid;
355 *pos++ = WLAN_EID_ROAMING_CONSORTIUM;
356 len = pos++;
360 *pos++ = 255;
362 *pos++ = hapd->conf->roaming_consortium_count - 3;
364 *pos++ = 0;
367 *pos = hapd->conf->roaming_consortium[0].len;
369 *pos |= hapd->conf->roaming_consortium[1].len << 4;
370 pos++;
378 os_memcpy(pos, hapd->conf->roaming_consortium[i].oi,
380 pos += hapd->conf->roaming_consortium[i].len;
383 *len = pos - len - 1;
386 return pos;
433 u8 *pos;
445 pos = wpabuf_put(hapd->time_adv, elen);
447 pos = wpabuf_mhead_u8(hapd->time_adv);
449 *pos++ = WLAN_EID_TIME_ADVERTISEMENT;
450 *pos++ = 1 + 10 + 5 + 1;
452 *pos++ = 2; /* UTC time at which the TSF timer is 0 */
456 WPA_PUT_LE16(pos, tm.year); /* Year */
457 pos += 2;
458 *pos++ = tm.month; /* Month */
459 *pos++ = tm.day; /* Day of month */
460 *pos++ = tm.hour; /* Hours */
461 *pos++ = tm.min; /* Minutes */
462 *pos++ = tm.sec; /* Seconds */
463 WPA_PUT_LE16(pos, 0); /* Milliseconds (not used) */
464 pos += 2;
465 *pos++ = 0; /* Reserved */
469 *pos++ = 0;
470 *pos++ = 0;
471 *pos++ = 0;
472 *pos++ = 0;
473 *pos++ = 0;
475 *pos++ = hapd->time_update_counter++;
483 u8 *pos = eid;
488 *pos++ = WLAN_EID_BSS_MAX_IDLE_PERIOD;
489 *pos++ = 3;
499 WPA_PUT_LE16(pos, val);
500 pos += 2;
501 *pos++ = 0x00; /* TODO: Protected Keep-Alive Required */
505 return pos;