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

📄 wlioctl.h

📁 wi-fi sources for asus wl138g v2 pci card
💻 H
📖 第 1 页 / 共 3 页
字号:
/* get pkt count struct passed through ioctl */typedef struct get_pktcnt {	uint rx_good_pkt;	uint rx_bad_pkt;	uint tx_good_pkt;	uint tx_bad_pkt;} get_pktcnt_t;/* Linux network driver ioctl encoding */typedef struct wl_ioctl {	uint cmd;	/* common ioctl definition */	void *buf;	/* pointer to user buffer */	uint len;	/* length of user buffer */	bool set;	/* get or set request (optional) */	uint used;	/* bytes read or written (optional) */	uint needed;	/* bytes needed (optional) */} wl_ioctl_t;/* * Structure for passing hardware and software * revision info up from the driver. */typedef struct wlc_rev_info {	uint		vendorid;	/* PCI vendor id */	uint		deviceid;	/* device id of chip */	uint		radiorev;	/* radio revision */	uint		chiprev;	/* chip revision */	uint		corerev;	/* core revision */	uint		boardid;	/* board identifier (usu. PCI sub-device id) */	uint		boardvendor;	/* board vendor (usu. PCI sub-vendor id) */	uint		boardrev;	/* board revision */	uint		driverrev;	/* driver version */	uint		ucoderev;	/* microcode version */	uint		bus;		/* bus type */	uint		chipnum;	/* chip number */} wlc_rev_info_t;#define WL_BRAND_MAX 10typedef struct wl_instance_info {	uint instance;	char brand[WL_BRAND_MAX];} wl_instance_info_t;/* check this magic number */#define WLC_IOCTL_MAGIC		0x14e46c77/* bump this number if you change the ioctl interface */#define WLC_IOCTL_VERSION	1#define	WLC_IOCTL_MAXLEN	8192		/* max length ioctl buffer required */#define	WLC_IOCTL_SMLEN		256		/* "small" length ioctl buffer required *//* common ioctl definitions */#define WLC_GET_MAGIC				0#define WLC_GET_VERSION				1#define WLC_UP						2#define WLC_DOWN					3#define WLC_GET_LOOP				4#define WLC_SET_LOOP				5#define WLC_DUMP					6#define WLC_GET_MSGLEVEL			7#define WLC_SET_MSGLEVEL			8#define WLC_GET_PROMISC				9#define WLC_SET_PROMISC				10#define WLC_DUMP_RSSI				11#define WLC_GET_RATE				12/* #define WLC_SET_RATE				13 */ /* no longer supported */#define WLC_GET_INSTANCE			14/* #define WLC_GET_FRAG				15 */ /* no longer supported *//* #define WLC_SET_FRAG				16 */ /* no longer supported *//* #define WLC_GET_RTS				17 */ /* no longer supported *//* #define WLC_SET_RTS				18 */ /* no longer supported */#define WLC_GET_INFRA				19#define WLC_SET_INFRA				20#define WLC_GET_AUTH				21#define WLC_SET_AUTH				22#define WLC_GET_BSSID				23#define WLC_SET_BSSID				24#define WLC_GET_SSID				25#define WLC_SET_SSID				26#define WLC_RESTART				27#define WLC_DUMP_SCB				28#define WLC_GET_CHANNEL				29#define WLC_SET_CHANNEL				30#define WLC_GET_SRL				31#define WLC_SET_SRL				32#define WLC_GET_LRL				33#define WLC_SET_LRL				34#define WLC_GET_PLCPHDR				35#define WLC_SET_PLCPHDR				36#define WLC_GET_RADIO				37#define WLC_SET_RADIO				38#define WLC_GET_PHYTYPE				39#define WLC_DUMP_RATE				40#define WLC_SET_RATE_PARAMS			41/* #define WLC_GET_WEP				42 */ /* no longer supported *//* #define WLC_SET_WEP				43 */ /* no longer supported */#define WLC_GET_KEY					44#define WLC_SET_KEY					45#define WLC_GET_REGULATORY			46#define WLC_SET_REGULATORY			47#define WLC_GET_PASSIVE_SCAN		48#define WLC_SET_PASSIVE_SCAN		49#define WLC_SCAN					50#define WLC_SCAN_RESULTS			51#define WLC_DISASSOC				52#define WLC_REASSOC				53#define WLC_GET_ROAM_TRIGGER			54#define WLC_SET_ROAM_TRIGGER			55#define WLC_GET_ROAM_DELTA			56#define WLC_SET_ROAM_DELTA			57#define WLC_GET_ROAM_SCAN_PERIOD		58#define WLC_SET_ROAM_SCAN_PERIOD		59#define WLC_EVM					60	/* diag */#define WLC_GET_TXANT				61#define WLC_SET_TXANT				62#define WLC_GET_ANTDIV				63#define WLC_SET_ANTDIV				64/* #define WLC_GET_TXPWR			65 */ /* no longer supported *//* #define WLC_SET_TXPWR			66 */ /* no longer supported */#define WLC_GET_CLOSED				67#define WLC_SET_CLOSED				68#define WLC_GET_MACLIST				69#define WLC_SET_MACLIST				70#define WLC_GET_RATESET				71#define WLC_SET_RATESET				72#define WLC_GET_LOCALE				73#define WLC_LONGTRAIN				74#define WLC_GET_BCNPRD				75#define WLC_SET_BCNPRD				76#define WLC_GET_DTIMPRD				77#define WLC_SET_DTIMPRD				78#define WLC_GET_SROM				79#define WLC_SET_SROM				80#define WLC_GET_WEP_RESTRICT			81#define WLC_SET_WEP_RESTRICT			82#define WLC_GET_COUNTRY				83#define WLC_SET_COUNTRY				84#define WLC_GET_PM				85#define WLC_SET_PM				86#define WLC_GET_WAKE				87#define WLC_SET_WAKE				88/* #define WLC_GET_D11CNTS				89 */ /* -> "counters" iovar */#define WLC_GET_FORCELINK			90	/* ndis only */#define WLC_SET_FORCELINK			91	/* ndis only */#define WLC_FREQ_ACCURACY			92	/* diag */#define WLC_CARRIER_SUPPRESS			93	/* diag */#define WLC_GET_PHYREG				94#define WLC_SET_PHYREG				95#define WLC_GET_RADIOREG			96#define WLC_SET_RADIOREG			97#define WLC_GET_REVINFO				98#define WLC_GET_UCANTDIV			99#define WLC_SET_UCANTDIV			100#define WLC_R_REG				101#define WLC_W_REG				102/* #define WLC_RESET_D11CNTS			104 */ /* -> "reset_d11cnts" iovar */#define WLC_GET_MACMODE				105#define WLC_SET_MACMODE				106#define WLC_GET_MONITOR				107#define WLC_SET_MONITOR				108#define WLC_GET_GMODE				109#define WLC_SET_GMODE				110#define WLC_GET_LEGACY_ERP			111#define WLC_SET_LEGACY_ERP			112#define WLC_GET_RX_ANT				113#define WLC_GET_CURR_RATESET			114	/* current rateset */#define WLC_GET_SCANSUPPRESS			115#define WLC_SET_SCANSUPPRESS			116#define WLC_GET_AP				117#define WLC_SET_AP				118#define WLC_GET_EAP_RESTRICT			119#define WLC_SET_EAP_RESTRICT			120#define WLC_SCB_AUTHORIZE			121#define WLC_SCB_DEAUTHORIZE			122#define WLC_GET_WDSLIST				123#define WLC_SET_WDSLIST				124#define WLC_GET_ATIM				125#define WLC_SET_ATIM				126#define WLC_GET_RSSI				127#define WLC_GET_PHYANTDIV			128#define WLC_SET_PHYANTDIV			129#define WLC_AP_RX_ONLY				130#define WLC_GET_TX_PATH_PWR			131#define WLC_SET_TX_PATH_PWR			132#define WLC_GET_WSEC				133#define WLC_SET_WSEC				134#define WLC_GET_PHY_NOISE			135#define WLC_GET_BSS_INFO			136#define WLC_GET_PKTCNTS				137#define WLC_GET_LAZYWDS				138#define WLC_SET_LAZYWDS				139#define WLC_GET_BANDLIST			140#define WLC_GET_BAND				141#define WLC_SET_BAND				142#define WLC_SCB_DEAUTHENTICATE			143#define WLC_GET_SHORTSLOT			144#define WLC_GET_SHORTSLOT_OVERRIDE		145#define WLC_SET_SHORTSLOT_OVERRIDE		146#define WLC_GET_SHORTSLOT_RESTRICT		147#define WLC_SET_SHORTSLOT_RESTRICT		148#define WLC_GET_GMODE_PROTECTION		149#define WLC_GET_GMODE_PROTECTION_OVERRIDE	150#define WLC_SET_GMODE_PROTECTION_OVERRIDE	151#define WLC_UPGRADE						152/* #define WLC_GET_MRATE				153 */ /* no longer supported *//* #define WLC_SET_MRATE				154 */ /* no longer supported */#define WLC_GET_IGNORE_BCNS				155#define WLC_SET_IGNORE_BCNS				156#define WLC_GET_SCB_TIMEOUT				157#define WLC_SET_SCB_TIMEOUT				158#define WLC_GET_ASSOCLIST				159#define WLC_GET_CLK						160#define WLC_SET_CLK						161#define WLC_GET_UP						162#define WLC_OUT							163#define WLC_GET_WPA_AUTH				164#define WLC_SET_WPA_AUTH			165#define WLC_GET_UCFLAGS				166#define WLC_SET_UCFLAGS				167#define WLC_GET_PWRIDX				168#define WLC_SET_PWRIDX				169#define WLC_GET_TSSI				170#define WLC_GET_SUP_RATESET_OVERRIDE		171#define WLC_SET_SUP_RATESET_OVERRIDE		172/* #define WLC_SET_FAST_TIMER				173 */ /* no longer supported *//* #define WLC_GET_FAST_TIMER				174 */ /* no longer supported *//* #define WLC_SET_SLOW_TIMER				175 */ /* no longer supported *//* #define WLC_GET_SLOW_TIMER				176 */ /* no longer supported */#define WLC_DUMP_PHYREGS				177#define WLC_GET_GMODE_PROTECTION_CONTROL	178#define WLC_SET_GMODE_PROTECTION_CONTROL	179#define WLC_GET_PHYLIST				180#define WLC_ENCRYPT_STRENGTH			181	/* ndis only */#define WLC_DECRYPT_STATUS			182	/* ndis only */#define WLC_GET_KEY_SEQ				183#define WLC_GET_SCAN_CHANNEL_TIME		184#define WLC_SET_SCAN_CHANNEL_TIME		185#define WLC_GET_SCAN_UNASSOC_TIME		186#define WLC_SET_SCAN_UNASSOC_TIME		187#define WLC_GET_SCAN_HOME_TIME			188#define WLC_SET_SCAN_HOME_TIME			189#define WLC_GET_SCAN_NPROBES			190#define WLC_SET_SCAN_NPROBES			191#define WLC_GET_PRB_RESP_TIMEOUT		192#define WLC_SET_PRB_RESP_TIMEOUT		193#define WLC_GET_ATTEN				194#define WLC_SET_ATTEN				195#define WLC_GET_SHMEM				196	/* diag */#define WLC_SET_SHMEM				197	/* diag */#define WLC_GET_GMODE_PROTECTION_CTS		198#define WLC_SET_GMODE_PROTECTION_CTS		199#define WLC_SET_WSEC_TEST			200#define WLC_SCB_DEAUTHENTICATE_FOR_REASON	201#define WLC_TKIP_COUNTERMEASURES		202#define WLC_GET_PIOMODE				203#define WLC_SET_PIOMODE				204#define WLC_SET_ASSOC_PREFER			205#define WLC_GET_ASSOC_PREFER			206#define WLC_SET_ROAM_PREFER			207#define WLC_GET_ROAM_PREFER			208#define WLC_SET_LED				209#define WLC_GET_LED				210#define WLC_GET_INTERFERENCE_MODE		211#define WLC_SET_INTERFERENCE_MODE		212#define WLC_GET_CHANNEL_QA			213#define WLC_START_CHANNEL_QA			214#define WLC_GET_CHANNEL_SEL			215#define WLC_START_CHANNEL_SEL			216#define WLC_GET_VALID_CHANNELS			217#define WLC_GET_FAKEFRAG			218#define WLC_SET_FAKEFRAG			219#define WLC_GET_PWROUT_PERCENTAGE		220#define WLC_SET_PWROUT_PERCENTAGE		221#define WLC_SET_BAD_FRAME_PREEMPT		222#define WLC_GET_BAD_FRAME_PREEMPT		223#define WLC_SET_LEAP_LIST			224#define WLC_GET_LEAP_LIST			225#define WLC_GET_CWMIN				226#define WLC_SET_CWMIN				227#define WLC_GET_CWMAX				228#define WLC_SET_CWMAX				229#define WLC_GET_WET				230#define WLC_SET_WET				231#define WLC_GET_PUB				232/* #define WLC_SET_GLACIAL_TIMER	233 */ /* no longer supported *//* #define WLC_GET_GLACIAL_TIMER	234 */ /* no longer supported */#define WLC_GET_KEY_PRIMARY			235#define WLC_SET_KEY_PRIMARY			236#define WLC_DUMP_RADIOREGS			237#define WLC_GET_ACI_ARGS			238#define WLC_SET_ACI_ARGS			239#define WLC_UNSET_CALLBACK			240#define WLC_SET_CALLBACK			241#define WLC_GET_RADAR				242#define WLC_SET_RADAR				243#define WLC_SET_SPECT_MANAGMENT			244#define WLC_GET_SPECT_MANAGMENT			245#define WLC_WDS_GET_REMOTE_HWADDR		246	/* handled in wl_linux.c/wl_vx.c */#define WLC_WDS_GET_WPA_SUP			247#define WLC_SET_CS_SCAN_TIMER			248#define WLC_GET_CS_SCAN_TIMER			249#define WLC_MEASURE_REQUEST			250#define WLC_INIT				251#define WLC_SEND_QUIET				252#define WLC_CHANNEL_SWITCH			253#define WLC_SEND_PWR_CONSTRAINT			254#define WLC_UPGRADE_STATUS			255#define WLC_CURRENT_PWR				256#define WLC_GET_SCAN_PASSIVE_TIME		257#define WLC_SET_SCAN_PASSIVE_TIME		258#define WLC_LEGACY_LINK_BEHAVIOR		259#define WLC_GET_CHANNELS_IN_COUNTRY		260#define WLC_GET_COUNTRY_LIST			261#define WLC_GET_VAR				262	/* get value of named variable */#define WLC_SET_VAR				263	/* set named variable to value */#define WLC_NVRAM_GET				264	/* deprecated */#define WLC_NVRAM_SET				265#define WLC_NVRAM_DUMP				266	/* deprecated */#define WLC_REBOOT				267#define WLC_SET_WSEC_PMK			268#define WLC_GET_AUTH_MODE			269#define WLC_SET_AUTH_MODE			270#define WLC_GET_WAKEENTRY			271#define WLC_SET_WAKEENTRY			272#define WLC_NDCONFIG_ITEM			273	/* currently handled in wl_oid.c */#define WLC_NVOTPW				274#define WLC_OTPW				275#define WLC_SET_LOCALE				278#define WLC_LAST				279	/* do not change - use get_var/set_var *//* * Minor kludge alert: * Duplicate a few definitions that irelay requires from epiioctl.h here * so caller doesn't have to include this file and epiioctl.h . * If this grows any more, it would be time to move these irelay-specific * definitions out of the epiioctl.h and into a separate driver common file. */#ifndef EPICTRL_COOKIE#define EPICTRL_COOKIE		0xABADCEDE#endif#define WL_DECRYPT_STATUS_SUCCESS	1#define WL_DECRYPT_STATUS_FAILURE	2#define WL_DECRYPT_STATUS_UNKNOWN	3/* Bit masks for radio disabled status - returned by WL_GET_RADIO */#define WL_RADIO_SW_DISABLE		(1<<0)#define WL_RADIO_HW_DISABLE		(1<<1)#define WL_RADIO_MPC_DISABLE		(1<<2)#define WL_RADIO_COUNTRY_DISABLE	(1<<3)	/* some countries don't support any channel */#define WL_TXPWR_OVERRIDE	(1<<31)/* band types */#define	WLC_BAND_AUTO		0	/* auto-select */#define	WLC_BAND_5G		1	/* 5 Ghz */

⌨️ 快捷键说明

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