Data Structures | Defines | Functions | Variables

wapi.h File Reference

#include <asm/types.h>
#include "common.h"
Include dependency graph for wapi.h:
This graph shows which files directly or indirectly include this file:

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}

Detailed Description

Copyright (C) 2009 Nokia Corporation. All rights reserved.

Author:
Usman Rahim <usman.rahim@nokia.com>

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.


Function Documentation

int generate_wapi_ie ( guint32  encryption,
struct wlan_status_t wlan_status 
)

Generate WAPI Information Element.

Parameters:
encryption Encryption settings.
wlan_status Wlan status information.
Returns:
status.

Definition at line 87 of file wapi.c.

References find_pmkid_from_pmk_cache(), and update_own_ie().

Referenced by associate().

Here is the call graph for this function:

int parse_wapi_ie ( unsigned char *  wapi_ie,
unsigned int  wapi_ie_len,
struct ap_info_t ap_info 
)

Parse WAPI IE.

Parameters:
wapi_ie WPA IE.
wapi_ie_len WPA IE length.
ap_info AP Information pointer.
Returns:
status.

Definition at line 190 of file wapi.c.

References parse_wapi_cipher_suite(), and parse_wapi_key_mgmt_suite().

Referenced by nl80211_parse_ies().

Here is the call graph for this function: