#include <asm/types.h>
#include "common.h"
Go to the source code of this file.
Data Structures | |
struct | wapi_ie_t |
Defines | |
#define | WAPI_ELEMENT 0x44 |
#define | WAPI_VERSION 1 |
Functions | |
struct wapi_ie_t | __attribute__ ((packed)) |
int | parse_wapi_ie (unsigned char *wapi_ie, unsigned int wapi_ie_len, struct ap_info_t *ap_info) |
int | generate_wapi_ie (guint32 encryption, struct wlan_status_t *wlan_status) |
Variables | |
guint8 | element_id |
guint8 | length |
guint16 | version |
static const guint8 | CIPHER_SUITE_WAPI [] = {0x00, 0x14, 0x72, 1} |
static const guint8 | WAPI_KEY_MGMT_CERT [] = {0x00, 0x14, 0x72, 1} |
static const guint8 | WAPI_KEY_MGMT_PSK [] = {0x00, 0x14, 0x72, 2} |
Copyright (C) 2009 Nokia Corporation. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Definition in file wapi.h.
int generate_wapi_ie | ( | guint32 | encryption, | |
struct wlan_status_t * | wlan_status | |||
) |
Generate WAPI Information Element.
encryption | Encryption settings. | |
wlan_status | Wlan status information. |
Definition at line 87 of file wapi.c.
References find_pmkid_from_pmk_cache(), and update_own_ie().
Referenced by associate().
int parse_wapi_ie | ( | unsigned char * | wapi_ie, | |
unsigned int | wapi_ie_len, | |||
struct ap_info_t * | ap_info | |||
) |
Parse WAPI IE.
wapi_ie | WPA IE. | |
wapi_ie_len | WPA IE length. | |
ap_info | AP Information pointer. |
Definition at line 190 of file wapi.c.
References parse_wapi_cipher_suite(), and parse_wapi_key_mgmt_suite().
Referenced by nl80211_parse_ies().