123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649 |
- /*
- * hostapd / IEEE 802.11 Management
- * Copyright (c) 2002-2012, Jouni Malinen <j@w1.fi>
- *
- * This software may be distributed under the terms of the BSD license.
- * See README for more details.
- */
- #include "utils/includes.h"
- #include "utils/common.h"
- #include "common/ieee802_11_defs.h"
- #include "hostapd.h"
- #include "sta_info.h"
- #include "ap_config.h"
- #include "ap_drv_ops.h"
- #include "ieee802_11.h"
- #ifdef CONFIG_IEEE80211W
- u8 * hostapd_eid_assoc_comeback_time(struct hostapd_data *hapd,
- struct sta_info *sta, u8 *eid)
- {
- u8 *pos = eid;
- u32 timeout, tu;
- struct os_reltime now, passed;
- *pos++ = WLAN_EID_TIMEOUT_INTERVAL;
- *pos++ = 5;
- *pos++ = WLAN_TIMEOUT_ASSOC_COMEBACK;
- os_get_reltime(&now);
- os_reltime_sub(&now, &sta->sa_query_start, &passed);
- tu = (passed.sec * 1000000 + passed.usec) / 1024;
- if (hapd->conf->assoc_sa_query_max_timeout > tu)
- timeout = hapd->conf->assoc_sa_query_max_timeout - tu;
- else
- timeout = 0;
- if (timeout < hapd->conf->assoc_sa_query_max_timeout)
- timeout++; /* add some extra time for local timers */
- WPA_PUT_LE32(pos, timeout);
- pos += 4;
- return pos;
- }
- /* MLME-SAQuery.request */
- void ieee802_11_send_sa_query_req(struct hostapd_data *hapd,
- const u8 *addr, const u8 *trans_id)
- {
- struct ieee80211_mgmt mgmt;
- u8 *end;
- wpa_printf(MSG_DEBUG, "IEEE 802.11: Sending SA Query Request to "
- MACSTR, MAC2STR(addr));
- wpa_hexdump(MSG_DEBUG, "IEEE 802.11: SA Query Transaction ID",
- trans_id, WLAN_SA_QUERY_TR_ID_LEN);
- os_memset(&mgmt, 0, sizeof(mgmt));
- mgmt.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
- WLAN_FC_STYPE_ACTION);
- os_memcpy(mgmt.da, addr, ETH_ALEN);
- os_memcpy(mgmt.sa, hapd->own_addr, ETH_ALEN);
- os_memcpy(mgmt.bssid, hapd->own_addr, ETH_ALEN);
- mgmt.u.action.category = WLAN_ACTION_SA_QUERY;
- mgmt.u.action.u.sa_query_req.action = WLAN_SA_QUERY_REQUEST;
- os_memcpy(mgmt.u.action.u.sa_query_req.trans_id, trans_id,
- WLAN_SA_QUERY_TR_ID_LEN);
- end = mgmt.u.action.u.sa_query_req.trans_id + WLAN_SA_QUERY_TR_ID_LEN;
- if (hostapd_drv_send_mlme(hapd, &mgmt, end - (u8 *) &mgmt, 0) < 0)
- wpa_printf(MSG_INFO, "ieee802_11_send_sa_query_req: send failed");
- }
- static void ieee802_11_send_sa_query_resp(struct hostapd_data *hapd,
- const u8 *sa, const u8 *trans_id)
- {
- struct sta_info *sta;
- struct ieee80211_mgmt resp;
- u8 *end;
- wpa_printf(MSG_DEBUG, "IEEE 802.11: Received SA Query Request from "
- MACSTR, MAC2STR(sa));
- wpa_hexdump(MSG_DEBUG, "IEEE 802.11: SA Query Transaction ID",
- trans_id, WLAN_SA_QUERY_TR_ID_LEN);
- sta = ap_get_sta(hapd, sa);
- if (sta == NULL || !(sta->flags & WLAN_STA_ASSOC)) {
- wpa_printf(MSG_DEBUG, "IEEE 802.11: Ignore SA Query Request "
- "from unassociated STA " MACSTR, MAC2STR(sa));
- return;
- }
- wpa_printf(MSG_DEBUG, "IEEE 802.11: Sending SA Query Response to "
- MACSTR, MAC2STR(sa));
- os_memset(&resp, 0, sizeof(resp));
- resp.frame_control = IEEE80211_FC(WLAN_FC_TYPE_MGMT,
- WLAN_FC_STYPE_ACTION);
- os_memcpy(resp.da, sa, ETH_ALEN);
- os_memcpy(resp.sa, hapd->own_addr, ETH_ALEN);
- os_memcpy(resp.bssid, hapd->own_addr, ETH_ALEN);
- resp.u.action.category = WLAN_ACTION_SA_QUERY;
- resp.u.action.u.sa_query_req.action = WLAN_SA_QUERY_RESPONSE;
- os_memcpy(resp.u.action.u.sa_query_req.trans_id, trans_id,
- WLAN_SA_QUERY_TR_ID_LEN);
- end = resp.u.action.u.sa_query_req.trans_id + WLAN_SA_QUERY_TR_ID_LEN;
- if (hostapd_drv_send_mlme(hapd, &resp, end - (u8 *) &resp, 0) < 0)
- wpa_printf(MSG_INFO, "ieee80211_mgmt_sa_query_request: send failed");
- }
- void ieee802_11_sa_query_action(struct hostapd_data *hapd, const u8 *sa,
- const u8 action_type, const u8 *trans_id)
- {
- struct sta_info *sta;
- int i;
- if (action_type == WLAN_SA_QUERY_REQUEST) {
- ieee802_11_send_sa_query_resp(hapd, sa, trans_id);
- return;
- }
- if (action_type != WLAN_SA_QUERY_RESPONSE) {
- wpa_printf(MSG_DEBUG, "IEEE 802.11: Unexpected SA Query "
- "Action %d", action_type);
- return;
- }
- wpa_printf(MSG_DEBUG, "IEEE 802.11: Received SA Query Response from "
- MACSTR, MAC2STR(sa));
- wpa_hexdump(MSG_DEBUG, "IEEE 802.11: SA Query Transaction ID",
- trans_id, WLAN_SA_QUERY_TR_ID_LEN);
- /* MLME-SAQuery.confirm */
- sta = ap_get_sta(hapd, sa);
- if (sta == NULL || sta->sa_query_trans_id == NULL) {
- wpa_printf(MSG_DEBUG, "IEEE 802.11: No matching STA with "
- "pending SA Query request found");
- return;
- }
- for (i = 0; i < sta->sa_query_count; i++) {
- if (os_memcmp(sta->sa_query_trans_id +
- i * WLAN_SA_QUERY_TR_ID_LEN,
- trans_id, WLAN_SA_QUERY_TR_ID_LEN) == 0)
- break;
- }
- if (i >= sta->sa_query_count) {
- wpa_printf(MSG_DEBUG, "IEEE 802.11: No matching SA Query "
- "transaction identifier found");
- return;
- }
- hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211,
- HOSTAPD_LEVEL_DEBUG,
- "Reply to pending SA Query received");
- ap_sta_stop_sa_query(hapd, sta);
- }
- #endif /* CONFIG_IEEE80211W */
- static void hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos, int idx)
- {
- *pos = 0x00;
- switch (idx) {
- case 0: /* Bits 0-7 */
- if (hapd->iconf->obss_interval)
- *pos |= 0x01; /* Bit 0 - Coexistence management */
- if (hapd->iface->drv_flags & WPA_DRIVER_FLAGS_AP_CSA)
- *pos |= 0x04; /* Bit 2 - Extended Channel Switching */
- break;
- case 1: /* Bits 8-15 */
- if (hapd->conf->proxy_arp)
- *pos |= 0x10; /* Bit 12 - Proxy ARP */
- break;
- case 2: /* Bits 16-23 */
- if (hapd->conf->wnm_sleep_mode)
- *pos |= 0x02; /* Bit 17 - WNM-Sleep Mode */
- if (hapd->conf->bss_transition)
- *pos |= 0x08; /* Bit 19 - BSS Transition */
- break;
- case 3: /* Bits 24-31 */
- #ifdef CONFIG_WNM
- *pos |= 0x02; /* Bit 25 - SSID List */
- #endif /* CONFIG_WNM */
- if (hapd->conf->time_advertisement == 2)
- *pos |= 0x08; /* Bit 27 - UTC TSF Offset */
- if (hapd->conf->interworking)
- *pos |= 0x80; /* Bit 31 - Interworking */
- break;
- case 4: /* Bits 32-39 */
- if (hapd->conf->qos_map_set_len)
- *pos |= 0x01; /* Bit 32 - QoS Map */
- if (hapd->conf->tdls & TDLS_PROHIBIT)
- *pos |= 0x40; /* Bit 38 - TDLS Prohibited */
- if (hapd->conf->tdls & TDLS_PROHIBIT_CHAN_SWITCH) {
- /* Bit 39 - TDLS Channel Switching Prohibited */
- *pos |= 0x80;
- }
- break;
- case 5: /* Bits 40-47 */
- #ifdef CONFIG_HS20
- if (hapd->conf->hs20)
- *pos |= 0x40; /* Bit 46 - WNM-Notification */
- #endif /* CONFIG_HS20 */
- #ifdef CONFIG_MBO
- if (hapd->conf->mbo_enabled)
- *pos |= 0x40; /* Bit 46 - WNM-Notification */
- #endif /* CONFIG_MBO */
- break;
- case 6: /* Bits 48-55 */
- if (hapd->conf->ssid.utf8_ssid)
- *pos |= 0x01; /* Bit 48 - UTF-8 SSID */
- break;
- case 7: /* Bits 56-63 */
- break;
- case 8: /* Bits 64-71 */
- if (hapd->conf->ftm_responder)
- *pos |= 0x40; /* Bit 70 - FTM responder */
- if (hapd->conf->ftm_initiator)
- *pos |= 0x80; /* Bit 71 - FTM initiator */
- case 9: /* Bits 72-79 */
- #ifdef CONFIG_FILS
- if ((hapd->conf->wpa & WPA_PROTO_RSN) &&
- wpa_key_mgmt_fils(hapd->conf->wpa_key_mgmt))
- *pos |= 0x01;
- #endif /* CONFIG_FILS */
- break;
- }
- }
- u8 * hostapd_eid_ext_capab(struct hostapd_data *hapd, u8 *eid)
- {
- u8 *pos = eid;
- u8 len = 0, i;
- if (hapd->conf->tdls & (TDLS_PROHIBIT | TDLS_PROHIBIT_CHAN_SWITCH))
- len = 5;
- if (len < 4 && hapd->conf->interworking)
- len = 4;
- if (len < 3 && hapd->conf->wnm_sleep_mode)
- len = 3;
- if (len < 1 && hapd->iconf->obss_interval)
- len = 1;
- if (len < 7 && hapd->conf->ssid.utf8_ssid)
- len = 7;
- if (len < 9 &&
- (hapd->conf->ftm_initiator || hapd->conf->ftm_responder))
- len = 9;
- #ifdef CONFIG_WNM
- if (len < 4)
- len = 4;
- #endif /* CONFIG_WNM */
- #ifdef CONFIG_HS20
- if (hapd->conf->hs20 && len < 6)
- len = 6;
- #endif /* CONFIG_HS20 */
- #ifdef CONFIG_MBO
- if (hapd->conf->mbo_enabled && len < 6)
- len = 6;
- #endif /* CONFIG_MBO */
- #ifdef CONFIG_FILS
- if ((!(hapd->conf->wpa & WPA_PROTO_RSN) ||
- !wpa_key_mgmt_fils(hapd->conf->wpa_key_mgmt)) && len < 10)
- len = 10;
- #endif /* CONFIG_FILS */
- if (len < hapd->iface->extended_capa_len)
- len = hapd->iface->extended_capa_len;
- if (len == 0)
- return eid;
- *pos++ = WLAN_EID_EXT_CAPAB;
- *pos++ = len;
- for (i = 0; i < len; i++, pos++) {
- hostapd_ext_capab_byte(hapd, pos, i);
- if (i < hapd->iface->extended_capa_len) {
- *pos &= ~hapd->iface->extended_capa_mask[i];
- *pos |= hapd->iface->extended_capa[i];
- }
- }
- while (len > 0 && eid[1 + len] == 0) {
- len--;
- eid[1] = len;
- }
- if (len == 0)
- return eid;
- return eid + 2 + len;
- }
- u8 * hostapd_eid_qos_map_set(struct hostapd_data *hapd, u8 *eid)
- {
- u8 *pos = eid;
- u8 len = hapd->conf->qos_map_set_len;
- if (!len)
- return eid;
- *pos++ = WLAN_EID_QOS_MAP_SET;
- *pos++ = len;
- os_memcpy(pos, hapd->conf->qos_map_set, len);
- pos += len;
- return pos;
- }
- u8 * hostapd_eid_interworking(struct hostapd_data *hapd, u8 *eid)
- {
- u8 *pos = eid;
- #ifdef CONFIG_INTERWORKING
- u8 *len;
- if (!hapd->conf->interworking)
- return eid;
- *pos++ = WLAN_EID_INTERWORKING;
- len = pos++;
- *pos = hapd->conf->access_network_type;
- if (hapd->conf->internet)
- *pos |= INTERWORKING_ANO_INTERNET;
- if (hapd->conf->asra)
- *pos |= INTERWORKING_ANO_ASRA;
- if (hapd->conf->esr)
- *pos |= INTERWORKING_ANO_ESR;
- if (hapd->conf->uesa)
- *pos |= INTERWORKING_ANO_UESA;
- pos++;
- if (hapd->conf->venue_info_set) {
- *pos++ = hapd->conf->venue_group;
- *pos++ = hapd->conf->venue_type;
- }
- if (!is_zero_ether_addr(hapd->conf->hessid)) {
- os_memcpy(pos, hapd->conf->hessid, ETH_ALEN);
- pos += ETH_ALEN;
- }
- *len = pos - len - 1;
- #endif /* CONFIG_INTERWORKING */
- return pos;
- }
- u8 * hostapd_eid_adv_proto(struct hostapd_data *hapd, u8 *eid)
- {
- u8 *pos = eid;
- #ifdef CONFIG_INTERWORKING
- /* TODO: Separate configuration for ANQP? */
- if (!hapd->conf->interworking)
- return eid;
- *pos++ = WLAN_EID_ADV_PROTO;
- *pos++ = 2;
- *pos++ = 0x7F; /* Query Response Length Limit | PAME-BI */
- *pos++ = ACCESS_NETWORK_QUERY_PROTOCOL;
- #endif /* CONFIG_INTERWORKING */
- return pos;
- }
- u8 * hostapd_eid_roaming_consortium(struct hostapd_data *hapd, u8 *eid)
- {
- u8 *pos = eid;
- #ifdef CONFIG_INTERWORKING
- u8 *len;
- unsigned int i, count;
- if (!hapd->conf->interworking ||
- hapd->conf->roaming_consortium == NULL ||
- hapd->conf->roaming_consortium_count == 0)
- return eid;
- *pos++ = WLAN_EID_ROAMING_CONSORTIUM;
- len = pos++;
- /* Number of ANQP OIs (in addition to the max 3 listed here) */
- if (hapd->conf->roaming_consortium_count > 3 + 255)
- *pos++ = 255;
- else if (hapd->conf->roaming_consortium_count > 3)
- *pos++ = hapd->conf->roaming_consortium_count - 3;
- else
- *pos++ = 0;
- /* OU #1 and #2 Lengths */
- *pos = hapd->conf->roaming_consortium[0].len;
- if (hapd->conf->roaming_consortium_count > 1)
- *pos |= hapd->conf->roaming_consortium[1].len << 4;
- pos++;
- if (hapd->conf->roaming_consortium_count > 3)
- count = 3;
- else
- count = hapd->conf->roaming_consortium_count;
- for (i = 0; i < count; i++) {
- os_memcpy(pos, hapd->conf->roaming_consortium[i].oi,
- hapd->conf->roaming_consortium[i].len);
- pos += hapd->conf->roaming_consortium[i].len;
- }
- *len = pos - len - 1;
- #endif /* CONFIG_INTERWORKING */
- return pos;
- }
- u8 * hostapd_eid_time_adv(struct hostapd_data *hapd, u8 *eid)
- {
- if (hapd->conf->time_advertisement != 2)
- return eid;
- if (hapd->time_adv == NULL &&
- hostapd_update_time_adv(hapd) < 0)
- return eid;
- if (hapd->time_adv == NULL)
- return eid;
- os_memcpy(eid, wpabuf_head(hapd->time_adv),
- wpabuf_len(hapd->time_adv));
- eid += wpabuf_len(hapd->time_adv);
- return eid;
- }
- u8 * hostapd_eid_time_zone(struct hostapd_data *hapd, u8 *eid)
- {
- size_t len;
- if (hapd->conf->time_advertisement != 2)
- return eid;
- len = os_strlen(hapd->conf->time_zone);
- *eid++ = WLAN_EID_TIME_ZONE;
- *eid++ = len;
- os_memcpy(eid, hapd->conf->time_zone, len);
- eid += len;
- return eid;
- }
- int hostapd_update_time_adv(struct hostapd_data *hapd)
- {
- const int elen = 2 + 1 + 10 + 5 + 1;
- struct os_time t;
- struct os_tm tm;
- u8 *pos;
- if (hapd->conf->time_advertisement != 2)
- return 0;
- if (os_get_time(&t) < 0 || os_gmtime(t.sec, &tm) < 0)
- return -1;
- if (!hapd->time_adv) {
- hapd->time_adv = wpabuf_alloc(elen);
- if (hapd->time_adv == NULL)
- return -1;
- pos = wpabuf_put(hapd->time_adv, elen);
- } else
- pos = wpabuf_mhead_u8(hapd->time_adv);
- *pos++ = WLAN_EID_TIME_ADVERTISEMENT;
- *pos++ = 1 + 10 + 5 + 1;
- *pos++ = 2; /* UTC time at which the TSF timer is 0 */
- /* Time Value at TSF 0 */
- /* FIX: need to calculate this based on the current TSF value */
- WPA_PUT_LE16(pos, tm.year); /* Year */
- pos += 2;
- *pos++ = tm.month; /* Month */
- *pos++ = tm.day; /* Day of month */
- *pos++ = tm.hour; /* Hours */
- *pos++ = tm.min; /* Minutes */
- *pos++ = tm.sec; /* Seconds */
- WPA_PUT_LE16(pos, 0); /* Milliseconds (not used) */
- pos += 2;
- *pos++ = 0; /* Reserved */
- /* Time Error */
- /* TODO: fill in an estimate on the error */
- *pos++ = 0;
- *pos++ = 0;
- *pos++ = 0;
- *pos++ = 0;
- *pos++ = 0;
- *pos++ = hapd->time_update_counter++;
- return 0;
- }
- u8 * hostapd_eid_bss_max_idle_period(struct hostapd_data *hapd, u8 *eid)
- {
- u8 *pos = eid;
- #ifdef CONFIG_WNM
- if (hapd->conf->ap_max_inactivity > 0) {
- unsigned int val;
- *pos++ = WLAN_EID_BSS_MAX_IDLE_PERIOD;
- *pos++ = 3;
- val = hapd->conf->ap_max_inactivity;
- if (val > 68000)
- val = 68000;
- val *= 1000;
- val /= 1024;
- if (val == 0)
- val = 1;
- if (val > 65535)
- val = 65535;
- WPA_PUT_LE16(pos, val);
- pos += 2;
- *pos++ = 0x00; /* TODO: Protected Keep-Alive Required */
- }
- #endif /* CONFIG_WNM */
- return pos;
- }
- #ifdef CONFIG_MBO
- u8 * hostapd_eid_mbo(struct hostapd_data *hapd, u8 *eid, size_t len)
- {
- u8 mbo[6], *mbo_pos = mbo;
- u8 *pos = eid;
- if (!hapd->conf->mbo_enabled)
- return eid;
- *mbo_pos++ = MBO_ATTR_ID_AP_CAPA_IND;
- *mbo_pos++ = 1;
- /* Not Cellular aware */
- *mbo_pos++ = 0;
- if (hapd->mbo_assoc_disallow) {
- *mbo_pos++ = MBO_ATTR_ID_ASSOC_DISALLOW;
- *mbo_pos++ = 1;
- *mbo_pos++ = hapd->mbo_assoc_disallow;
- }
- pos += mbo_add_ie(pos, len, mbo, mbo_pos - mbo);
- return pos;
- }
- u8 hostapd_mbo_ie_len(struct hostapd_data *hapd)
- {
- if (!hapd->conf->mbo_enabled)
- return 0;
- /*
- * MBO IE header (6) + Capability Indication attribute (3) +
- * Association Disallowed attribute (3) = 12
- */
- return 6 + 3 + (hapd->mbo_assoc_disallow ? 3 : 0);
- }
- #endif /* CONFIG_MBO */
- void ap_copy_sta_supp_op_classes(struct sta_info *sta,
- const u8 *supp_op_classes,
- size_t supp_op_classes_len)
- {
- if (!supp_op_classes)
- return;
- os_free(sta->supp_op_classes);
- sta->supp_op_classes = os_malloc(1 + supp_op_classes_len);
- if (!sta->supp_op_classes)
- return;
- sta->supp_op_classes[0] = supp_op_classes_len;
- os_memcpy(sta->supp_op_classes + 1, supp_op_classes,
- supp_op_classes_len);
- }
- u8 * hostapd_eid_fils_indic(struct hostapd_data *hapd, u8 *eid, int hessid)
- {
- u8 *pos = eid;
- #ifdef CONFIG_FILS
- u8 *len;
- u16 fils_info = 0;
- if (!(hapd->conf->wpa & WPA_PROTO_RSN) ||
- !wpa_key_mgmt_fils(hapd->conf->wpa_key_mgmt))
- return pos;
- *pos++ = WLAN_EID_FILS_INDICATION;
- len = pos++;
- /* TODO: B0..B2: Number of Public Key Identifiers */
- if (hapd->conf->erp_domain) {
- /* TODO: Support for setting multiple domain identifiers */
- /* B3..B5: Number of Realm Identifiers */
- fils_info |= BIT(3);
- }
- /* TODO: B6: FILS IP Address Configuration */
- if (hapd->conf->fils_cache_id_set)
- fils_info |= BIT(7);
- if (hessid && !is_zero_ether_addr(hapd->conf->hessid))
- fils_info |= BIT(8); /* HESSID Included */
- /* FILS Shared Key Authentication without PFS Supported */
- fils_info |= BIT(9);
- /* TODO: B10: FILS Shared Key Authentication with PFS Supported */
- /* TODO: B11: FILS Public Key Authentication Supported */
- /* B12..B15: Reserved */
- WPA_PUT_LE16(pos, fils_info);
- pos += 2;
- if (hapd->conf->fils_cache_id_set) {
- os_memcpy(pos, hapd->conf->fils_cache_id, FILS_CACHE_ID_LEN);
- pos += FILS_CACHE_ID_LEN;
- }
- if (hessid && !is_zero_ether_addr(hapd->conf->hessid)) {
- os_memcpy(pos, hapd->conf->hessid, ETH_ALEN);
- pos += ETH_ALEN;
- }
- if (hapd->conf->erp_domain) {
- fils_domain_name_hash(hapd->conf->erp_domain, pos);
- pos += 2;
- }
- *len = pos - len - 1;
- #endif /* CONFIG_FILS */
- return pos;
- }
|