From 49bc686b2d05acef909449e61f1492e346a7dff4 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 9 Sep 2021 16:05:24 -0700 Subject: [PATCH] owe: remove ssid length check for OWE transition element This removes the SSID length check when appending the OWE transition element. With this check in place the transition element is never appended to the hidden OWE network. Signed-off-by: James Prestwood --- src/ap/ieee802_11_shared.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ap/ieee802_11_shared.c b/src/ap/ieee802_11_shared.c index 4bff9e591..fc3b2e01e 100644 --- a/src/ap/ieee802_11_shared.c +++ b/src/ap/ieee802_11_shared.c @@ -812,8 +812,7 @@ u8 hostapd_mbo_ie_len(struct hostapd_data *hapd) #ifdef CONFIG_OWE static int hostapd_eid_owe_trans_enabled(struct hostapd_data *hapd) { - return hapd->conf->owe_transition_ssid_len > 0 && - !is_zero_ether_addr(hapd->conf->owe_transition_bssid); + return !is_zero_ether_addr(hapd->conf->owe_transition_bssid); } #endif /* CONFIG_OWE */ -- 2.31.1