Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
isl_ioctl.c File Reference
#include <linux/capability.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/if_arp.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <asm/uaccess.h>
#include "prismcompat.h"
#include "isl_ioctl.h"
#include "islpci_mgt.h"
#include "isl_oid.h"
#include "oid_mgt.h"
#include <net/iw_handler.h>

Go to the source code of this file.

Data Structures

struct  ieee80211_beacon_phdr
 

Macros

#define KEY_SIZE_WEP104   13 /* 104/128-bit WEP keys */
 
#define KEY_SIZE_WEP40   5 /* 40/64-bit WEP keys */
 
#define KEY_SIZE_TKIP   32 /* TKIP keys */
 
#define CAP_ESS   0x01
 
#define CAP_IBSS   0x02
 
#define CAP_CRYPT   0x10
 
#define WLAN_FC_TYPE_MGMT   0
 
#define WLAN_FC_STYPE_ASSOC_REQ   0
 
#define WLAN_FC_STYPE_REASSOC_REQ   2
 
#define WLAN_EID_GENERIC   0xdd
 
#define PRISM54_SET_WPA   SIOCIWFIRSTPRIV+12
 
#define PRISM54_RESET   SIOCIWFIRSTPRIV
 
#define PRISM54_GET_POLICY   SIOCIWFIRSTPRIV+1
 
#define PRISM54_SET_POLICY   SIOCIWFIRSTPRIV+2
 
#define PRISM54_GET_MAC   SIOCIWFIRSTPRIV+3
 
#define PRISM54_ADD_MAC   SIOCIWFIRSTPRIV+4
 
#define PRISM54_DEL_MAC   SIOCIWFIRSTPRIV+6
 
#define PRISM54_KICK_MAC   SIOCIWFIRSTPRIV+8
 
#define PRISM54_KICK_ALL   SIOCIWFIRSTPRIV+10
 
#define PRISM54_GET_WPA   SIOCIWFIRSTPRIV+11
 
#define PRISM54_SET_WPA   SIOCIWFIRSTPRIV+12
 
#define PRISM54_DBG_OID   SIOCIWFIRSTPRIV+14
 
#define PRISM54_DBG_GET_OID   SIOCIWFIRSTPRIV+15
 
#define PRISM54_DBG_SET_OID   SIOCIWFIRSTPRIV+16
 
#define PRISM54_GET_OID   SIOCIWFIRSTPRIV+17
 
#define PRISM54_SET_OID_U32   SIOCIWFIRSTPRIV+18
 
#define PRISM54_SET_OID_STR   SIOCIWFIRSTPRIV+20
 
#define PRISM54_SET_OID_ADDR   SIOCIWFIRSTPRIV+22
 
#define PRISM54_GET_PRISMHDR   SIOCIWFIRSTPRIV+23
 
#define PRISM54_SET_PRISMHDR   SIOCIWFIRSTPRIV+24
 
#define IWPRIV_SET_U32(n, x)   { n, IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, "s_"x }
 
#define IWPRIV_SET_SSID(n, x)   { n, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_FIXED | 1, 0, "s_"x }
 
#define IWPRIV_SET_ADDR(n, x)   { n, IW_PRIV_TYPE_ADDR | IW_PRIV_SIZE_FIXED | 1, 0, "s_"x }
 
#define IWPRIV_GET(n, x)   { n, 0, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_FIXED | PRIV_STR_SIZE, "g_"x }
 
#define IWPRIV_U32(n, x)   IWPRIV_SET_U32(n,x), IWPRIV_GET(n,x)
 
#define IWPRIV_SSID(n, x)   IWPRIV_SET_SSID(n,x), IWPRIV_GET(n,x)
 
#define IWPRIV_ADDR(n, x)   IWPRIV_SET_ADDR(n,x), IWPRIV_GET(n,x)
 

Functions

void prism54_mib_init (islpci_private *priv)
 
void prism54_update_stats (struct work_struct *work)
 
struct iw_statisticsprism54_get_wireless_stats (struct net_device *ndev)
 
void prism54_acl_init (struct islpci_acl *acl)
 
void prism54_acl_clean (struct islpci_acl *acl)
 
void prism54_wpa_bss_ie_init (islpci_private *priv)
 
void prism54_wpa_bss_ie_clean (islpci_private *priv)
 
void prism54_process_trap (struct work_struct *work)
 
int prism54_set_mac_address (struct net_device *ndev, void *addr)
 

Variables

struct ieee80211_beacon_phdr __packed
 
struct iw_handler_def prism54_handler_def
 

Macro Definition Documentation

#define CAP_CRYPT   0x10
#define CAP_ESS   0x01
#define CAP_IBSS   0x02
#define IWPRIV_ADDR (   n,
  x 
)    IWPRIV_SET_ADDR(n,x), IWPRIV_GET(n,x)

Definition at line 2777 of file isl_ioctl.c.

#define IWPRIV_GET (   n,
  x 
)    { n, 0, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_FIXED | PRIV_STR_SIZE, "g_"x }

Definition at line 2773 of file isl_ioctl.c.

#define IWPRIV_SET_ADDR (   n,
  x 
)    { n, IW_PRIV_TYPE_ADDR | IW_PRIV_SIZE_FIXED | 1, 0, "s_"x }

Definition at line 2772 of file isl_ioctl.c.

#define IWPRIV_SET_SSID (   n,
  x 
)    { n, IW_PRIV_TYPE_CHAR | IW_PRIV_SIZE_FIXED | 1, 0, "s_"x }

Definition at line 2771 of file isl_ioctl.c.

#define IWPRIV_SET_U32 (   n,
  x 
)    { n, IW_PRIV_TYPE_INT | IW_PRIV_SIZE_FIXED | 1, 0, "s_"x }

Definition at line 2770 of file isl_ioctl.c.

#define IWPRIV_SSID (   n,
  x 
)    IWPRIV_SET_SSID(n,x), IWPRIV_GET(n,x)

Definition at line 2776 of file isl_ioctl.c.

#define IWPRIV_U32 (   n,
  x 
)    IWPRIV_SET_U32(n,x), IWPRIV_GET(n,x)

Definition at line 2775 of file isl_ioctl.c.

#define KEY_SIZE_TKIP   32 /* TKIP keys */

Definition at line 42 of file isl_ioctl.c.

#define KEY_SIZE_WEP104   13 /* 104/128-bit WEP keys */

Definition at line 39 of file isl_ioctl.c.

#define KEY_SIZE_WEP40   5 /* 40/64-bit WEP keys */

Definition at line 40 of file isl_ioctl.c.

#define PRISM54_ADD_MAC   SIOCIWFIRSTPRIV+4

Definition at line 2747 of file isl_ioctl.c.

#define PRISM54_DBG_GET_OID   SIOCIWFIRSTPRIV+15

Definition at line 2759 of file isl_ioctl.c.

#define PRISM54_DBG_OID   SIOCIWFIRSTPRIV+14

Definition at line 2758 of file isl_ioctl.c.

#define PRISM54_DBG_SET_OID   SIOCIWFIRSTPRIV+16

Definition at line 2760 of file isl_ioctl.c.

#define PRISM54_DEL_MAC   SIOCIWFIRSTPRIV+6

Definition at line 2749 of file isl_ioctl.c.

#define PRISM54_GET_MAC   SIOCIWFIRSTPRIV+3

Definition at line 2746 of file isl_ioctl.c.

#define PRISM54_GET_OID   SIOCIWFIRSTPRIV+17

Definition at line 2762 of file isl_ioctl.c.

#define PRISM54_GET_POLICY   SIOCIWFIRSTPRIV+1

Definition at line 2744 of file isl_ioctl.c.

#define PRISM54_GET_PRISMHDR   SIOCIWFIRSTPRIV+23

Definition at line 2767 of file isl_ioctl.c.

#define PRISM54_GET_WPA   SIOCIWFIRSTPRIV+11

Definition at line 2755 of file isl_ioctl.c.

#define PRISM54_KICK_ALL   SIOCIWFIRSTPRIV+10

Definition at line 2753 of file isl_ioctl.c.

#define PRISM54_KICK_MAC   SIOCIWFIRSTPRIV+8

Definition at line 2751 of file isl_ioctl.c.

#define PRISM54_RESET   SIOCIWFIRSTPRIV

Definition at line 2743 of file isl_ioctl.c.

#define PRISM54_SET_OID_ADDR   SIOCIWFIRSTPRIV+22

Definition at line 2765 of file isl_ioctl.c.

#define PRISM54_SET_OID_STR   SIOCIWFIRSTPRIV+20

Definition at line 2764 of file isl_ioctl.c.

#define PRISM54_SET_OID_U32   SIOCIWFIRSTPRIV+18

Definition at line 2763 of file isl_ioctl.c.

#define PRISM54_SET_POLICY   SIOCIWFIRSTPRIV+2

Definition at line 2745 of file isl_ioctl.c.

#define PRISM54_SET_PRISMHDR   SIOCIWFIRSTPRIV+24

Definition at line 2768 of file isl_ioctl.c.

#define PRISM54_SET_WPA   SIOCIWFIRSTPRIV+12

Definition at line 2756 of file isl_ioctl.c.

#define PRISM54_SET_WPA   SIOCIWFIRSTPRIV+12

Definition at line 2756 of file isl_ioctl.c.

#define WLAN_EID_GENERIC   0xdd

Definition at line 2106 of file isl_ioctl.c.

#define WLAN_FC_STYPE_ASSOC_REQ   0
#define WLAN_FC_STYPE_REASSOC_REQ   2
#define WLAN_FC_TYPE_MGMT   0

Function Documentation

void prism54_acl_clean ( struct islpci_acl acl)

Definition at line 1814 of file isl_ioctl.c.

void prism54_acl_init ( struct islpci_acl acl)

Definition at line 1782 of file isl_ioctl.c.

struct iw_statistics* prism54_get_wireless_stats ( struct net_device ndev)
read

Definition at line 216 of file isl_ioctl.c.

void prism54_mib_init ( islpci_private priv)

prism54_mib_init - fill MIB cache with defaults

this function initializes the struct given as with defaults, of which many are retrieved from the global module parameter variables.

Definition at line 126 of file isl_ioctl.c.

void prism54_process_trap ( struct work_struct work)

Definition at line 2467 of file isl_ioctl.c.

int prism54_set_mac_address ( struct net_device ndev,
void addr 
)

Definition at line 2480 of file isl_ioctl.c.

void prism54_update_stats ( struct work_struct work)

Definition at line 162 of file isl_ioctl.c.

void prism54_wpa_bss_ie_clean ( islpci_private priv)

Definition at line 2205 of file isl_ioctl.c.

void prism54_wpa_bss_ie_init ( islpci_private priv)

Definition at line 2198 of file isl_ioctl.c.

Variable Documentation

struct iw_handler_def prism54_handler_def
Initial value:
= {
.num_standard = ARRAY_SIZE(prism54_handler),
.num_private = ARRAY_SIZE(prism54_private_handler),
.num_private_args = ARRAY_SIZE(prism54_private_args),
.standard = (iw_handler *) prism54_handler,
.private = (iw_handler *) prism54_private_handler,
.private_args = (struct iw_priv_args *) prism54_private_args,
}

Definition at line 2901 of file isl_ioctl.c.