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;
169 u8 *pos = eid;
187 *pos++ = WLAN_EID_EXT_CAPAB;
188 *pos++ = len;
189 *pos++ = 0x00;
190 *pos++ = 0x00;
192 *pos = 0x00;
194 *pos |= 0x02; /* Bit 17 - WNM-Sleep Mode */
196 *pos |= 0x08; /* Bit 19 - BSS Transition */
197 pos++;
200 return pos;
201 *pos = 0x00;
203 *pos |= 0x02; /* Bit 25 - SSID List */
206 *pos |= 0x08; /* Bit 27 - UTC TSF Offset */
208 *pos |= 0x80; /* Bit 31 - Interworking */
209 pos++;
212 return pos;
213 *pos = 0x00;
215 *pos |= 0x40; /* Bit 38 - TDLS Prohibited */
217 *pos |= 0x80; /* Bit 39 - TDLS Channel Switching Prohibited */
218 pos++;
221 return pos;
222 *pos = 0x00;
223 pos++;
226 return pos;
227 *pos = 0x00;
229 *pos |= 0x01; /* Bit 48 - UTF-8 SSID */
230 pos++;
232 return pos;
238 u8 *pos = eid;
245 *pos++ = WLAN_EID_INTERWORKING;
246 len = pos++;
248 *pos = hapd->conf->access_network_type;
250 *pos |= INTERWORKING_ANO_INTERNET;
252 *pos |= INTERWORKING_ANO_ASRA;
254 *pos |= INTERWORKING_ANO_ESR;
256 *pos |= INTERWORKING_ANO_UESA;
257 pos++;
260 *pos++ = hapd->conf->venue_group;
261 *pos++ = hapd->conf->venue_type;
265 os_memcpy(pos, hapd->conf->hessid, ETH_ALEN);
266 pos += ETH_ALEN;
269 *len = pos - len - 1;
272 return pos;
278 u8 *pos = eid;
285 *pos++ = WLAN_EID_ADV_PROTO;
286 *pos++ = 2;
287 *pos++ = 0x7F; /* Query Response Length Limit | PAME-BI */
288 *pos++ = ACCESS_NETWORK_QUERY_PROTOCOL;
291 return pos;
297 u8 *pos = eid;
307 *pos++ = WLAN_EID_ROAMING_CONSORTIUM;
308 len = pos++;
312 *pos++ = 255;
314 *pos++ = hapd->conf->roaming_consortium_count - 3;
316 *pos++ = 0;
319 *pos = hapd->conf->roaming_consortium[0].len;
321 *pos |= hapd->conf->roaming_consortium[1].len << 4;
322 pos++;
330 os_memcpy(pos, hapd->conf->roaming_consortium[i].oi,
332 pos += hapd->conf->roaming_consortium[i].len;
335 *len = pos - len - 1;
338 return pos;
385 u8 *pos;
397 pos = wpabuf_put(hapd->time_adv, elen);
399 pos = wpabuf_mhead_u8(hapd->time_adv);
401 *pos++ = WLAN_EID_TIME_ADVERTISEMENT;
402 *pos++ = 1 + 10 + 5 + 1;
404 *pos++ = 2; /* UTC time at which the TSF timer is 0 */
408 WPA_PUT_LE16(pos, tm.year); /* Year */
409 pos += 2;
410 *pos++ = tm.month; /* Month */
411 *pos++ = tm.day; /* Day of month */
412 *pos++ = tm.hour; /* Hours */
413 *pos++ = tm.min; /* Minutes */
414 *pos++ = tm.sec; /* Seconds */
415 WPA_PUT_LE16(pos, 0); /* Milliseconds (not used) */
416 pos += 2;
417 *pos++ = 0; /* Reserved */
421 *pos++ = 0;
422 *pos++ = 0;
423 *pos++ = 0;
424 *pos++ = 0;
425 *pos++ = 0;
427 *pos++ = hapd->time_update_counter++;
435 u8 *pos = eid;
440 *pos++ = WLAN_EID_BSS_MAX_IDLE_PERIOD;
441 *pos++ = 3;
451 WPA_PUT_LE16(pos, val);
452 pos += 2;
453 *pos++ = 0x00; /* TODO: Protected Keep-Alive Required */
457 return pos;