summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-01-31 10:40:38 -0500
committerDan Winship <danw@gnome.org>2013-02-11 12:39:28 -0500
commitfc700e9213ef8f7725f2c935d5e0fd681bfaec31 (patch)
tree4a614e39d29e560c7cb140f154062d8b526367c2 /include
parentdf796527a44ba9ca4e267afa26e242c6d2b9dec8 (diff)
downloadNetworkManager-fc700e9213ef8f7725f2c935d5e0fd681bfaec31.tar.gz
core: add NM_WIFI_DEVICE_CAP_ADHOC
Some wireless devices don't support Ad-Hoc mode. Expose this fact in the wireless capabilities so that clients can disable the hot-spot option if neither CAP_ADHOC nor CAP_AP is available. https://bugzilla.gnome.org/show_bug.cgi?id=692869
Diffstat (limited to 'include')
-rw-r--r--include/NetworkManager.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/NetworkManager.h b/include/NetworkManager.h
index 3d35a59405..d45ad07b3f 100644
--- a/include/NetworkManager.h
+++ b/include/NetworkManager.h
@@ -158,6 +158,7 @@ typedef enum {
* @NM_WIFI_DEVICE_CAP_WPA: device supports WPA1 authentication
* @NM_WIFI_DEVICE_CAP_RSN: device supports WPA2/RSN authentication
* @NM_WIFI_DEVICE_CAP_AP: device supports Access Point mode
+ * @NM_WIFI_DEVICE_CAP_ADHOC: device supports Ad-Hoc mode
*
* 802.11 specific device encryption and authentication capabilities.
**/
@@ -169,7 +170,8 @@ typedef enum {
NM_WIFI_DEVICE_CAP_CIPHER_CCMP = 0x00000008,
NM_WIFI_DEVICE_CAP_WPA = 0x00000010,
NM_WIFI_DEVICE_CAP_RSN = 0x00000020,
- NM_WIFI_DEVICE_CAP_AP = 0x00000040
+ NM_WIFI_DEVICE_CAP_AP = 0x00000040,
+ NM_WIFI_DEVICE_CAP_ADHOC = 0x00000080
} NMDeviceWifiCapabilities;