From 31752076f3b8217cf86e37e2d42374e87a4206cf Mon Sep 17 00:00:00 2001 From: Axel Le Bourhis Date: Wed, 14 Aug 2024 14:51:43 +0200 Subject: [PATCH] [NXP][Zephyr] Provide AP band in connection request parameters Signed-off-by: Axel Le Bourhis --- src/platform/Zephyr/wifi/WiFiManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platform/Zephyr/wifi/WiFiManager.cpp b/src/platform/Zephyr/wifi/WiFiManager.cpp index 11187a7cef1655..01d0d937b19b3a 100644 --- a/src/platform/Zephyr/wifi/WiFiManager.cpp +++ b/src/platform/Zephyr/wifi/WiFiManager.cpp @@ -347,7 +347,8 @@ void WiFiManager::ScanResultHandler(Platform::UniquePtr data) Instance().mWiFiParams.mParams.security = scanResult->security <= WIFI_SECURITY_TYPE_MAX ? scanResult->security : WIFI_SECURITY_TYPE_PSK; Instance().mWiFiParams.mParams.psk_length = static_cast(Instance().mWantedNetwork.passLen); - Instance().mWiFiParams.mParams.mfp = (scanResult->mfp == WIFI_MFP_REQUIRED) ? WIFI_MFP_REQUIRED : WIFI_MFP_OPTIONAL; + Instance().mWiFiParams.mParams.mfp = scanResult->mfp; + Instance().mWiFiParams.mParams.band = scanResult->band; // If the security is none, WiFi driver expects the psk to be nullptr if (Instance().mWiFiParams.mParams.security == WIFI_SECURITY_TYPE_NONE)