This field was removed from the draft specification.
Signed-off-by: Jouni Malinen <jouni.malinen@oss.qualcomm.com>
finally:
dev[0].set("wfa_gen_capa", "0")
-def test_wfa_gen_capa_protected_cert(dev, apdev):
- """WFA generational capabilities indication (protected, cert)"""
- try:
- dev[0].set("wfa_gen_capa", "1")
- run_wfa_gen_capa(dev, apdev, cert=True)
- finally:
- dev[0].set("wfa_gen_capa", "0")
-
-def test_wfa_gen_capa_unprotected_cert(dev, apdev):
- """WFA generational capabilities indication (unprotected, cert)"""
- try:
- dev[0].set("wfa_gen_capa", "2")
- run_wfa_gen_capa(dev, apdev, cert=True)
- finally:
- dev[0].set("wfa_gen_capa", "0")
-
def test_wfa_gen_capa_automatic(dev, apdev):
"""WFA generational capabilities indication (automatic)"""
try:
finally:
dev[0].set("wfa_gen_capa", "0")
-def run_wfa_gen_capa(dev, apdev, cert=False, automatic=False):
+def run_wfa_gen_capa(dev, apdev, automatic=False):
check_sae_capab(dev[0])
params = hostapd.wpa3_params(ssid="wfa-capab", password="12345678")
dev[0].set("sae_groups", "")
if automatic:
dev[0].set("wfa_gen_capa_supp", "")
- dev[0].set("wfa_gen_capa_cert", "")
else:
dev[0].set("wfa_gen_capa_supp", "07")
- if cert:
- dev[0].set("wfa_gen_capa_cert", "07")
- else:
- dev[0].set("wfa_gen_capa_cert", "")
dev[0].connect("wfa-capab", sae_password="12345678", key_mgmt="SAE",
ieee80211w="2", scan_freq="2412")
ev = hapd.wait_event(["WFA-GEN-CAPAB"], timeout=10)
if not val.startswith("01"):
raise Exception("Unexpected indication value: " + val)
else:
- if val != ("01070107" if cert else "0107"):
+ if val != "0107":
raise Exception("Unexpected indication value: " + val)
os_free(config->dpp_extra_conf_req_value);
wpabuf_free(config->dik);
wpabuf_free(config->wfa_gen_capa_supp);
- wpabuf_free(config->wfa_gen_capa_cert);
os_free(config);
}
{ BOOL(ft_prepend_pmkid), CFG_CHANGED_FT_PREPEND_PMKID },
{ INT_RANGE(wfa_gen_capa, 0, 2), 0},
{ BIN(wfa_gen_capa_supp), 0 },
- { BIN(wfa_gen_capa_cert), 0 },
{ BOOL(disable_op_classes_80_80_mhz), 0 },
{ INT(pr_pasn_type), 0 },
{ INT_RANGE(pr_preferred_role, 0, 1), 0},
*/
struct wpabuf *wfa_gen_capa_supp;
- /**
- * wfa_gen_capa_cert: Certified Generations (hexdump of a bit field)
- *
- * This has the same format as wfa_gen_capa_supp. This is an optional
- * field, but if included, shall have the same length as
- * wfa_gen_capa_supp.
- */
- struct wpabuf *wfa_gen_capa_cert;
-
/**
* disable_op_classes_80_80_mhz - Disable advertisement of 80+80 MHz
* channel capabilities in the Supported Operating Classes element
if (config->wfa_gen_capa)
fprintf(f, "wfa_gen_capa=%d\n", config->wfa_gen_capa);
write_global_bin(f, "wfa_gen_capa_supp", config->wfa_gen_capa_supp);
- write_global_bin(f, "wfa_gen_capa_cert", config->wfa_gen_capa_cert);
if (config->disable_op_classes_80_80_mhz)
fprintf(f, "disable_op_classes_80_80_mhz=%d\n",
config->disable_op_classes_80_80_mhz);
size_t gen_len, supp_len;
const u8 *supp;
u8 supp_buf[1];
- bool add_cert;
if (wpa_s->conf->wfa_gen_capa == WFA_GEN_CAPA_DISABLED)
return NULL;
supp = wpabuf_head(wpa_s->conf->wfa_gen_capa_supp);
}
- add_cert = wpa_s->conf->wfa_gen_capa_cert &&
- wpabuf_len(wpa_s->conf->wfa_gen_capa_cert) == supp_len;
-
gen_len = 1 + supp_len;
- if (add_cert) {
- gen_len++;
- gen_len += wpabuf_len(wpa_s->conf->wfa_gen_capa_cert);
- }
attr = wpabuf_alloc(2 + gen_len);
if (!attr)
wpabuf_put_u8(attr, gen_len);
wpabuf_put_u8(attr, supp_len);
wpabuf_put_data(attr, supp, supp_len);
- if (add_cert) {
- wpabuf_put_u8(attr,
- wpabuf_len(wpa_s->conf->wfa_gen_capa_cert));
- wpabuf_put_buf(attr, wpa_s->conf->wfa_gen_capa_cert);
- }
return attr;
}
# bit 2: Wi-Fi 6
# bit 3: Wi-Fi 7
#wfa_gen_capa_supp=07
-#
-# wfa_gen_capa_cert: Certified Generations (hexdump of a bit field)
-# This has the same format as wfa_gen_capa_supp. This is an optional field, but
-# if included, shall have the same length as wfa_gen_capa_supp.
-#wfa_gen_capa_cert=07
# credential block
#