Skip to content

Commit

Permalink
[NXP][Zephyr] Provide AP band in connection request parameters (proje…
Browse files Browse the repository at this point in the history
…ct-chip#35181)

Signed-off-by: Axel Le Bourhis <[email protected]>
  • Loading branch information
axelnxp authored and shgutte committed Sep 10, 2024
1 parent cb224f7 commit 2219ad8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platform/Zephyr/wifi/WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ void WiFiManager::ScanResultHandler(Platform::UniquePtr<uint8_t> data)
Instance().mWiFiParams.mParams.security =
scanResult->security <= WIFI_SECURITY_TYPE_MAX ? scanResult->security : WIFI_SECURITY_TYPE_PSK;
Instance().mWiFiParams.mParams.psk_length = static_cast<uint8_t>(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)
Expand Down

0 comments on commit 2219ad8

Please sign in to comment.