#include <asm/types.h>
#include "common.h"
Go to the source code of this file.
Data Structures | |
struct | rsn_ie_t |
struct | wpa_ie_t |
struct | ap_info_t |
Defines | |
#define | MAX_WPA_KEY_LEN 32 |
#define | WPA_ELEMENT 0xDD |
#define | RSN_ELEMENT 0x30 |
#define | WPA_VERSION 1 |
#define | RSN_VERSION 1 |
#define | CIPHER_SUITE_LEN 4 |
#define | WPA_PSK 1 |
#define | WPA_802_1X 2 |
Functions | |
gboolean | set_encryption_method (guint32 cipher, struct wlan_status_t *wlan_status) |
int | set_wpa_encryption (int encryption, struct wlan_status_t *wlan_status) |
int | set_wpa2_encryption (int encryption, struct wlan_status_t *wlan_status) |
int | handle_mic_failure (gboolean key_type, unsigned char *bssid) |
int | parse_rsn_ie (unsigned char *wpa_ie, unsigned int wpa_ie_len, struct ap_info_t *ap_info) |
int | parse_wpa_ie (unsigned char *wpa_ie, unsigned int wpa_ie_len, struct ap_info_t *ap_info) |
int | handle_wps_ie (unsigned char *p, struct scan_results_t *scan_results, unsigned int length) |
int | set_countermeasures (guint on_off) |
gboolean | is_ap_in_black_list (unsigned char *bssid) |
int | set_wpa_ie (struct wlan_status_t *wlan_status) |
Variables | |
struct rsn_ie_t | packed |
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 wpa.h.
int handle_mic_failure | ( | gboolean | key_type, | |
unsigned char * | bssid | |||
) |
Handle MIC failure.
key_type | Key type (pairwise/group). |
Definition at line 608 of file wpa.c.
References mic_failure_running_cb(), mic_failure_timer_cb(), mlme_command(), set_wlan_state(), and wpa_mic_failure_event().
Referenced by handle_custom_event().
int handle_wps_ie | ( | unsigned char * | p, | |
struct scan_results_t * | scan_results, | |||
unsigned int | length | |||
) |
Handle Wifi Protected Setup Information Element.
p | WPS Information Element. | |
scan_results | Scan results. | |
length | WPS Information Element length. |
Definition at line 120 of file wps.c.
References get_tlv_value().
Referenced by handle_wpa_ie_event_binary().
gboolean is_ap_in_black_list | ( | unsigned char * | bssid | ) |
Check if access point is in the black list.
bssid | BSSID. |
Definition at line 562 of file wpa.c.
Referenced by find_connection().
int parse_rsn_ie | ( | unsigned char * | wpa_ie, | |
unsigned int | wpa_ie_len, | |||
struct ap_info_t * | ap_info | |||
) |
Parse RSN IE.
wpa_ie | WPA IE. | |
wpa_ie_len | WPA IE length. | |
ap_info | AP Information pointer. |
Definition at line 662 of file wpa.c.
Referenced by handle_wpa_ie_event_binary().
int parse_wpa_ie | ( | unsigned char * | wpa_ie, | |
unsigned int | wpa_ie_len, | |||
struct ap_info_t * | ap_info | |||
) |
Parse WPA IE.
wpa_ie | WPA IE. | |
wpa_ie_len | WPA IE length. | |
ap_info | AP Information pointer. |
Definition at line 771 of file wpa.c.
Referenced by handle_wpa_ie_event_binary().
int set_countermeasures | ( | guint | on_off | ) |
Set WPA countermeasures.
onoff | On or Off. |
Definition at line 397 of file wpa.c.
References set_encryption_method_helper().
gboolean set_encryption_method | ( | guint32 | encryption, | |
struct wlan_status_t * | wlan_status | |||
) |
Set encryption settings.
encryption | Encryption settings. | |
wlan_status | WLAN status struct. |
Definition at line 409 of file wpa.c.
References generate_wpa2_ie(), generate_wpa_ie(), set_encryption_method_helper(), and set_wpa_ie().
Referenced by associate().
int set_wpa_ie | ( | struct wlan_status_t * | wlan_status | ) |
Set WPA Information Element.
wpa_ie | WPA Information Element. | |
wpa_ie_len | WPA Information Element length. |
Definition at line 322 of file wpa.c.
References init_iwreq(), and socket_open().
Referenced by handle_wap_event(), and set_encryption_method().