aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config_ssid.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-12-28 14:00:36 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-28 14:00:36 (GMT)
commitd7dcba70bc1f55474fd7869a54c324ec4ea0b41a (patch)
tree1a4b2d28b6045a726c17162e9c8a6f89410f370d /wpa_supplicant/config_ssid.h
parent139a33f34e30eb2a02c2a975d2e5666705e930a1 (diff)
downloadhostap-d7dcba70bc1f55474fd7869a54c324ec4ea0b41a.zip
hostap-d7dcba70bc1f55474fd7869a54c324ec4ea0b41a.tar.gz
hostap-d7dcba70bc1f55474fd7869a54c324ec4ea0b41a.tar.bz2
Define struct wpa_ssid::mode as an enum with more readable values
Diffstat (limited to 'wpa_supplicant/config_ssid.h')
-rw-r--r--wpa_supplicant/config_ssid.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/wpa_supplicant/config_ssid.h b/wpa_supplicant/config_ssid.h
index e3dcabc..6056c9c 100644
--- a/wpa_supplicant/config_ssid.h
+++ b/wpa_supplicant/config_ssid.h
@@ -280,7 +280,11 @@ struct wpa_ssid {
* pairwise=NONE, group=TKIP (or CCMP, but not both), and psk must also
* be set (either directly or using ASCII passphrase).
*/
- int mode;
+ enum wpas_mode {
+ WPAS_MODE_INFRA = 0,
+ WPAS_MODE_IBSS = 1,
+ WPAS_MODE_AP = 2,
+ } mode;
/**
* disabled - Whether this network is currently disabled