Skip to content

Commit

Permalink
[NXP][Zephyr] Provide AP band in connection request parameters (#35181)
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Le Bourhis <[email protected]>
  • Loading branch information
axelnxp authored and pull[bot] committed Nov 15, 2024
1 parent db8d0a7 commit 2130114
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 2130114

Please sign in to comment.