#include "includes.h"
#include "common.h"
#include "l2_packet/l2_packet.h"
#include "rsn_supp/wpa.h"
#include "rsn_supp/wpa_ie.h"
#include "ap/wpa_auth.h"
#include "wpa_supplicant_i.h"
#include "driver_i.h"
#include "ibss_rsn.h"
Go to the source code of this file.
Functions | |
static const u8 * | auth_get_psk (void *ctx, const u8 *addr, const u8 *prev_psk) |
static void | auth_logger (void *ctx, const u8 *addr, logger_level level, const char *txt) |
static int | auth_send_eapol (void *ctx, const u8 *addr, const u8 *data, size_t data_len, int encrypt) |
static int | auth_set_key (void *ctx, int vlan_id, enum wpa_alg alg, const u8 *addr, int idx, u8 *key, size_t key_len) |
static int | ibss_rsn_auth_init (struct ibss_rsn *ibss_rsn, struct ibss_rsn_peer *peer) |
static int | ibss_rsn_auth_init_group (struct ibss_rsn *ibss_rsn, const u8 *own_addr) |
void | ibss_rsn_deinit (struct ibss_rsn *ibss_rsn) |
static int | ibss_rsn_eapol_dst_supp (const u8 *buf, size_t len) |
static void | ibss_rsn_free (struct ibss_rsn_peer *peer) |
struct ibss_rsn * | ibss_rsn_init (struct wpa_supplicant *wpa_s) |
static int | ibss_rsn_process_rx_eapol (struct ibss_rsn *ibss_rsn, struct ibss_rsn_peer *peer, const u8 *buf, size_t len) |
int | ibss_rsn_rx_eapol (struct ibss_rsn *ibss_rsn, const u8 *src_addr, const u8 *buf, size_t len) |
void | ibss_rsn_set_psk (struct ibss_rsn *ibss_rsn, const u8 *psk) |
int | ibss_rsn_start (struct ibss_rsn *ibss_rsn, const u8 *addr) |
int | ibss_rsn_supp_init (struct ibss_rsn_peer *peer, const u8 *own_addr, const u8 *psk) |
static u8 * | supp_alloc_eapol (void *ctx, u8 type, const void *data, u16 data_len, size_t *msg_len, void **data_pos) |
static void | supp_cancel_auth_timeout (void *ctx) |
static int | supp_ether_send (void *ctx, const u8 *dest, u16 proto, const u8 *buf, size_t len) |
static int | supp_get_beacon_ie (void *ctx) |
static void * | supp_get_network_ctx (void *ctx) |
static int | supp_mlme_setprotection (void *ctx, const u8 *addr, int protection_type, int key_type) |
static int | supp_set_key (void *ctx, enum wpa_alg alg, const u8 *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len) |
static void | supp_set_state (void *ctx, enum wpa_states state) |
static const u8* auth_get_psk | ( | void * | ctx, |
const u8 * | addr, | ||
const u8 * | prev_psk | ||
) | [static] |
Definition at line 212 of file ibss_rsn.c.
static void auth_logger | ( | void * | ctx, |
const u8 * | addr, | ||
logger_level | level, | ||
const char * | txt | ||
) | [static] |
Definition at line 201 of file ibss_rsn.c.
static int auth_send_eapol | ( | void * | ctx, |
const u8 * | addr, | ||
const u8 * | data, | ||
size_t | data_len, | ||
int | encrypt | ||
) | [static] |
Definition at line 223 of file ibss_rsn.c.
static int auth_set_key | ( | void * | ctx, |
int | vlan_id, | ||
enum wpa_alg | alg, | ||
const u8 * | addr, | ||
int | idx, | ||
u8 * | key, | ||
size_t | key_len | ||
) | [static] |
Definition at line 241 of file ibss_rsn.c.
static int ibss_rsn_auth_init | ( | struct ibss_rsn * | ibss_rsn, |
struct ibss_rsn_peer * | peer | ||
) | [static] |
Definition at line 309 of file ibss_rsn.c.
static int ibss_rsn_auth_init_group | ( | struct ibss_rsn * | ibss_rsn, |
const u8 * | own_addr | ||
) | [static] |
Definition at line 276 of file ibss_rsn.c.
void ibss_rsn_deinit | ( | struct ibss_rsn * | ibss_rsn | ) |
Definition at line 390 of file ibss_rsn.c.
static int ibss_rsn_eapol_dst_supp | ( | const u8 * | buf, |
size_t | len | ||
) | [static] |
Definition at line 410 of file ibss_rsn.c.
static void ibss_rsn_free | ( | struct ibss_rsn_peer * | peer | ) | [static] |
Definition at line 27 of file ibss_rsn.c.
struct ibss_rsn* ibss_rsn_init | ( | struct wpa_supplicant * | wpa_s | ) | [read] |
Definition at line 372 of file ibss_rsn.c.
static int ibss_rsn_process_rx_eapol | ( | struct ibss_rsn * | ibss_rsn, |
struct ibss_rsn_peer * | peer, | ||
const u8 * | buf, | ||
size_t | len | ||
) | [static] |
Definition at line 453 of file ibss_rsn.c.
int ibss_rsn_rx_eapol | ( | struct ibss_rsn * | ibss_rsn, |
const u8 * | src_addr, | ||
const u8 * | buf, | ||
size_t | len | ||
) |
Definition at line 481 of file ibss_rsn.c.
void ibss_rsn_set_psk | ( | struct ibss_rsn * | ibss_rsn, |
const u8 * | psk | ||
) |
Definition at line 507 of file ibss_rsn.c.
int ibss_rsn_start | ( | struct ibss_rsn * | ibss_rsn, |
const u8 * | addr | ||
) |
Definition at line 340 of file ibss_rsn.c.
int ibss_rsn_supp_init | ( | struct ibss_rsn_peer * | peer, |
const u8 * | own_addr, | ||
const u8 * | psk | ||
) |
Definition at line 156 of file ibss_rsn.c.
static u8* supp_alloc_eapol | ( | void * | ctx, |
u8 | type, | ||
const void * | data, | ||
u16 | data_len, | ||
size_t * | msg_len, | ||
void ** | data_pos | ||
) | [static] |
Definition at line 59 of file ibss_rsn.c.
static void supp_cancel_auth_timeout | ( | void * | ctx | ) | [static] |
Definition at line 150 of file ibss_rsn.c.
static int supp_ether_send | ( | void * | ctx, |
const u8 * | dest, | ||
u16 | proto, | ||
const u8 * | buf, | ||
size_t | len | ||
) | [static] |
Definition at line 42 of file ibss_rsn.c.
static int supp_get_beacon_ie | ( | void * | ctx | ) | [static] |
Definition at line 88 of file ibss_rsn.c.
static void* supp_get_network_ctx | ( | void * | ctx | ) | [static] |
Definition at line 133 of file ibss_rsn.c.
static int supp_mlme_setprotection | ( | void * | ctx, |
const u8 * | addr, | ||
int | protection_type, | ||
int | key_type | ||
) | [static] |
Definition at line 140 of file ibss_rsn.c.
static int supp_set_key | ( | void * | ctx, |
enum wpa_alg | alg, | ||
const u8 * | addr, | ||
int | key_idx, | ||
int | set_tx, | ||
const u8 * | seq, | ||
size_t | seq_len, | ||
const u8 * | key, | ||
size_t | key_len | ||
) | [static] |
Definition at line 103 of file ibss_rsn.c.
static void supp_set_state | ( | void * | ctx, |
enum wpa_states | state | ||
) | [static] |
Definition at line 35 of file ibss_rsn.c.