• Main Page
  • Data Structures
  • Files
  • File List
  • Globals

wapi.h

Go to the documentation of this file.
00001 
00024 #ifndef _WAPI_H_
00025 #define _WAPI_H_
00026 
00027 #include <asm/types.h>
00028 #include "common.h"
00029 
00030 #define WAPI_ELEMENT 0x44
00031 #define WAPI_VERSION 1
00032 
00033 struct wapi_ie_t {
00034         guint8 element_id;
00035         guint8 length;
00036         guint16 version;
00037 } __attribute__ ((packed));
00038 
00039 /* wapi cipher suites */
00040 static const guint8 CIPHER_SUITE_WAPI[] = {0x00, 0x14, 0x72, 1};
00041 
00042 /* wapi authentication and key management suites */
00043 static const guint8 WAPI_KEY_MGMT_CERT[] = {0x00, 0x14, 0x72, 1};
00044 static const guint8 WAPI_KEY_MGMT_PSK[]  = {0x00, 0x14, 0x72, 2};
00045 
00046 int parse_wapi_ie(unsigned char* wapi_ie, unsigned int wapi_ie_len, struct ap_info_t* ap_info);
00047 int generate_wapi_ie(guint32 encryption, struct wlan_status_t *wlan_status);
00048 
00049 #endif /* _WAPI_H_ */

Generated on Wed Aug 10 2011 16:02:33 for WLAN Connection Daemon by  doxygen 1.7.1