mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-16 09:28:06 +02:00
Handle AP mode connections by setting the Mode property on IWD's Device interface to "ap" (which will make the Station interface go away, the Powered property -- normally controlled by set_enabled -- to switch to FALSE and back to TRUE, and then the AccessPoint interface to appear) and then calling the AccessPoint.Start method. This is all done in the CONFIG phase in NM. We also attempt to always set Mode back to "station" and wait for the Station interface to reappear before going to the NM DISCONNECTED state. All this complicates the code a little. While making the necessary changes simplify a lot of the checks which are implied by other things we've checked already, for example priv->can_scan and priv->can_connect can now only be TRUE when device is powered up and in station mode (Station interface is present) so we can skip other checks. Also assume that check_connection_compatible has been called before other methods are called so we can skip multiple connection mode checks and checks that a IWD KnownNetwork exsists for EAP connections. act_stage1_prepare and act_stage2_config now borrow more code from nm-device-wifi.c because both backend now handle multiple modes. |
||
|---|---|---|
| .. | ||
| tests | ||
| meson.build | ||
| nm-device-iwd.c | ||
| nm-device-iwd.h | ||
| nm-device-olpc-mesh.c | ||
| nm-device-olpc-mesh.h | ||
| nm-device-wifi.c | ||
| nm-device-wifi.h | ||
| nm-iwd-manager.c | ||
| nm-iwd-manager.h | ||
| nm-wifi-ap.c | ||
| nm-wifi-ap.h | ||
| nm-wifi-common.c | ||
| nm-wifi-common.h | ||
| nm-wifi-factory.c | ||
| nm-wifi-utils.c | ||
| nm-wifi-utils.h | ||