diff options
| author | Michael Biebl <biebl@debian.org> | 2010-11-29 00:47:11 +0100 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2010-11-29 00:47:11 +0100 |
| commit | 9fae01fa351805b2903e535736e06971bc0b925e (patch) | |
| tree | c19bccf84c9f894e50fae678ba6ee2b2044e2d30 /src/wpa.h | |
Imported Upstream version 0.8.1 upstream/0.8.1
Diffstat (limited to 'src/wpa.h')
| -rw-r--r-- | src/wpa.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/wpa.h b/src/wpa.h new file mode 100644 index 00000000..18d1dbee --- /dev/null +++ b/src/wpa.h @@ -0,0 +1,38 @@ +/* + * wpa_supplicant - WPA definitions + * Copyright (c) 2003-2005, Jouni Malinen <jkmaline@cc.hut.fi> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Alternatively, this file may be distributed under the terms of BSD + * license. + * + * See README and COPYING for more details. + */ + +#ifndef WPA_H +#define WPA_H + +#include <stdint.h> + +#define WPA_GENERIC_INFO_ELEM 0xdd +#define WPA_RSN_INFO_ELEM 0x30 + +#define WPA_MAX_IE_LEN 40 + +typedef struct wpa_ie_data { + int proto; + int pairwise_cipher; + int group_cipher; + int key_mgmt; + int capabilities; + int num_pmkid; + const uint8_t *pmkid; +} wpa_ie_data; + + +wpa_ie_data * wpa_parse_wpa_ie (const uint8_t *wpa_ie, size_t wpa_ie_len); + +#endif /* WPA_H */ |