nerves-networking / vintage_net_wifi

WiFi networking for VintageNet
Apache License 2.0
32 stars 18 forks source link

Move BSSID requests to a separate process #45

Closed fhunleth closed 3 years ago

fhunleth commented 3 years ago

Move BSSID requests to a separate process

This separates the BSSID informational requests from the main path so that can be done asynchronous and interleaved with more important requests. This way, if there is a massive flurry of BSSID notifications, processing those notifications (even though it's usually quick) will not delay handing of notifications.

This refactoring was originally done since it was hypothesized that notifications would queue up and eventually get dropped at the Unix domain socket level. This wasn't happening. However, since BSSID info requests have been dropped by the wpa_supplicant, this separation feels "good" since it opens up oportunities to reduce redundant requests and possibly to batch updates together to minimize the overhead of dealing with tons of incremental AP notifications.