Lines Matching refs:eid
39 static u8 * hostapd_eid_rm_enabled_capab(struct hostapd_data *hapd, u8 *eid, in hostapd_eid_rm_enabled_capab() argument
50 return eid; in hostapd_eid_rm_enabled_capab()
52 *eid++ = WLAN_EID_RRM_ENABLED_CAPABILITIES; in hostapd_eid_rm_enabled_capab()
53 *eid++ = RRM_CAPABILITIES_IE_LEN; in hostapd_eid_rm_enabled_capab()
54 os_memcpy(eid, hapd->conf->radio_measurements, RRM_CAPABILITIES_IE_LEN); in hostapd_eid_rm_enabled_capab()
56 return eid + RRM_CAPABILITIES_IE_LEN; in hostapd_eid_rm_enabled_capab()
60 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) in hostapd_eid_bss_load() argument
63 return eid; in hostapd_eid_bss_load()
67 *eid++ = WLAN_EID_BSS_LOAD; in hostapd_eid_bss_load()
68 *eid++ = 5; in hostapd_eid_bss_load()
69 os_memcpy(eid, hapd->conf->bss_load_test, 5); in hostapd_eid_bss_load()
70 eid += 5; in hostapd_eid_bss_load()
71 return eid; in hostapd_eid_bss_load()
75 *eid++ = WLAN_EID_BSS_LOAD; in hostapd_eid_bss_load()
76 *eid++ = 5; in hostapd_eid_bss_load()
77 WPA_PUT_LE16(eid, hapd->num_sta); in hostapd_eid_bss_load()
78 eid += 2; in hostapd_eid_bss_load()
79 *eid++ = hapd->iface->channel_utilization; in hostapd_eid_bss_load()
80 WPA_PUT_LE16(eid, 0); /* no available admission capabity */ in hostapd_eid_bss_load()
81 eid += 2; in hostapd_eid_bss_load()
83 return eid; in hostapd_eid_bss_load()
109 static u8 * hostapd_eid_ds_params(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_ds_params() argument
111 *eid++ = WLAN_EID_DS_PARAMS; in hostapd_eid_ds_params()
112 *eid++ = 1; in hostapd_eid_ds_params()
113 *eid++ = hapd->iconf->channel; in hostapd_eid_ds_params()
114 return eid; in hostapd_eid_ds_params()
118 static u8 * hostapd_eid_erp_info(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_erp_info() argument
122 return eid; in hostapd_eid_erp_info()
134 *eid++ = WLAN_EID_ERP_INFO; in hostapd_eid_erp_info()
135 *eid++ = 1; in hostapd_eid_erp_info()
136 *eid++ = ieee802_11_erp_info(hapd); in hostapd_eid_erp_info()
138 return eid; in hostapd_eid_erp_info()
142 static u8 * hostapd_eid_pwr_constraint(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_pwr_constraint() argument
144 u8 *pos = eid; in hostapd_eid_pwr_constraint()
150 return eid; in hostapd_eid_pwr_constraint()
154 return eid; in hostapd_eid_pwr_constraint()
162 return eid; in hostapd_eid_pwr_constraint()
173 return eid; in hostapd_eid_pwr_constraint()
228 static u8 * hostapd_eid_country(struct hostapd_data *hapd, u8 *eid, in hostapd_eid_country() argument
231 u8 *pos = eid; in hostapd_eid_country()
232 u8 *end = eid + max_len; in hostapd_eid_country()
240 return eid; in hostapd_eid_country()
278 if ((pos - eid) & 1) { in hostapd_eid_country()
280 return eid; in hostapd_eid_country()
284 eid[1] = (pos - eid) - 2; in hostapd_eid_country()
290 static u8 * hostapd_eid_wpa(struct hostapd_data *hapd, u8 *eid, size_t len) in hostapd_eid_wpa() argument
297 return eid; in hostapd_eid_wpa()
299 os_memcpy(eid, ie, ielen); in hostapd_eid_wpa()
300 return eid + ielen; in hostapd_eid_wpa()
304 static u8 * hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_csa() argument
308 return eid; in hostapd_eid_csa()
312 return eid; in hostapd_eid_csa()
314 *eid++ = WLAN_EID_CHANNEL_SWITCH; in hostapd_eid_csa()
315 *eid++ = 3; in hostapd_eid_csa()
316 *eid++ = hapd->cs_block_tx; in hostapd_eid_csa()
317 *eid++ = hapd->cs_freq_params.channel; in hostapd_eid_csa()
318 *eid++ = hapd->cs_count; in hostapd_eid_csa()
320 return eid; in hostapd_eid_csa()
324 static u8 * hostapd_eid_ecsa(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_ecsa() argument
327 return eid; in hostapd_eid_ecsa()
329 *eid++ = WLAN_EID_EXT_CHANSWITCH_ANN; in hostapd_eid_ecsa()
330 *eid++ = 4; in hostapd_eid_ecsa()
331 *eid++ = hapd->cs_block_tx; in hostapd_eid_ecsa()
332 *eid++ = hapd->iface->cs_oper_class; in hostapd_eid_ecsa()
333 *eid++ = hapd->cs_freq_params.channel; in hostapd_eid_ecsa()
334 *eid++ = hapd->cs_count; in hostapd_eid_ecsa()
336 return eid; in hostapd_eid_ecsa()
340 static u8 * hostapd_eid_supported_op_classes(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_supported_op_classes() argument
346 return eid; in hostapd_eid_supported_op_classes()
353 return eid; in hostapd_eid_supported_op_classes()
355 *eid++ = WLAN_EID_SUPPORTED_OPERATING_CLASSES; in hostapd_eid_supported_op_classes()
356 *eid++ = 2; in hostapd_eid_supported_op_classes()
359 *eid++ = op_class; in hostapd_eid_supported_op_classes()
362 *eid++ = 0; in hostapd_eid_supported_op_classes()
364 return eid; in hostapd_eid_supported_op_classes()