about 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:30 +0100
committerMichael Biebl <biebl@debian.org>2013-02-03 14:49:30 +0100
commit02d69323d320e0df4d7daa6115ee1ac1239b1a58 (patch)
treeb83a6b9a01b302117d31476361971212f9fd1750 /src/nm-wifi-ap-utils.c
parentd31839fb4152978db9734e24c00fbac4f42debb7 (diff)
parent9c202e3e860b3be9e1f8882630b69affbb130102 (diff)
Merge tag 'upstream/0.9.7.995' into experimental
Upstream version 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)) {