Lines Matching refs:eid

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