From 959a6ef07a0903c20ee6d897a8fc74e345fbd9e1 Mon Sep 17 00:00:00 2001 From: marius-alex-tache Date: Wed, 4 Sep 2024 16:40:46 +0300 Subject: [PATCH] Revert "[nxp fromtree] [NXP][Zephyr] Provide AP band in connection request parameters (#35181)" This reverts commit 40863ae4961a49403a5d8fe3d55e674f3430c28a. Signed-off-by: marius-alex-tache --- src/platform/Zephyr/wifi/WiFiManager.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platform/Zephyr/wifi/WiFiManager.cpp b/src/platform/Zephyr/wifi/WiFiManager.cpp index a0730c1fa168fd..93a11b988efda8 100644 --- a/src/platform/Zephyr/wifi/WiFiManager.cpp +++ b/src/platform/Zephyr/wifi/WiFiManager.cpp @@ -346,8 +346,7 @@ void WiFiManager::ScanResultHandler(Platform::UniquePtr data, size_t le 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; - Instance().mWiFiParams.mParams.band = scanResult->band; + Instance().mWiFiParams.mParams.mfp = (scanResult->mfp == WIFI_MFP_REQUIRED) ? WIFI_MFP_REQUIRED : WIFI_MFP_OPTIONAL; // If the security is none, WiFi driver expects the psk to be nullptr if (Instance().mWiFiParams.mParams.security == WIFI_SECURITY_TYPE_NONE)