You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each VintageNetWiFi config has the WPASupplicant module listed as a child spec, meaning the underlying wpa_supplicant process gets started and killed as a part of that config's life cycle. However, killing wpa_supplicant has some implications, notably removing any interfaces it cares about. In the case of reconfiguring VintageNetWiFi, this is a superfluous step that potentially causes problems due to the interface being removed at the kernel level for a moment. I think there may also be a race in the Interface state machine that can accidentally trigger a 30-second retry due to wpa_supplicant getting killed when reconfiguring.
I'm thinking that WPASupplicant could be managed at the Interface level as some kind of lifetime-supervised process, instead of at the per-config level. The config's up_cmds could include issuing a RECONFIGURE command over the command interface to make wpa_supplicant pick up and apply the new config. For systems that update their config multiple times at runtime, this ensures that wpa_supplicant is a long-lived process that's not directly tied to a specific configuration.
The text was updated successfully, but these errors were encountered:
Each VintageNetWiFi config has the
WPASupplicant
module listed as a child spec, meaning the underlyingwpa_supplicant
process gets started and killed as a part of that config's life cycle. However, killingwpa_supplicant
has some implications, notably removing any interfaces it cares about. In the case of reconfiguring VintageNetWiFi, this is a superfluous step that potentially causes problems due to the interface being removed at the kernel level for a moment. I think there may also be a race in the Interface state machine that can accidentally trigger a 30-second retry due towpa_supplicant
getting killed when reconfiguring.I'm thinking that
WPASupplicant
could be managed at the Interface level as some kind of lifetime-supervised process, instead of at the per-config level. The config'sup_cmds
could include issuing aRECONFIGURE
command over the command interface to makewpa_supplicant
pick up and apply the new config. For systems that update their config multiple times at runtime, this ensures thatwpa_supplicant
is a long-lived process that's not directly tied to a specific configuration.The text was updated successfully, but these errors were encountered: