mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00:00
fix(wpa_supplicant): Fix coverity issue (CID 900721)
Return a valid band mode in case of get_band failure
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user