fix(wpa_supplicant): Fix coverity issue (CID 900721)

Return a valid band mode in case of get_band failure
This commit is contained in:
Nachiket Kukade
2026-03-06 10:53:49 +05:30
committed by BOT
parent 1dbf5247d1
commit 5cd80dd8a8
@@ -1447,6 +1447,7 @@ static int wps_rf_band_cb(void *ctx)
if (ret != ESP_OK) {
wpa_printf(MSG_ERROR, "WPS: failed to get band mode");
return WPS_RF_24GHZ;
}
switch (band_mode) {