about summary refs log tree commit diff
path: root/src/wifi/wifi-utils-wext.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wifi/wifi-utils-wext.c')
-rw-r--r--src/wifi/wifi-utils-wext.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wifi/wifi-utils-wext.c b/src/wifi/wifi-utils-wext.c
index 37cd94e9..6e990aed 100644
--- a/src/wifi/wifi-utils-wext.c
+++ b/src/wifi/wifi-utils-wext.c
@@ -556,6 +556,12 @@ wext_get_caps (WifiDataWext *wext, struct iw_range *range)
 		caps &= ~WPA_CAPS;
 	}
 
+	/* There's no way to detect Ad-Hoc/AP mode support with WEXT
+	 * (other than actually trying to do it), so just assume that
+	 * Ad-Hoc is supported and AP isn't.
+	 */
+	caps |= NM_WIFI_DEVICE_CAP_ADHOC;
+
 	return caps;
 }