mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
Merge branch 'bugfix/fix_crash_issue_cause_by_proto_cmd_v5.1' into 'release/v5.1'
fix proto cmd crash problem in iperf example (backport v5.1) See merge request espressif/esp-idf!24727
This commit is contained in:
commit
7a455c15f7
@ -670,6 +670,10 @@ static int wifi_cmd_proto(int argc, char **argv)
|
||||
}
|
||||
wifi_mode_t mode;
|
||||
esp_wifi_get_mode(&mode);
|
||||
if(WIFI_MODE_NULL == mode) {
|
||||
ESP_LOGI(TAG, "current wifi mode is null");
|
||||
return 1;
|
||||
}
|
||||
int ifx = (WIFI_MODE_STA == mode) ? 0 : 1;
|
||||
if (proto_args.proto->count) {
|
||||
if (!strcmp(proto_args.proto->sval[0], "ax")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user