Lines Matching refs:eid

36 static u8 * hostapd_eid_rm_enabled_capab(struct hostapd_data *hapd, u8 *eid,  in hostapd_eid_rm_enabled_capab()  argument
40 return eid; in hostapd_eid_rm_enabled_capab()
42 *eid++ = WLAN_EID_RRM_ENABLED_CAPABILITIES; in hostapd_eid_rm_enabled_capab()
43 *eid++ = 5; in hostapd_eid_rm_enabled_capab()
44 *eid++ = (hapd->conf->radio_measurements & BIT(0)) ? in hostapd_eid_rm_enabled_capab()
46 *eid++ = 0x00; in hostapd_eid_rm_enabled_capab()
47 *eid++ = 0x00; in hostapd_eid_rm_enabled_capab()
48 *eid++ = 0x00; in hostapd_eid_rm_enabled_capab()
49 *eid++ = 0x00; in hostapd_eid_rm_enabled_capab()
50 return eid; in hostapd_eid_rm_enabled_capab()
54 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len) in hostapd_eid_bss_load() argument
57 return eid; in hostapd_eid_bss_load()
61 *eid++ = WLAN_EID_BSS_LOAD; in hostapd_eid_bss_load()
62 *eid++ = 5; in hostapd_eid_bss_load()
63 os_memcpy(eid, hapd->conf->bss_load_test, 5); in hostapd_eid_bss_load()
64 eid += 5; in hostapd_eid_bss_load()
65 return eid; in hostapd_eid_bss_load()
69 *eid++ = WLAN_EID_BSS_LOAD; in hostapd_eid_bss_load()
70 *eid++ = 5; in hostapd_eid_bss_load()
71 WPA_PUT_LE16(eid, hapd->num_sta); in hostapd_eid_bss_load()
72 eid += 2; in hostapd_eid_bss_load()
73 *eid++ = hapd->iface->channel_utilization; in hostapd_eid_bss_load()
74 WPA_PUT_LE16(eid, 0); /* no available admission capabity */ in hostapd_eid_bss_load()
75 eid += 2; in hostapd_eid_bss_load()
77 return eid; in hostapd_eid_bss_load()
103 static u8 * hostapd_eid_ds_params(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_ds_params() argument
105 *eid++ = WLAN_EID_DS_PARAMS; in hostapd_eid_ds_params()
106 *eid++ = 1; in hostapd_eid_ds_params()
107 *eid++ = hapd->iconf->channel; in hostapd_eid_ds_params()
108 return eid; in hostapd_eid_ds_params()
112 static u8 * hostapd_eid_erp_info(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_erp_info() argument
116 return eid; in hostapd_eid_erp_info()
128 *eid++ = WLAN_EID_ERP_INFO; in hostapd_eid_erp_info()
129 *eid++ = 1; in hostapd_eid_erp_info()
130 *eid++ = ieee802_11_erp_info(hapd); in hostapd_eid_erp_info()
132 return eid; in hostapd_eid_erp_info()
136 static u8 * hostapd_eid_pwr_constraint(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_pwr_constraint() argument
138 u8 *pos = eid; in hostapd_eid_pwr_constraint()
144 return eid; in hostapd_eid_pwr_constraint()
148 return eid; in hostapd_eid_pwr_constraint()
156 return eid; in hostapd_eid_pwr_constraint()
167 return eid; in hostapd_eid_pwr_constraint()
222 static u8 * hostapd_eid_country(struct hostapd_data *hapd, u8 *eid, in hostapd_eid_country() argument
225 u8 *pos = eid; in hostapd_eid_country()
226 u8 *end = eid + max_len; in hostapd_eid_country()
234 return eid; in hostapd_eid_country()
272 if ((pos - eid) & 1) { in hostapd_eid_country()
274 return eid; in hostapd_eid_country()
278 eid[1] = (pos - eid) - 2; in hostapd_eid_country()
284 static u8 * hostapd_eid_wpa(struct hostapd_data *hapd, u8 *eid, size_t len) in hostapd_eid_wpa() argument
291 return eid; in hostapd_eid_wpa()
293 os_memcpy(eid, ie, ielen); in hostapd_eid_wpa()
294 return eid + ielen; in hostapd_eid_wpa()
298 static u8 * hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_csa() argument
303 return eid; in hostapd_eid_csa()
307 return eid; in hostapd_eid_csa()
309 *eid++ = WLAN_EID_CHANNEL_SWITCH; in hostapd_eid_csa()
310 *eid++ = 3; in hostapd_eid_csa()
311 *eid++ = hapd->cs_block_tx; in hostapd_eid_csa()
312 *eid++ = chan; in hostapd_eid_csa()
313 *eid++ = hapd->cs_count; in hostapd_eid_csa()
315 return eid; in hostapd_eid_csa()
319 static u8 * hostapd_eid_secondary_channel(struct hostapd_data *hapd, u8 *eid) in hostapd_eid_secondary_channel() argument
324 return eid; in hostapd_eid_secondary_channel()
331 return eid; in hostapd_eid_secondary_channel()
333 *eid++ = WLAN_EID_SECONDARY_CHANNEL_OFFSET; in hostapd_eid_secondary_channel()
334 *eid++ = 1; in hostapd_eid_secondary_channel()
335 *eid++ = sec_ch; in hostapd_eid_secondary_channel()
337 return eid; in hostapd_eid_secondary_channel()