Skip to content

Commit ed68b72

Browse files
krish2718markaj-nordic
authored andcommitted
[nrf noup] wifi: Fix 5GHz association
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)
1 parent c32a583 commit ed68b72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/platform/nrfconnect/wifi/WiFiManager.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ void WiFiManager::ScanResultHandler(Platform::UniquePtr<uint8_t> data)
363363
Instance().mWiFiParams.mParams.timeout = Instance().mHandling.mConnectionTimeout.count();
364364
Instance().mWiFiParams.mParams.channel = WIFI_CHANNEL_ANY;
365365
Instance().mWiFiParams.mRssi = scanResult->rssi;
366+
Instance().mWiFiParams.mParams.band = WIFI_FREQ_BAND_UNKNOWN;
366367
Instance().mSsidFound = true;
367368
}
368369
}

0 commit comments

Comments
 (0)