Skip to content

Enable LAN plugin when providing a wifi access point

akwizgran requested to merge 1171-wifi-access-point into master

This branch allows the LAN plugin to be used while the device is providing a wifi access point. The interface address 192.168.43.1 is used to detect the access point - this address is used by all ten devices I've tested.

We don't receive a connectivity change event when an access point is enlabed, so we need to listen for changes to the access point state as well as connectivity changes. This means we receive two events in quick succession when the receiver is registered. To prevent these events from causing concurrent calls to bind(), that method has been moved onto a PoliteExecutor that only allows one task to execute at a time. This branch applies the same technique to the Tor plugin, avoiding the need to hold a lock while updating the connection status.

Could be backported.

Closes #1171 (closed)

Edited by akwizgran

Merge request reports