wifi: AP mode connections are always available

Just like adhoc, they don't need to be found in the scan list.
This commit is contained in:
Dan Williams 2013-04-10 16:02:35 -05:00
parent b62a3abbff
commit 53d8f49bcd

View file

@ -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 */