• Juan Luis Leal Contreras's avatar
    Fixed #7406 crash on WiFi STA_DISCONNECTED event with reason 0 (#7414) · f4d8a481
    Juan Luis Leal Contreras authored
    Fixed #7406 . The "reason2str" macro in WiFiGeneric.cpp tries to read memory from index "-1"  in "system_event_reasons" array when handling STA_DISCONNECTED event with reason 0. Dealing with reason 0 as a reason 1 (WIFI_REASON_UNSPECIFIED) will solve the problem (the reason for this event to arrive with reason 0 is unknown). #7406
    f4d8a481
WiFiGeneric.cpp 53.6 KB