mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 07:10:07 +01:00
supplicant: clarify ready_count usage
This commit is contained in:
parent
6aa9e52bd8
commit
cab17ff8e0
1 changed files with 15 additions and 13 deletions
|
|
@ -1638,6 +1638,21 @@ on_iface_proxy_acquired (GDBusProxy *proxy, GAsyncResult *result, gpointer user_
|
|||
NULL,
|
||||
NULL);
|
||||
|
||||
/* Check whether NetworkReply and AP mode are supported.
|
||||
* ready_count was initialized to 1 in interface_add_done().
|
||||
*/
|
||||
g_dbus_proxy_call (priv->iface_proxy,
|
||||
"NetworkReply",
|
||||
g_variant_new ("(oss)",
|
||||
"/fff",
|
||||
"foobar",
|
||||
"foobar"),
|
||||
G_DBUS_CALL_FLAGS_NONE,
|
||||
-1,
|
||||
priv->init_cancellable,
|
||||
(GAsyncReadyCallback) iface_check_netreply_cb,
|
||||
self);
|
||||
|
||||
/* Initialize global PMF setting to 'optional' */
|
||||
priv->ready_count++;
|
||||
g_dbus_proxy_call (priv->iface_proxy,
|
||||
|
|
@ -1652,19 +1667,6 @@ on_iface_proxy_acquired (GDBusProxy *proxy, GAsyncResult *result, gpointer user_
|
|||
(GAsyncReadyCallback) iface_set_pmf_cb,
|
||||
self);
|
||||
|
||||
/* Check whether NetworkReply and AP mode are supported */
|
||||
g_dbus_proxy_call (priv->iface_proxy,
|
||||
"NetworkReply",
|
||||
g_variant_new ("(oss)",
|
||||
"/fff",
|
||||
"foobar",
|
||||
"foobar"),
|
||||
G_DBUS_CALL_FLAGS_NONE,
|
||||
-1,
|
||||
priv->init_cancellable,
|
||||
(GAsyncReadyCallback) iface_check_netreply_cb,
|
||||
self);
|
||||
|
||||
if (priv->ap_support == NM_SUPPLICANT_FEATURE_UNKNOWN) {
|
||||
/* If the global supplicant capabilities property is not present, we can
|
||||
* fall back to checking whether the ProbeRequest method is supported. If
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue