about summary refs log tree commit diff
path: root/src/wifi/wifi-utils-wext.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2013-02-20 23:06:55 +0100
committerMichael Biebl <biebl@debian.org>2013-02-20 23:06:55 +0100
commit6bb18bdca6b7bf811bdd00dbea1b09f3a367d2dc (patch)
tree8fec068abdd1bc1ade3839f599e1c18d6c524a6a /src/wifi/wifi-utils-wext.c
parentfdcb282bbb150da0049cf2dd5b54e56eb3d0b55f (diff)
parent8d275584fc94f398f0a7c990dcd057533d9a5856 (diff)
Merge tag 'upstream/0.9.8.0' into experimental
Upstream version 0.9.8.0
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;
 }