Skip to content

Commit

Permalink
Revert "[nxp fromtree] [NXP][Zephyr] Provide AP band in connection re…
Browse files Browse the repository at this point in the history
…quest parameters (project-chip#35181)"

This reverts commit 40863ae.

Signed-off-by: marius-alex-tache <[email protected]>
  • Loading branch information
marius-alex-tache committed Sep 4, 2024
1 parent e291710 commit 959a6ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/platform/Zephyr/wifi/WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,7 @@ void WiFiManager::ScanResultHandler(Platform::UniquePtr<uint8_t> 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<uint8_t>(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)
Expand Down

0 comments on commit 959a6ef

Please sign in to comment.