⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ieee80211_ioctl.h

📁 Linux下SDIO设备的驱动程序
💻 H
字号:
/* * Copyright (c) 2004-2006 Atheros Communications Inc. * Portions Copyright (c) 2001 Atsushi Onoe,  2002-2005 Sam Leffler, Errno Consulting * *  Wireless Network driver for Atheros AR6001 * *  This program is free software; you can redistribute it and/or modify *  it under the terms of the GNU General Public License version 2 as *  published by the Free Software Foundation; * *  Software distributed under the License is distributed on an "AS *  IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or *  implied. See the License for the specific language governing *  rights and limitations under the License. * * * This file contains the definitions for the AR6000 linux driver. * */#ifndef _IEEE80211_IOCTL_H_#define _IEEE80211_IOCTL_H_#ifdef __cplusplusextern "C" {#endif/* * Extracted from the MADWIFI net80211/ieee80211_ioctl.h *//* * WPA/RSN get/set key request.  Specify the key/cipher * type and whether the key is to be used for sending and/or * receiving.  The key index should be set only when working * with global keys (use IEEE80211_KEYIX_NONE for ``no index''). * Otherwise a unicast/pairwise key is specified by the bssid * (on a station) or mac address (on an ap).  They key length * must include any MIC key data; otherwise it should be no more than IEEE80211_KEYBUF_SIZE. */struct ieee80211req_key {	u_int8_t	ik_type;	/* key/cipher type */	u_int8_t	ik_pad;	u_int16_t	ik_keyix;	/* key index */	u_int8_t	ik_keylen;	/* key length in bytes */	u_int8_t	ik_flags;#define IEEE80211_KEY_XMIT  0x01#define IEEE80211_KEY_RECV  0x02#define	IEEE80211_KEY_DEFAULT	0x80	/* default xmit key */	u_int8_t	ik_macaddr[IEEE80211_ADDR_LEN];	u_int64_t	ik_keyrsc;	/* key receive sequence counter */	u_int64_t	ik_keytsc;	/* key transmit sequence counter */	u_int8_t	ik_keydata[IEEE80211_KEYBUF_SIZE+IEEE80211_MICBUF_SIZE];};/* * Delete a key either by index or address.  Set the index * to IEEE80211_KEYIX_NONE when deleting a unicast key. */struct ieee80211req_del_key {	u_int8_t	idk_keyix;	/* key index */	u_int8_t	idk_macaddr[IEEE80211_ADDR_LEN];};/* * MLME state manipulation request.  IEEE80211_MLME_ASSOC * only makes sense when operating as a station.  The other * requests can be used when operating as a station or an * ap (to effect a station). */struct ieee80211req_mlme {	u_int8_t	im_op;		/* operation to perform */#define	IEEE80211_MLME_ASSOC		1	/* associate station */#define	IEEE80211_MLME_DISASSOC		2	/* disassociate station */#define	IEEE80211_MLME_DEAUTH		3	/* deauthenticate station */#define	IEEE80211_MLME_AUTHORIZE	4	/* authorize station */#define	IEEE80211_MLME_UNAUTHORIZE	5	/* unauthorize station */	u_int16_t	im_reason;	/* 802.11 reason code */	u_int8_t	im_macaddr[IEEE80211_ADDR_LEN];};struct ieee80211req_addpmkid {    u_int8_t    pi_bssid[IEEE80211_ADDR_LEN];    u_int8_t    pi_enable;    u_int8_t    pi_pmkid[16];};#define AUTH_ALG_OPEN_SYSTEM	0x01#define AUTH_ALG_SHARED_KEY	0x02#define AUTH_ALG_LEAP		0x04struct ieee80211req_authalg {   u_int8_t auth_alg;};enum {    IEEE80211_PARAM_AUTHMODE = 3,   /* Authentication Mode */    IEEE80211_PARAM_MCASTCIPHER = 5,    IEEE80211_PARAM_MCASTKEYLEN = 6,    /* multicast key length */    IEEE80211_PARAM_UCASTCIPHER = 8,    IEEE80211_PARAM_UCASTKEYLEN = 9,    /* unicast key length */	IEEE80211_PARAM_WPA		= 10,	/* WPA mode (0,1,2) */	IEEE80211_PARAM_ROAMING		= 12,	/* roaming mode */	IEEE80211_PARAM_PRIVACY		= 13,	/* privacy invoked */	IEEE80211_PARAM_COUNTERMEASURES	= 14,	/* WPA/TKIP countermeasures */	IEEE80211_PARAM_DROPUNENCRYPTED	= 15,	/* discard unencrypted frames */};/* * Values for IEEE80211_PARAM_WPA */#define WPA_MODE_WPA1   1#define WPA_MODE_WPA2   2#define WPA_MODE_AUTO   3#define WPA_MODE_NONE   4#ifdef __cplusplus}#endif#endif /* _IEEE80211_IOCTL_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -