Skip to content

Commit

Permalink
[nrf noup] wifi: Fix 5GHz association
Browse files Browse the repository at this point in the history
Wi-Fi stack recently introduced a check for valid band value and the
default value of 0 (memset) means only 2.4GHz, so, 5GHz Wi-Fi
associations will fail.

Fix the default to Unknown to scan all supported bands.

Fixes KRKNWK-18035.

Signed-off-by: Chaitanya Tata <[email protected]>
(cherry picked from commit e8e30f9)
  • Loading branch information
krish2718 authored and markaj-nordic committed Jan 31, 2024
1 parent c32a583 commit ed68b72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/nrfconnect/wifi/WiFiManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@ void WiFiManager::ScanResultHandler(Platform::UniquePtr<uint8_t> data)
Instance().mWiFiParams.mParams.timeout = Instance().mHandling.mConnectionTimeout.count();
Instance().mWiFiParams.mParams.channel = WIFI_CHANNEL_ANY;
Instance().mWiFiParams.mRssi = scanResult->rssi;
Instance().mWiFiParams.mParams.band = WIFI_FREQ_BAND_UNKNOWN;
Instance().mSsidFound = true;
}
}
Expand Down

0 comments on commit ed68b72

Please sign in to comment.