diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2009-12-28 16:00:36 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-12-28 16:00:36 +0200 |
commit | d7dcba70bc1f55474fd7869a54c324ec4ea0b41a (patch) | |
tree | 1a4b2d28b6045a726c17162e9c8a6f89410f370d /wpa_supplicant/config_ssid.h | |
parent | 139a33f34e30eb2a02c2a975d2e5666705e930a1 (diff) | |
download | external_wpa_supplicant_8_ti-d7dcba70bc1f55474fd7869a54c324ec4ea0b41a.zip external_wpa_supplicant_8_ti-d7dcba70bc1f55474fd7869a54c324ec4ea0b41a.tar.gz external_wpa_supplicant_8_ti-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.h | 6 |
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 |