wpa_supplicant / hostapd 2.0
Enumerations | Functions

ieee802_11_auth.h File Reference

hostapd / IEEE 802.11 authentication (ACL) More...

Go to the source code of this file.

Enumerations

enum  { HOSTAPD_ACL_REJECT = 0, HOSTAPD_ACL_ACCEPT = 1, HOSTAPD_ACL_PENDING = 2, HOSTAPD_ACL_ACCEPT_TIMEOUT = 3 }

Functions

int hostapd_allowed_address (struct hostapd_data *hapd, const u8 *addr, const u8 *msg, size_t len, u32 *session_timeout, u32 *acct_interim_interval, int *vlan_id, u8 *psk, int *has_psk)
 Check whether a specified STA can be authenticated.
int hostapd_acl_init (struct hostapd_data *hapd)
void hostapd_acl_deinit (struct hostapd_data *hapd)
 Deinitialize IEEE 802.11 ACL.

Detailed Description

hostapd / IEEE 802.11 authentication (ACL)

Copyright
Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>

This software may be distributed under the terms of the BSD license. See README for more details.


Function Documentation

void hostapd_acl_deinit ( struct hostapd_data hapd)

Deinitialize IEEE 802.11 ACL.

Parameters:
hapdhostapd BSS data
int hostapd_acl_init ( struct hostapd_data hapd)

hostapd_acl_init: Initialize IEEE 802.11 ACL : hostapd BSS data Returns: 0 on success, -1 on failure

int hostapd_allowed_address ( struct hostapd_data hapd,
const u8 *  addr,
const u8 *  msg,
size_t  len,
u32 *  session_timeout,
u32 *  acct_interim_interval,
int *  vlan_id,
u8 *  psk,
int *  has_psk 
)

Check whether a specified STA can be authenticated.

Parameters:
hapdhostapd BSS data
addrMAC address of the STA
msgAuthentication message
lenLength of msg in octets
session_timeoutBuffer for returning session timeout (from RADIUS)
acct_interim_intervalBuffer for returning account interval (from RADIUS)
vlan_idBuffer for returning VLAN ID
pskBuffer for returning WPA PSK
has_pskBuffer for indicating whether psk was filled
Returns:
HOSTAPD_ACL_ACCEPT, HOSTAPD_ACL_REJECT, or HOSTAPD_ACL_PENDING
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines