[v6a,5/7] Fixes for wpa_supplicant: AP Extended Key ID support
diff mbox series

Message ID 20190928181807.180530-6-alexander@wetzel-home.de
State New
Headers show
Series
  • Fixes for Extended Key ID patch series V6
Related show

Commit Message

Alexander Wetzel Sept. 28, 2019, 6:18 p.m. UTC
This is a correction on top of:
 [PATCH v6 11/17] wpa_supplicant: AP Extended Key ID support

Changes:
 - Only enable Extended Key ID support when it actually can be used
 - and make this log message level info instead of debug

Signed-off-by: Alexander Wetzel <alexander@wetzel-home.de>
---
 wpa_supplicant/wpa_supplicant.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
index d3684fa1b..b073eccd3 100644
--- a/wpa_supplicant/wpa_supplicant.c
+++ b/wpa_supplicant/wpa_supplicant.c
@@ -1244,8 +1244,11 @@  int wpa_supplicant_set_suites(struct wpa_supplicant *wpa_s,
 	const u8 *bss_wpa, *bss_rsn, *bss_osen;
 
 	if (ssid->mode == WPAS_MODE_INFRA && ssid->wpa_extended_key_id &&
+	    ssid->proto & WPA_PROTO_RSN &&
+	    ssid->pairwise_cipher & (WPA_CIPHER_CCMP | WPA_CIPHER_CCMP_256 |
+				     WPA_CIPHER_GCMP | WPA_CIPHER_GCMP_256) &&
 	    wpa_s->drv_flags & WPA_DRIVER_FLAGS_EXTENDED_KEY_ID) {
-		wpa_msg(wpa_s, MSG_DEBUG, "Enable Extended Key ID support");
+		wpa_msg(wpa_s, MSG_INFO, "Enable Extended Key ID support");
 		wpa_sm_set_param(wpa_s->wpa, WPA_PARAM_EXTENDED_KEY_ID, 1);
 	} else {
 		if (ssid->wpa_extended_key_id)