Lines Matching defs:eid

39 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len)
42 return eid;
46 *eid++ = WLAN_EID_BSS_LOAD;
47 *eid++ = 5;
48 os_memcpy(eid, hapd->conf->bss_load_test, 5);
49 eid += 5;
50 return eid;
54 *eid++ = WLAN_EID_BSS_LOAD;
55 *eid++ = 5;
56 WPA_PUT_LE16(eid, hapd->num_sta);
57 eid += 2;
58 *eid++ = hapd->iface->channel_utilization;
59 WPA_PUT_LE16(eid, 0); /* no available admission capabity */
60 eid += 2;
62 return eid;
88 static u8 * hostapd_eid_ds_params(struct hostapd_data *hapd, u8 *eid)
90 *eid++ = WLAN_EID_DS_PARAMS;
91 *eid++ = 1;
92 *eid++ = hapd->iconf->channel;
93 return eid;
97 static u8 * hostapd_eid_erp_info(struct hostapd_data *hapd, u8 *eid)
101 return eid;
113 *eid++ = WLAN_EID_ERP_INFO;
114 *eid++ = 1;
115 *eid++ = ieee802_11_erp_info(hapd);
117 return eid;
121 static u8 * hostapd_eid_pwr_constraint(struct hostapd_data *hapd, u8 *eid)
123 u8 *pos = eid;
129 return eid;
133 return eid;
141 return eid;
152 return eid;
207 static u8 * hostapd_eid_country(struct hostapd_data *hapd, u8 *eid,
210 u8 *pos = eid;
211 u8 *end = eid + max_len;
219 return eid;
257 if ((pos - eid) & 1) {
259 return eid;
263 eid[1] = (pos - eid) - 2;
269 const u8 * hostapd_wpa_ie(struct hostapd_data *hapd, u8 eid)
278 return get_ie(ies, ies_len, eid);
367 static u8 * hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid)
371 return eid;
375 return eid;
377 *eid++ = WLAN_EID_CHANNEL_SWITCH;
378 *eid++ = 3;
379 *eid++ = hapd->cs_block_tx;
380 *eid++ = hapd->cs_freq_params.channel;
381 *eid++ = hapd->cs_count;
383 return eid;
387 static u8 * hostapd_eid_ecsa(struct hostapd_data *hapd, u8 *eid)
390 return eid;
392 *eid++ = WLAN_EID_EXT_CHANSWITCH_ANN;
393 *eid++ = 4;
394 *eid++ = hapd->cs_block_tx;
395 *eid++ = hapd->iface->cs_oper_class;
396 *eid++ = hapd->cs_freq_params.channel;
397 *eid++ = hapd->cs_count;
399 return eid;
403 static u8 * hostapd_eid_supported_op_classes(struct hostapd_data *hapd, u8 *eid)
409 return eid;
416 return eid;
418 *eid++ = WLAN_EID_SUPPORTED_OPERATING_CLASSES;
419 *eid++ = 2;
422 *eid++ = op_class;
425 *eid++ = 0;
427 return eid;