Skip to content

Possible ESP32 hanging WiFi scan issue  #1939

Open
@rujorgensen

Description

@rujorgensen

I've been having this issue (no need to read) with a "hanging" scan, meaning it never terminates.

I've been poking around the source, and was puzzled about something (I cannot directly relate this to my issue though):

  1. Only one scan can be handled at a time.
  2. The callback handler is assigned (== blocked) at line 894
  3. If I'm not mistaking, the scan is started at line 944
  4. The callback handler is released at line 369 when the scan is "culminated"
  5. Between assigning the callback handler (2) (and with that, blocking all later scans), and starting the scan (3), there are three return statements which would cause the scan to never be started at all (and thus, never free'ing the callback handler (4) allowing later scans)

Forgive me if I've missed something, embedded programming can be hard to keep an overview of for me 😬.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ESP32This is only a problem on ESP32-based devices

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions