• Home
  • Raw
  • Download

Lines Matching refs:eid

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