From 53d8f49bcd2a2a49fd01e56321527cd2480014e7 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 10 Apr 2013 16:02:35 -0500 Subject: [PATCH] wifi: AP mode connections are always available Just like adhoc, they don't need to be found in the scan list. --- src/nm-device-wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nm-device-wifi.c b/src/nm-device-wifi.c index 8676c09177..bdc444c0e6 100644 --- a/src/nm-device-wifi.c +++ b/src/nm-device-wifi.c @@ -1136,7 +1136,7 @@ check_connection_available (NMDevice *device, NMConnection *connection) * at any time. */ mode = nm_setting_wireless_get_mode (s_wifi); - if (g_strcmp0 (mode, "adhoc") == 0) + if (g_str_equal (mode, "adhoc") || g_str_equal (mode, "ap")) return TRUE; /* Hidden SSIDs obviously don't always appear in the scan list either */