From 9c202e3e860b3be9e1f8882630b69affbb130102 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Sun, 3 Feb 2013 14:49:22 +0100 Subject: Imported Upstream version 0.9.7.995 --- src/nm-wifi-ap-utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/nm-wifi-ap-utils.c') diff --git a/src/nm-wifi-ap-utils.c b/src/nm-wifi-ap-utils.c index 215c4935..29aa52a4 100644 --- a/src/nm-wifi-ap-utils.c +++ b/src/nm-wifi-ap-utils.c @@ -514,7 +514,8 @@ nm_ap_utils_complete_connection (const GByteArray *ap_ssid, gboolean valid = FALSE; /* Make sure the supplied mode matches the AP's */ - if (!strcmp (mode, NM_SETTING_WIRELESS_MODE_INFRA)) { + if ( !strcmp (mode, NM_SETTING_WIRELESS_MODE_INFRA) + || !strcmp (mode, NM_SETTING_WIRELESS_MODE_AP)) { if (ap_mode == NM_802_11_MODE_INFRA) valid = TRUE; } else if (!strcmp (mode, NM_SETTING_WIRELESS_MODE_ADHOC)) { -- cgit 1.3.0-6-gf8a5