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

📄 wlioctl.h

📁 wi-fi sources for asus wl138g v2 pci card
💻 H
📖 第 1 页 / 共 3 页
字号:
#define	WLC_BAND_2G		2	/* 2.4 Ghz */#define	WLC_BAND_ALL		3	/* all bands *//* phy types (returned by WLC_GET_PHYTPE) */#define	WLC_PHY_TYPE_A		0#define	WLC_PHY_TYPE_B		1#define	WLC_PHY_TYPE_G		2#define	WLC_PHY_TYPE_NULL	0xf/* MAC list modes */#define WLC_MACMODE_DISABLED	0	/* MAC list disabled */#define WLC_MACMODE_DENY	1	/* Deny specified (i.e. allow unspecified) */#define WLC_MACMODE_ALLOW	2	/* Allow specified (i.e. deny unspecified) */#define GMODE_LEGACY_B		0#define GMODE_AUTO		1#define GMODE_ONLY		2#define GMODE_B_DEFERRED	3#define GMODE_PERFORMANCE	4#define GMODE_LRS		5#define GMODE_MAX		6/* values for PLCPHdr_override */#define WLC_PLCP_AUTO	-1#define WLC_PLCP_SHORT	0#define WLC_PLCP_LONG	1/* values for g_protection_override and n_protection_override */#define WLC_PROTECTION_AUTO		-1#define WLC_PROTECTION_OFF		0#define WLC_PROTECTION_ON		1/* values for g_protection_control and n_protection_control */#define WLC_PROTECTION_CTL_OFF		0#define WLC_PROTECTION_CTL_LOCAL	1#define WLC_PROTECTION_CTL_OVERLAP	2/* deprecated const names for g_protection_override */#define WLC_G_PROTECTION_AUTO		WLC_PROTECTION_AUTO#define WLC_G_PROTECTION_OFF		WLC_PROTECTION_OFF#define WLC_G_PROTECTION_ON		WLC_PROTECTION_ON/* deprecated const names for g_protection_control */#define WLC_G_PROTECTION_CTL_OFF	WLC_PROTECTION_CTL_OFF#define WLC_G_PROTECTION_CTL_LOCAL	WLC_PROTECTION_CTL_LOCAL#define WLC_G_PROTECTION_CTL_OVERLAP	WLC_PROTECTION_CTL_OVERLAP/* Values for PM */#define PM_OFF	0#define PM_MAX	1#define PM_FAST 2/* 802.11h measurement types */#define WLC_MEASURE_TPC			1#define WLC_MEASURE_CHANNEL_BASIC	2#define WLC_MEASURE_CHANNEL_CCA		3#define WLC_MEASURE_CHANNEL_RPI		4/* regulatory enforcement levels */#define SPECT_MNGMT_OFF			0		/* both 11h and 11d disabled */#define SPECT_MNGMT_LOOSE_11H		1		/* allow non-11h APs in scan lists */#define SPECT_MNGMT_STRICT_11H		2		/* prune out non-11h APs from scan list */#define SPECT_MNGMT_STRICT_11D		3		/* switch to 802.11D mode *//* SPECT_MNGMT_LOOSE_11H_D - same as SPECT_MNGMT_LOOSE with the exception that Country IE * adoption is done irregardless of capability-spectrum_management */#define SPECT_MNGMT_LOOSE_11H_D		4		/* operation defined above */#define WL_CHAN_VALID_HW		(1 << 0)	/* valid with current HW */#define WL_CHAN_VALID_SW		(1 << 1)	/* valid with current country setting */#define WL_CHAN_BAND_5G			(1 << 2)	/* 5GHz-band channel */#define WL_CHAN_RADAR			(1 << 3)	/* radar sensitive  channel */#define WL_CHAN_INACTIVE		(1 << 4)	/* temporarily inactive due to radar */#define WL_CHAN_RADAR_PASSIVE		(1 << 5)	/* radar channel is in passive mode *//* Message levels */#define WL_ERROR_VAL		0x00000001#define WL_TRACE_VAL		0x00000002#define WL_PRHDRS_VAL		0x00000004#define WL_PRPKT_VAL		0x00000008#define WL_INFORM_VAL		0x00000010#define WL_TMP_VAL		0x00000020#define WL_OID_VAL		0x00000040#define WL_RATE_VAL		0x00000080#define WL_ASSOC_VAL		0x00000100#define WL_PRUSR_VAL		0x00000200#define WL_PS_VAL		0x00000400#define WL_TXPWR_VAL		0x00000800#define WL_GMODE_VAL		0x00001000#define WL_DUAL_VAL		0x00002000#define WL_WSEC_VAL		0x00004000#define WL_WSEC_DUMP_VAL	0x00008000#define WL_LOG_VAL		0x00010000#define WL_NRSSI_VAL		0x00020000#define WL_LOFT_VAL		0x00040000#define WL_REGULATORY_VAL	0x00080000#define WL_ACI_VAL		0x00100000#define WL_RADAR_VAL		0x00200000#define WL_MPC_VAL		0x00400000#define WL_APSTA_VAL		0x00800000#define WL_DFS_VAL		0x01000000#define WL_BA_VAL		0x02000000#define WL_NITRO_VAL		0x04000000#define WL_CAC_VAL		0x08000000#define WL_AMSDU_VAL		0x10000000#define WL_AMPDU_VAL		0x20000000/* max # of leds supported by GPIO (gpio pin# == led index#) */#define	WL_LED_NUMGPIO		16	/* gpio 0-15 *//* led per-pin behaviors */#define	WL_LED_OFF		0		/* always off */#define	WL_LED_ON		1		/* always on */#define	WL_LED_ACTIVITY		2		/* activity */#define	WL_LED_RADIO		3		/* radio enabled */#define	WL_LED_ARADIO		4		/* 5  Ghz radio enabled */#define	WL_LED_BRADIO		5		/* 2.4Ghz radio enabled */#define	WL_LED_BGMODE		6		/* on if gmode, off if bmode */#define	WL_LED_WI1		7		#define	WL_LED_WI2		8		#define	WL_LED_WI3		9		#define	WL_LED_ASSOC		10		/* associated state indicator */#define	WL_LED_INACTIVE		11		/* null behavior (clears default behavior) */#define	WL_LED_NUMBEHAVIOR	12/* led behavior numeric value format */#define	WL_LED_BEH_MASK		0x7f		/* behavior mask */#define	WL_LED_AL_MASK		0x80		/* activelow (polarity) bit *//* maximum channels */#define WL_NUMCHANNELS		64	/* max # of channels in the band *//* number of bytes needed to define a 128-bit mask for MAC event reporting */#define WL_EVENTING_MASK_LEN	16/* join target preference types */#define WL_JOIN_PREF_RSSI	1	/* by RSSI, mandatory */#define WL_JOIN_PREF_WPA	2	/* by akm and ciphers, optional, RSN and WPA as values */#define WL_JOIN_PREF_BAND	3	/* by 802.11 band, optional, WLC_BAND_XXXX as values *//* band preference */#define WLJP_BAND_ASSOC_PREF	255	/* use assoc preference settings */					/* others use WLC_BAND_XXXX as values *//* any multicast cipher suite */#define WL_WPA_ACP_MCS_ANY	"\x00\x00\x00\x00"struct tsinfo_arg {	uint8 octets[3];};#if !defined(__GNUC__)#pragma pack(pop)#endif#define	NFIFO			6	/* # tx/rx fifopairs */#define	WL_CNT_T_VERSION	1	/* current version of wl_cnt_t struct */typedef struct {	uint16	version;	/* see definition of WL_CNT_T_VERSION */	uint16	length;		/* length of entire structure */	/* transmit stat counters */	uint32	txframe;	/* tx data frames */	uint32	txbyte;		/* tx data bytes */	uint32	txretrans;	/* tx mac retransmits */	uint32	txerror;	/* tx data errors */	uint32	txctl;		/* tx management frames */	uint32	txprshort;	/* tx short preamble frames */	uint32	txserr;		/* tx status errors */	uint32	txnobuf;	/* tx out of buffers errors */	uint32	txnoassoc;	/* tx discard because we're not associated */	uint32	txrunt;		/* tx runt frames */	uint32	txchit;		/* tx header cache hit (fastpath) */	uint32	txcmiss;	/* tx header cache miss (slowpath) */	/* transmit chip error counters */	uint32	txuflo;		/* tx fifo underflows */	uint32	txphyerr;	/* tx phy errors (indicated in tx status) */	uint32	txphycrs;		/* receive stat counters */	uint32	rxframe;	/* rx data frames */	uint32	rxbyte;		/* rx data bytes */	uint32	rxerror;	/* rx data errors */	uint32	rxctl;		/* rx management frames */	uint32	rxnobuf;	/* rx out of buffers errors */	uint32	rxnondata;	/* rx non data frames in the data channel errors */	uint32	rxbadds;	/* rx bad DS errors */	uint32	rxbadcm;	/* rx bad control or management frames */	uint32	rxfragerr;	/* rx fragmentation errors */	uint32	rxrunt;		/* rx runt frames */	uint32	rxgiant;	/* rx giant frames */	uint32	rxnoscb;	/* rx no scb error */	uint32	rxbadproto;	/* rx invalid frames */	uint32	rxbadsrcmac;	/* rx frames with Invalid Src Mac */	uint32	rxbadda;	/* rx frames tossed for invalid da */	uint32	rxfilter;	/* rx frames filtered out */	/* receive chip error counters */	uint32	rxoflo;		/* rx fifo overflow errors */	uint32	rxuflo[NFIFO];	/* rx dma descriptor underflow errors */	uint32	d11cnt_txrts_off;	/* d11cnt txrts value when reset d11cnt */	uint32	d11cnt_rxcrc_off;	/* d11cnt rxcrc value when reset d11cnt */	uint32	d11cnt_txnocts_off;	/* d11cnt txnocts value when reset d11cnt */	/* misc counters */	uint32	dmade;		/* tx/rx dma descriptor errors */	uint32	dmada;		/* tx/rx dma data errors */	uint32	dmape;		/* tx/rx dma descriptor protocol errors */	uint32	reset;		/* reset count */	uint32	tbtt;		/* cnts the TBTT int's */	uint32	txdmawar;		uint32	pkt_callback_reg_fail;	/* callbacks register failure */	/* MAC counters: 32-bit version of d11.h's macstat_t */	uint32	txallfrm;	/* total number of frames sent, incl. Data, ACK, RTS, CTS,				 * Control Management (includes retransmissions)				 */	uint32	txrtsfrm;	/* number of RTS sent out by the MAC */	uint32	txctsfrm;	/* number of CTS sent out by the MAC */	uint32	txackfrm;	/* number of ACK frames sent out */	uint32	txdnlfrm;	/* Not used */	uint32	txbcnfrm;	/* beacons transmitted */	uint32	txfunfl[8];	/* per-fifo tx underflows */	uint32	txtplunfl;	/* Template underflows (mac was too slow to transmit ACK/CTS				 * or BCN)				 */	uint32	txphyerror;	/* Transmit phy error, type of error is reported in tx-status for				 * driver enqueued frames				 */	uint32	rxfrmtoolong;	/* Received frame longer than legal limit (2346 bytes) */	uint32	rxfrmtooshrt;	/* Received frame did not contain enough bytes for its frame type */	uint32	rxinvmachdr;	/* Either the protocol version != 0 or frame type not				 * data/control/management				 */	uint32	rxbadfcs;	/* number of frames for which the CRC check failed in the MAC */	uint32	rxbadplcp;	/* parity check of the PLCP header failed */	uint32	rxcrsglitch;	/* PHY was able to correlate the preamble but not the header */	uint32	rxstrt;		/* Number of received frames with a good PLCP				 * (i.e. passing parity check)				 */	uint32	rxdfrmucastmbss; /* Number of received DATA frames with good FCS and matching RA */	uint32	rxmfrmucastmbss; /* number of received mgmt frames with good FCS and matching RA */	uint32	rxcfrmucast;	/* number of received CNTRL frames with good FCS and matching RA */	uint32	rxrtsucast;	/* number of unicast RTS addressed to the MAC (good FCS) */	uint32	rxctsucast;	/* number of unicast CTS addressed to the MAC (good FCS) */	uint32	rxackucast;	/* number of ucast ACKS received (good FCS) */	uint32	rxdfrmocast;	/* number of received DATA frames (good FCS and not matching RA) */	uint32	rxmfrmocast;	/* number of received MGMT frames (good FCS and not matching RA) */	uint32	rxcfrmocast;	/* number of received CNTRL frame (good FCS and not matching RA) */	uint32	rxrtsocast;	/* number of received RTS not addressed to the MAC */	uint32	rxctsocast;	/* number of received CTS not addressed to the MAC */	uint32	rxdfrmmcast;	/* number of RX Data multicast frames received by the MAC */	uint32	rxmfrmmcast;	/* number of RX Management multicast frames received by the MAC */	uint32	rxcfrmmcast;	/* number of RX Control multicast frames received by the MAC				 * (unlikely to see these)				 */	uint32	rxbeaconmbss;	/* beacons received from member of BSS */	uint32	rxdfrmucastobss; /* number of unicast frames addressed to the MAC from				  * other BSS (WDS FRAME)				  */	uint32	rxbeaconobss;	/* beacons received from other BSS */	uint32	rxrsptmout;	/* Number of response timeouts for transmitted frames				 * expecting a response				 */	uint32	bcntxcancl;	/* transmit beacons canceled due to receipt of beacon (IBSS) */	uint32	rxf0ovfl;	/* Number of receive fifo 0 overflows */	uint32	rxf1ovfl;	/* Number of receive fifo 1 overflows (obsolete) */	uint32	rxf2ovfl;	/* Number of receive fifo 2 overflows (obsolete) */	uint32	txsfovfl;	/* Number of transmit status fifo overflows (obsolete) */	uint32	pmqovfl;	/* Number of PMQ overflows */	uint32	rxcgprqfrm;	/* Number of received Probe requests that made it into				 * the PRQ fifo				 */	uint32	rxcgprsqovfl;	/* Rx Probe Request Que overflow in the AP */	uint32	txcgprsfail;	/* Tx Probe Response Fail. AP sent probe response but did				 * not get ACK				 */	uint32	txcgprssuc;	/* Tx Probe Response Success (ACK was received) */	uint32	prs_timeout;	/* Number of probe requests that were dropped from the PRQ				 * fifo because a probe response could not be sent out within				 * the time limit defined in M_PRS_MAXTIME				 */	uint32	rxnack;		/* Number of NACKS received (Afterburner) */	uint32	frmscons;	/* Number of frames completed without transmission because of an				 * Afterburner re-queue				 */	uint32	txnack;		/* Number of NACKs transmitted (Afterburner) */	uint32	txglitch_nack;	/* obsolete */	uint32	txburst;	/* obsolete */	/* 802.11 MIB counters, pp. 614 of 802.11 reaff doc. */	uint32	txfrag;		/* dot11TransmittedFragmentCount */	uint32	txmulti;	/* dot11MulticastTransmittedFrameCount */	uint32	txfail;		/* dot11FailedCount */	uint32	txretry;	/* dot11RetryCount */	uint32	txretrie;	/* dot11MultipleRetryCount */	uint32	rxdup;		/* dot11FrameduplicateCount */	uint32	txrts;		/* dot11RTSSuccessCount */	uint32	txnocts;	/* dot11RTSFailureCount */	uint32	txnoack;	/* dot11ACKFailureCount */	uint32	rxfrag;		/* dot11ReceivedFragmentCount */	uint32	rxmulti;	/* dot11MulticastReceivedFrameCount */	uint32	rxcrc;		/* dot11FCSErrorCount */	uint32	txfrmsnt;	/* dot11TransmittedFrameCount (bogus MIB?) */	uint32	rxundec;	/* dot11WEPUndecryptableCount */	/* WPA2 counters (see rxundec for DecryptFailureCount) */	uint32	tkipmicfaill;	/* TKIPLocalMICFailures */	uint32	tkipcntrmsr;	/* TKIPCounterMeasuresInvoked */	uint32	tkipreplay;	/* TKIPReplays */	uint32	ccmpfmterr;	/* CCMPFormatErrors */	uint32	ccmpreplay;	/* CCMPReplays */	uint32	ccmpundec;	/* CCMPDecryptErrors */	uint32	fourwayfail;	/* FourWayHandshakeFailures */	uint32	wepundec;	/* dot11WEPUndecryptableCount */	uint32	wepicverr;	/* dot11WEPICVErrorCount */	uint32	decsuccess;	/* DecryptSuccessCount */	uint32	tkipicverr;	/* TKIPICVErrorCount */	uint32	wepexcluded;	/* dot11WEPExcludedCount */	uint32	txchanrej;	/* Tx frames suppressed due to channel rejection */} wl_cnt_t;#define WL_WME_CNT_VERSION	1	/* current version of wl_wme_cnt_t */typedef struct {	uint32 packets;	uint32 bytes;} wl_traffic_stats_t;typedef struct {	uint16	version;	/* see definition of WL_CNT_T_VERSION */	uint16	length;		/* length of entire structure */	wl_traffic_stats_t tx[AC_COUNT];	/* Packets transmitted */	wl_traffic_stats_t tx_failed[AC_COUNT];	/* Packets dropped or failed to transmit */	wl_traffic_stats_t rx[AC_COUNT];	/* Packets received */	wl_traffic_stats_t rx_failed[AC_COUNT];	/* Packets failed to receive */	wl_traffic_stats_t forward[AC_COUNT];	/* Packets forwarded by AP */	wl_traffic_stats_t tx_expired[AC_COUNT];	/* packets dropped due to lifetime expiry */} wl_wme_cnt_t;#define WL_LIFETIME_MAX 0xFFFF /* Max value in ms *//* Packet lifetime configuration per ac */typedef struct wl_lifetime {	uint32 ac;	        /* access class */	uint32 lifetime;    /* Packet lifetime value in ms */} wl_lifetime_t;#endif /* _wlioctl_h_ */

⌨️ 快捷键说明

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