Home | History | Annotate | Download | only in ap

Lines Matching refs:eid

37 static u8 * hostapd_eid_rm_enabled_capab(struct hostapd_data *hapd, u8 *eid,
48 return eid;
50 *eid++ = WLAN_EID_RRM_ENABLED_CAPABILITIES;
51 *eid++ = RRM_CAPABILITIES_IE_LEN;
52 os_memcpy(eid, hapd->conf->radio_measurements, RRM_CAPABILITIES_IE_LEN);
54 return eid + RRM_CAPABILITIES_IE_LEN;
58 static u8 * hostapd_eid_bss_load(struct hostapd_data *hapd, u8 *eid, size_t len)
61 return eid;
65 *eid++ = WLAN_EID_BSS_LOAD;
66 *eid++ = 5;
67 os_memcpy(eid, hapd->conf->bss_load_test, 5);
68 eid += 5;
69 return eid;
73 *eid++ = WLAN_EID_BSS_LOAD;
74 *eid++ = 5;
75 WPA_PUT_LE16(eid, hapd->num_sta);
76 eid += 2;
77 *eid++ = hapd->iface->channel_utilization;
78 WPA_PUT_LE16(eid, 0); /* no available admission capabity */
79 eid += 2;
81 return eid;
107 static u8 * hostapd_eid_ds_params(struct hostapd_data *hapd, u8 *eid)
109 *eid++ = WLAN_EID_DS_PARAMS;
110 *eid++ = 1;
111 *eid++ = hapd->iconf->channel;
112 return eid;
116 static u8 * hostapd_eid_erp_info(struct hostapd_data *hapd, u8 *eid)
120 return eid;
132 *eid++ = WLAN_EID_ERP_INFO;
133 *eid++ = 1;
134 *eid++ = ieee802_11_erp_info(hapd);
136 return eid;
140 static u8 * hostapd_eid_pwr_constraint(struct hostapd_data *hapd, u8 *eid)
142 u8 *pos = eid;
148 return eid;
152 return eid;
160 return eid;
171 return eid;
226 static u8 * hostapd_eid_country(struct hostapd_data *hapd, u8 *eid,
229 u8 *pos = eid;
230 u8 *end = eid + max_len;
238 return eid;
276 if ((pos - eid) & 1) {
278 return eid;
282 eid[1] = (pos - eid) - 2;
288 static u8 * hostapd_eid_wpa(struct hostapd_data *hapd, u8 *eid, size_t len)
295 return eid;
297 os_memcpy(eid, ie, ielen);
298 return eid + ielen;
302 static u8 * hostapd_eid_csa(struct hostapd_data *hapd, u8 *eid)
306 return eid;
310 return eid;
312 *eid++ = WLAN_EID_CHANNEL_SWITCH;
313 *eid++ = 3;
314 *eid++ = hapd->cs_block_tx;
315 *eid++ = hapd->cs_freq_params.channel;
316 *eid++ = hapd->cs_count;
318 return eid;
322 static u8 * hostapd_eid_ecsa(struct hostapd_data *hapd, u8 *eid)
325 return eid;
327 *eid++ = WLAN_EID_EXT_CHANSWITCH_ANN;
328 *eid++ = 4;
329 *eid++ = hapd->cs_block_tx;
330 *eid++ = hapd->iface->cs_oper_class;
331 *eid++ = hapd->cs_freq_params.channel;
332 *eid++ = hapd->cs_count;
334 return eid;
338 static u8 * hostapd_eid_supported_op_classes(struct hostapd_data *hapd, u8 *eid)
344 return eid;
351 return eid;
353 *eid++ = WLAN_EID_SUPPORTED_OPERATING_CLASSES;
354 *eid++ = 2;
357 *eid++ = op_class;
360 *eid++ = 0;
362 return eid;