Lines Matching defs:beacon
30 #include "beacon.h"
1210 /* Set SSID for the kernel driver (to be used in beacon and probe
1655 wpa_printf(MSG_WARNING, "FST: Cannot set beacon");
1823 "OWE: Matching transition mode interface enabled - update beacon data for %s",
3172 static void free_beacon_data(struct beacon_data *beacon)
3174 os_free(beacon->head);
3175 beacon->head = NULL;
3176 os_free(beacon->tail);
3177 beacon->tail = NULL;
3178 os_free(beacon->probe_resp);
3179 beacon->probe_resp = NULL;
3180 os_free(beacon->beacon_ies);
3181 beacon->beacon_ies = NULL;
3182 os_free(beacon->proberesp_ies);
3183 beacon->proberesp_ies = NULL;
3184 os_free(beacon->assocresp_ies);
3185 beacon->assocresp_ies = NULL;
3190 struct beacon_data *beacon)
3196 os_memset(beacon, 0, sizeof(*beacon));
3208 beacon->head = os_memdup(params.head, params.head_len);
3209 if (!beacon->head)
3212 beacon->head_len = params.head_len;
3214 beacon->tail = os_memdup(params.tail, params.tail_len);
3215 if (!beacon->tail)
3218 beacon->tail_len = params.tail_len;
3221 beacon->probe_resp = os_memdup(params.proberesp,
3223 if (!beacon->probe_resp)
3226 beacon->probe_resp_len = params.proberesp_len;
3231 beacon->beacon_ies = os_memdup(beacon_extra->buf,
3233 if (!beacon->beacon_ies)
3236 beacon->beacon_ies_len = wpabuf_len(beacon_extra);
3240 beacon->proberesp_ies = os_memdup(proberesp_extra->buf,
3242 if (!beacon->proberesp_ies)
3245 beacon->proberesp_ies_len = wpabuf_len(proberesp_extra);
3249 beacon->assocresp_ies = os_memdup(assocresp_extra->buf,
3251 if (!beacon->assocresp_ies)
3254 beacon->assocresp_ies_len = wpabuf_len(assocresp_extra);
3259 /* if the function fails, the caller should not free beacon data */
3261 free_beacon_data(beacon);