summary refs log tree commit diff
path: root/src/nm-wifi-ap-utils.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2013-02-03 14:49:22 +0100
committerMichael Biebl <biebl@debian.org>2013-02-03 14:49:22 +0100
commit9c202e3e860b3be9e1f8882630b69affbb130102 (patch)
tree8202bf39f2129486971fa7d5ae0dee61a561aa53 /src/nm-wifi-ap-utils.c
parent36cb2f364a821e1be50b23e03a18891ec55adb06 (diff)
Imported Upstream version 0.9.7.995 upstream/0.9.7.995
Diffstat (limited to 'src/nm-wifi-ap-utils.c')
-rw-r--r--src/nm-wifi-ap-utils.c3
1 files changed, 2 insertions, 1 deletions
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)) {