removed placeholders like /* --- Static Functions --- */ Signed-off-by: Andres More <more.andres@xxxxxxxxx> --- drivers/staging/vt6656/80211hdr.h | 4 ---- drivers/staging/vt6656/80211mgr.c | 6 ------ drivers/staging/vt6656/80211mgr.h | 5 ----- drivers/staging/vt6656/aes_ccmp.c | 6 ------ drivers/staging/vt6656/aes_ccmp.h | 5 ----- drivers/staging/vt6656/baseband.c | 10 ---------- drivers/staging/vt6656/baseband.h | 6 ------ drivers/staging/vt6656/bssdb.c | 6 ------ drivers/staging/vt6656/bssdb.h | 5 ----- drivers/staging/vt6656/card.c | 7 ------- drivers/staging/vt6656/card.h | 4 ---- drivers/staging/vt6656/channel.c | 4 ---- drivers/staging/vt6656/channel.h | 4 ---- drivers/staging/vt6656/control.c | 6 ------ drivers/staging/vt6656/control.h | 4 ---- drivers/staging/vt6656/datarate.c | 6 ------ drivers/staging/vt6656/datarate.h | 5 ----- drivers/staging/vt6656/device.h | 3 --- drivers/staging/vt6656/dpc.c | 7 ------- drivers/staging/vt6656/dpc.h | 4 ---- drivers/staging/vt6656/firmware.c | 6 ------ drivers/staging/vt6656/firmware.h | 4 ---- drivers/staging/vt6656/hostap.h | 4 ---- drivers/staging/vt6656/int.c | 6 ------ drivers/staging/vt6656/int.h | 4 ---- drivers/staging/vt6656/iocmd.h | 5 ----- drivers/staging/vt6656/iowpa.h | 5 ----- drivers/staging/vt6656/iwctl.h | 4 ---- drivers/staging/vt6656/key.c | 10 ---------- drivers/staging/vt6656/key.h | 6 ------ drivers/staging/vt6656/mac.c | 6 ------ drivers/staging/vt6656/mac.h | 6 ------ drivers/staging/vt6656/main_usb.c | 5 ----- drivers/staging/vt6656/mib.c | 6 ------ drivers/staging/vt6656/mib.h | 4 ---- drivers/staging/vt6656/michael.c | 5 ----- drivers/staging/vt6656/michael.h | 3 --- drivers/staging/vt6656/power.c | 6 ------ drivers/staging/vt6656/power.h | 5 ----- drivers/staging/vt6656/rc4.h | 2 -- drivers/staging/vt6656/rf.c | 6 ------ drivers/staging/vt6656/rf.h | 4 ---- drivers/staging/vt6656/rndis.h | 5 ----- drivers/staging/vt6656/rxtx.c | 7 ------- drivers/staging/vt6656/rxtx.h | 4 ---- drivers/staging/vt6656/srom.h | 6 ------ drivers/staging/vt6656/tcrc.c | 5 ----- drivers/staging/vt6656/tcrc.h | 6 ------ drivers/staging/vt6656/tether.c | 5 ----- drivers/staging/vt6656/tether.h | 6 ------ drivers/staging/vt6656/tkip.c | 10 ---------- drivers/staging/vt6656/tkip.h | 6 ------ drivers/staging/vt6656/usbpipe.c | 6 ------ drivers/staging/vt6656/usbpipe.h | 4 ---- drivers/staging/vt6656/wcmd.c | 6 ------ drivers/staging/vt6656/wcmd.h | 5 ----- drivers/staging/vt6656/wctl.c | 5 ----- drivers/staging/vt6656/wctl.h | 4 ---- drivers/staging/vt6656/wmgr.c | 6 ------ drivers/staging/vt6656/wmgr.h | 6 ------ drivers/staging/vt6656/wpa.c | 1 - drivers/staging/vt6656/wpa.h | 5 ----- drivers/staging/vt6656/wpa2.c | 6 ------ drivers/staging/vt6656/wpa2.h | 5 ----- drivers/staging/vt6656/wpactl.c | 5 ----- drivers/staging/vt6656/wpactl.h | 4 ---- 66 files changed, 0 insertions(+), 347 deletions(-) diff --git a/drivers/staging/vt6656/80211hdr.h b/drivers/staging/vt6656/80211hdr.h index b87d543..d045ee2 100644 --- a/drivers/staging/vt6656/80211hdr.h +++ b/drivers/staging/vt6656/80211hdr.h @@ -30,7 +30,6 @@ #include "ttype.h" -/*--------------------- Export Definitions -------------------------*/ /* bit type */ #define BIT0 0x00000001 @@ -325,10 +324,7 @@ typedef union tagUWLAN_80211HDR { } UWLAN_80211HDR, *PUWLAN_80211HDR; -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ #endif /* __80211HDR_H__ */ diff --git a/drivers/staging/vt6656/80211mgr.c b/drivers/staging/vt6656/80211mgr.c index 534d490..7055f09 100644 --- a/drivers/staging/vt6656/80211mgr.c +++ b/drivers/staging/vt6656/80211mgr.c @@ -59,24 +59,18 @@ #include "80211hdr.h" #include "wpa.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ static int msglevel = MSG_LEVEL_INFO; /*static int msglevel =MSG_LEVEL_DEBUG;*/ -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ /*+ diff --git a/drivers/staging/vt6656/80211mgr.h b/drivers/staging/vt6656/80211mgr.h index f8e16d8..3c59f12 100644 --- a/drivers/staging/vt6656/80211mgr.h +++ b/drivers/staging/vt6656/80211mgr.h @@ -34,7 +34,6 @@ #include "ttype.h" #include "80211hdr.h" -/*--------------------- Export Definitions -------------------------*/ #define WLAN_MIN_ARRAY 1 @@ -213,11 +212,8 @@ #define MEASURE_MODE_INCAPABLE 0x02 #define MEASURE_MODE_REFUSED 0x04 -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Types ------------------------------*/ /* Information Element types */ @@ -720,7 +716,6 @@ typedef struct tagWLAN_FR_DEAUTHEN { } WLAN_FR_DEAUTHEN, *PWLAN_FR_DEAUTHEN; -/*--------------------- Export Functions --------------------------*/ void vMgrEncodeBeacon( diff --git a/drivers/staging/vt6656/aes_ccmp.c b/drivers/staging/vt6656/aes_ccmp.c index fb6124d..9091065 100644 --- a/drivers/staging/vt6656/aes_ccmp.c +++ b/drivers/staging/vt6656/aes_ccmp.c @@ -33,11 +33,8 @@ #include "device.h" #include "80211hdr.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ /* * SBOX Table @@ -100,11 +97,8 @@ BYTE dot3_table[256] = { 0x0b, 0x08, 0x0d, 0x0e, 0x07, 0x04, 0x01, 0x02, 0x13, 0x10, 0x15, 0x16, 0x1f, 0x1c, 0x19, 0x1a }; -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ static void xor_128(BYTE *a, BYTE *b, BYTE *out) { diff --git a/drivers/staging/vt6656/aes_ccmp.h b/drivers/staging/vt6656/aes_ccmp.h index a2e2c4e..8a602d7 100644 --- a/drivers/staging/vt6656/aes_ccmp.h +++ b/drivers/staging/vt6656/aes_ccmp.h @@ -32,15 +32,10 @@ #include "ttype.h" -/*--------------------- Export Definitions -------------------------*/ -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ bool AESbGenCCMP(PBYTE pbyRxKey, PBYTE pbyFrame, WORD wFrameSize); #endif /* __AES_CCMP_H__ */ diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c index a9f525e..5d4298f 100644 --- a/drivers/staging/vt6656/baseband.c +++ b/drivers/staging/vt6656/baseband.c @@ -47,23 +47,15 @@ #include "datarate.h" #include "rndis.h" -/*--------------------- Static Definitions -------------------------*/ static int msglevel =MSG_LEVEL_INFO; //static int msglevel =MSG_LEVEL_DEBUG; -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ BYTE abyVT3184_AGC[] = { @@ -658,7 +650,6 @@ BYTE abyVT3184_VT3226D0[] = { const WORD awcFrameTime[MAX_RATE] = {10, 20, 55, 110, 24, 36, 48, 72, 96, 144, 192, 216}; -/*--------------------- Static Functions --------------------------*/ /* static @@ -674,7 +665,6 @@ void s_vClearSQ3Value(PSDevice pDevice); */ -/*--------------------- Export Variables --------------------------*/ /* * Description: Calculate data frame transmitting time * diff --git a/drivers/staging/vt6656/baseband.h b/drivers/staging/vt6656/baseband.h index fba6160..7742a62 100644 --- a/drivers/staging/vt6656/baseband.h +++ b/drivers/staging/vt6656/baseband.h @@ -37,7 +37,6 @@ #include "tether.h" #include "device.h" -/*--------------------- Export Definitions -------------------------*/ #define PREAMBLE_LONG 0 #define PREAMBLE_SHORT 1 @@ -85,15 +84,10 @@ #define TOP_RATE_1M 0x00100000 -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Macros ------------------------------*/ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ unsigned int BBuGetFrameTime( diff --git a/drivers/staging/vt6656/bssdb.c b/drivers/staging/vt6656/bssdb.c index e214fcf..f84178f 100644 --- a/drivers/staging/vt6656/bssdb.c +++ b/drivers/staging/vt6656/bssdb.c @@ -59,14 +59,11 @@ #include "rndis.h" #include "iowpa.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ static int msglevel =MSG_LEVEL_INFO; //static int msglevel =MSG_LEVEL_DEBUG; @@ -89,16 +86,13 @@ const WORD awHWRetry1[5][5] = { -/*--------------------- Static Functions --------------------------*/ static void s_vCheckSensitivity(struct vnt_private *pDevice); static void s_vCheckPreEDThreshold(struct vnt_private *pDevice); static void s_uCalculateLinkQual(struct vnt_private *pDevice); -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ diff --git a/drivers/staging/vt6656/bssdb.h b/drivers/staging/vt6656/bssdb.h index 08091a0..051dd9b 100644 --- a/drivers/staging/vt6656/bssdb.h +++ b/drivers/staging/vt6656/bssdb.h @@ -36,7 +36,6 @@ #include "card.h" #include "mib.h" -/*--------------------- Export Definitions -------------------------*/ #define MAX_NODE_NUM 64 #define MAX_BSS_NUM 42 @@ -67,12 +66,9 @@ #define MAX_WPA_IE_LEN 64 -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Types ------------------------------*/ // // IEEE 802.11 Structures and definitions @@ -223,7 +219,6 @@ typedef struct tagKnownNodeDB { } KnownNodeDB, *PKnownNodeDB; -/*--------------------- Export Functions --------------------------*/ PKnownBSS BSSpSearchBSSList(struct vnt_private *, u8 *pbyDesireBSSID, u8 *pbyDesireSSID, CARD_PHY_TYPE ePhyType); diff --git a/drivers/staging/vt6656/card.c b/drivers/staging/vt6656/card.c index 22918a1..a980c9a 100644 --- a/drivers/staging/vt6656/card.c +++ b/drivers/staging/vt6656/card.c @@ -60,28 +60,21 @@ #include "rndis.h" #include "control.h" -/*--------------------- Static Definitions -------------------------*/ //static int msglevel =MSG_LEVEL_DEBUG; static int msglevel =MSG_LEVEL_INFO; -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ //const WORD cwRXBCNTSFOff[MAX_RATE] = //{17, 34, 96, 192, 34, 23, 17, 11, 8, 5, 4, 3}; const WORD cwRXBCNTSFOff[MAX_RATE] = {192, 96, 34, 17, 34, 23, 17, 11, 8, 5, 4, 3}; -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ /* * Description: Set NIC media channel * diff --git a/drivers/staging/vt6656/card.h b/drivers/staging/vt6656/card.h index 5123bc7..1e37ed3 100644 --- a/drivers/staging/vt6656/card.h +++ b/drivers/staging/vt6656/card.h @@ -31,9 +31,7 @@ #include "device.h" #include "ttype.h" -/*--------------------- Export Definitions -------------------------*/ -/*--------------------- Export Classes ----------------------------*/ /* init card type */ @@ -55,9 +53,7 @@ typedef enum _CARD_OP_MODE { #define CB_MAX_CHANNEL_5G 42 /* add channel9(5045MHz), 41==>42 */ #define CB_MAX_CHANNEL (CB_MAX_CHANNEL_24G+CB_MAX_CHANNEL_5G) -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ struct vnt_private; void CARDbSetMediaChannel(struct vnt_private *pDevice, u32 uConnectionChannel); diff --git a/drivers/staging/vt6656/channel.c b/drivers/staging/vt6656/channel.c index 4181e3e..8cf9c17 100644 --- a/drivers/staging/vt6656/channel.c +++ b/drivers/staging/vt6656/channel.c @@ -39,13 +39,10 @@ #include "channel.h" #include "rf.h" -/*--------------------- Static Definitions -------------------------*/ static int msglevel = MSG_LEVEL_INFO; //static int msglevel =MSG_LEVEL_DEBUG; -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Export Definitions -------------------------*/ static SChannelTblElement sChannelTbl[CB_MAX_CHANNEL+1] = @@ -368,7 +365,6 @@ static struct /* 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 */ }; -/*--------------------- Export function -------------------------*/ /************************************************************************ * Country Channel Valid * Input: CountryCode, ChannelNum diff --git a/drivers/staging/vt6656/channel.h b/drivers/staging/vt6656/channel.h index 9914dba..eadc8ff 100644 --- a/drivers/staging/vt6656/channel.h +++ b/drivers/staging/vt6656/channel.h @@ -33,9 +33,7 @@ #include "device.h" #include "ttype.h" -/*--------------------- Export Definitions -------------------------*/ -/*--------------------- Export Classes ----------------------------*/ typedef struct tagSChannelTblElement { BYTE byChannelNumber; @@ -43,9 +41,7 @@ typedef struct tagSChannelTblElement { bool bValid; } SChannelTblElement, *PSChannelTblElement; -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ bool ChannelValid(unsigned int CountryCode, unsigned int ChannelNum); void CHvInitChannelTable(struct vnt_private *pDevice); diff --git a/drivers/staging/vt6656/control.c b/drivers/staging/vt6656/control.c index 743ef5f..eda0de3 100644 --- a/drivers/staging/vt6656/control.c +++ b/drivers/staging/vt6656/control.c @@ -43,18 +43,12 @@ #include "control.h" #include "rndis.h" -/*--------------------- Static Definitions -------------------------*/ /* static int msglevel =MSG_LEVEL_INFO; */ /* static int msglevel =MSG_LEVEL_DEBUG; */ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ void ControlvWriteByte(struct vnt_private *pDevice, u8 reg, u8 reg_off, u8 data) diff --git a/drivers/staging/vt6656/control.h b/drivers/staging/vt6656/control.h index 76ce024..08f5f18 100644 --- a/drivers/staging/vt6656/control.h +++ b/drivers/staging/vt6656/control.h @@ -34,7 +34,6 @@ #include "device.h" #include "usbpipe.h" -/*--------------------- Export Definitions -------------------------*/ #define CONTROLnsRequestOut(Device, Request, Value, Index, Length, Buffer) \ PIPEnsControlOut(Device, Request, Value, Index, Length, Buffer) @@ -45,11 +44,8 @@ #define CONTROLnsRequestIn(Device, Request, Value, Index, Length, Buffer) \ PIPEnsControlIn(Device, Request, Value, Index, Length, Buffer) -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ void ControlvWriteByte(struct vnt_private *pDevice, u8 reg, u8 reg_off, u8 data); diff --git a/drivers/staging/vt6656/datarate.c b/drivers/staging/vt6656/datarate.c index 77464e8..8b91a42 100644 --- a/drivers/staging/vt6656/datarate.c +++ b/drivers/staging/vt6656/datarate.c @@ -44,16 +44,13 @@ #include "srom.h" #include "rf.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ /* static int msglevel = MSG_LEVEL_DEBUG; */ static int msglevel =MSG_LEVEL_INFO; @@ -64,7 +61,6 @@ const BYTE acbyIERate[MAX_RATE] = #define AUTORATE_TXFAIL_CNT 0x0064 #define AUTORATE_TIMEOUT 10 -/*--------------------- Static Functions --------------------------*/ void s_vResetCounter(PKnownNodeDB psNodeDBTable); @@ -79,10 +75,8 @@ void s_vResetCounter(PKnownNodeDB psNodeDBTable) } } -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ /*+ diff --git a/drivers/staging/vt6656/datarate.h b/drivers/staging/vt6656/datarate.h index 8dc55bd..18280ea 100644 --- a/drivers/staging/vt6656/datarate.h +++ b/drivers/staging/vt6656/datarate.h @@ -30,7 +30,6 @@ #define __DATARATE_H__ -/*--------------------- Export Definitions -------------------------*/ #define FALLBACK_PKT_COLLECT_TR_H 50 /* pkts */ #define FALLBACK_PKT_COLLECT_TR_L 10 /* pkts */ @@ -57,15 +56,11 @@ #define RATE_AUTO 12 #define MAX_RATE 12 -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Functions --------------------------*/ diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h index 6bba2e0..7117cdc 100644 --- a/drivers/staging/vt6656/device.h +++ b/drivers/staging/vt6656/device.h @@ -78,7 +78,6 @@ #include "key.h" #include "card.h" -/*--------------------- Export Definitions -------------------------*/ #define VNT_USB_VENDOR_ID 0x160a #define VNT_USB_PRODUCT_ID 0x3184 @@ -142,7 +141,6 @@ #define PRIVATE_Message 0 -/*--------------------- Export Types ------------------------------*/ #define DBG_PRT(l, p, args...) { if (l <= msglevel) printk(p, ##args); } #define PRINT_K(p, args...) { if (PRIVATE_Message) printk(p, ##args); } @@ -841,7 +839,6 @@ struct vnt_private { #define MP_IS_READY(_M) (((_M)->Flags & \ (fMP_DISCONNECTED | fMP_RESET_IN_PROGRESS | fMP_HALT_IN_PROGRESS | fMP_INIT_IN_PROGRESS | fMP_SURPRISE_REMOVED)) == 0) -/*--------------------- Export Functions --------------------------*/ int device_alloc_frag_buf(struct vnt_private *, PSDeFragControlBlock pDeF); diff --git a/drivers/staging/vt6656/dpc.c b/drivers/staging/vt6656/dpc.c index e83f95e..ba6b06d 100644 --- a/drivers/staging/vt6656/dpc.c +++ b/drivers/staging/vt6656/dpc.c @@ -56,11 +56,8 @@ #include "datarate.h" #include "usbpipe.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ //static int msglevel =MSG_LEVEL_DEBUG; static int msglevel =MSG_LEVEL_INFO; @@ -68,11 +65,8 @@ const BYTE acbyRxRate[MAX_RATE] = {2, 4, 11, 22, 12, 18, 24, 36, 48, 72, 96, 108}; -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Functions --------------------------*/ static BYTE s_byGetRateIdx(BYTE byRate); @@ -102,7 +96,6 @@ static int s_bHostWepRxEncryption(struct vnt_private *pDevice, u8 *pbyFrame, u32 FrameSize, u8 *pbyRsr, int bOnFly, PSKeyItem pKey, u8 *pbyNewRsr, s32 *pbExtIV, u16 *pwRxTSC15_0, u32 *pdwRxTSC47_16); -/*--------------------- Export Variables --------------------------*/ /*+ * diff --git a/drivers/staging/vt6656/dpc.h b/drivers/staging/vt6656/dpc.h index 786c523..d4f3a96 100644 --- a/drivers/staging/vt6656/dpc.h +++ b/drivers/staging/vt6656/dpc.h @@ -33,13 +33,9 @@ #include "device.h" #include "wcmd.h" -/*--------------------- Export Definitions -------------------------*/ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ void RXvWorkItem(void *Context); diff --git a/drivers/staging/vt6656/firmware.c b/drivers/staging/vt6656/firmware.c index 4371a77..2bc5328 100644 --- a/drivers/staging/vt6656/firmware.c +++ b/drivers/staging/vt6656/firmware.c @@ -35,7 +35,6 @@ #include "control.h" #include "rndis.h" -/*--------------------- Static Definitions -------------------------*/ static int msglevel =MSG_LEVEL_INFO; //static int msglevel =MSG_LEVEL_DEBUG; @@ -45,15 +44,10 @@ static int msglevel =MSG_LEVEL_INFO; #define FIRMWARE_CHUNK_SIZE 0x400 -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ int FIRMWAREbDownload(struct vnt_private *pDevice) diff --git a/drivers/staging/vt6656/firmware.h b/drivers/staging/vt6656/firmware.h index ebab3a6..f335c3b 100644 --- a/drivers/staging/vt6656/firmware.h +++ b/drivers/staging/vt6656/firmware.h @@ -33,13 +33,9 @@ #include "ttype.h" #include "device.h" -/*--------------------- Export Definitions -------------------------*/ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ int FIRMWAREbDownload(struct vnt_private *); int FIRMWAREbBrach2Sram(struct vnt_private *); diff --git a/drivers/staging/vt6656/hostap.h b/drivers/staging/vt6656/hostap.h index f5656cd..ba093b9 100644 --- a/drivers/staging/vt6656/hostap.h +++ b/drivers/staging/vt6656/hostap.h @@ -31,7 +31,6 @@ #include "device.h" -/*--------------------- Export Definitions -------------------------*/ #define WLAN_RATE_1M BIT0 #define WLAN_RATE_2M BIT1 @@ -47,11 +46,8 @@ #define WLAN_RATE_54M BIT11 -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ #ifndef ETH_P_PAE #define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */ diff --git a/drivers/staging/vt6656/int.c b/drivers/staging/vt6656/int.c index 51990bd..1d99edc 100644 --- a/drivers/staging/vt6656/int.c +++ b/drivers/staging/vt6656/int.c @@ -40,18 +40,12 @@ #include "bssdb.h" #include "usbpipe.h" -/*--------------------- Static Definitions -------------------------*/ static int msglevel = MSG_LEVEL_INFO; /* MSG_LEVEL_DEBUG */ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ /*+ * diff --git a/drivers/staging/vt6656/int.h b/drivers/staging/vt6656/int.h index 27c725f..ae995c0 100644 --- a/drivers/staging/vt6656/int.h +++ b/drivers/staging/vt6656/int.h @@ -33,7 +33,6 @@ #include "ttype.h" #include "device.h" -/*--------------------- Export Definitions -------------------------*/ typedef struct tagSINTData { BYTE byTSR0; BYTE byPkt0; @@ -58,11 +57,8 @@ typedef struct tagSINTData { } __attribute__ ((__packed__)) SINTData, *PSINTData; -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ void INTvWorkItem(struct vnt_private *); void INTnsProcessData(struct vnt_private *); diff --git a/drivers/staging/vt6656/iocmd.h b/drivers/staging/vt6656/iocmd.h index c354a77..fdc26f0 100644 --- a/drivers/staging/vt6656/iocmd.h +++ b/drivers/staging/vt6656/iocmd.h @@ -31,7 +31,6 @@ #include "ttype.h" -/*--------------------- Export Definitions -------------------------*/ // ioctl Command code #define MAGIC_CODE 0x3142 @@ -432,12 +431,8 @@ struct viawget_hostapd_param { } u; } __packed; -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Functions --------------------------*/ #endif /* __IOCMD_H__ */ diff --git a/drivers/staging/vt6656/iowpa.h b/drivers/staging/vt6656/iowpa.h index 2522dde..bf28ac3 100644 --- a/drivers/staging/vt6656/iowpa.h +++ b/drivers/staging/vt6656/iowpa.h @@ -29,7 +29,6 @@ #ifndef __IOWPA_H__ #define __IOWPA_H__ -/*--------------------- Export Definitions -------------------------*/ #define WPA_IE_LEN 64 @@ -130,12 +129,8 @@ struct viawget_scan_result { int maxrate; } __packed; -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Functions --------------------------*/ #endif /* __IOWPA_H__ */ diff --git a/drivers/staging/vt6656/iwctl.h b/drivers/staging/vt6656/iwctl.h index b594a10..2d13153 100644 --- a/drivers/staging/vt6656/iwctl.h +++ b/drivers/staging/vt6656/iwctl.h @@ -31,13 +31,9 @@ #include "device.h" -/*--------------------- Export Definitions -------------------------*/ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev); diff --git a/drivers/staging/vt6656/key.c b/drivers/staging/vt6656/key.c index 416175e..7f83964 100644 --- a/drivers/staging/vt6656/key.c +++ b/drivers/staging/vt6656/key.c @@ -42,24 +42,15 @@ #include "rndis.h" #include "control.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ static int msglevel =MSG_LEVEL_INFO; //static int msglevel =MSG_LEVEL_DEBUG; -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ -/*--------------------- Static Functions --------------------------*/ static void s_vCheckKeyTableValid(struct vnt_private *pDevice, PSKeyManagement pTable) { @@ -96,7 +87,6 @@ static void s_vCheckKeyTableValid(struct vnt_private *pDevice, } -/*--------------------- Export Functions --------------------------*/ /* diff --git a/drivers/staging/vt6656/key.h b/drivers/staging/vt6656/key.h index 7ecddcd..0d70e27 100644 --- a/drivers/staging/vt6656/key.h +++ b/drivers/staging/vt6656/key.h @@ -34,7 +34,6 @@ #include "tether.h" #include "80211mgr.h" -/*--------------------- Export Definitions -------------------------*/ #define MAX_GROUP_KEY 4 #define MAX_KEY_TABLE 11 #define MAX_KEY_LEN 32 @@ -87,15 +86,10 @@ typedef struct tagSKeyManagement SKeyTable KeyTable[MAX_KEY_TABLE]; } SKeyManagement, *PSKeyManagement; -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Macros ------------------------------*/ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ void KeyvInitTable(struct vnt_private *, PSKeyManagement pTable); diff --git a/drivers/staging/vt6656/mac.c b/drivers/staging/vt6656/mac.c index 76d307b..87e81b3 100644 --- a/drivers/staging/vt6656/mac.c +++ b/drivers/staging/vt6656/mac.c @@ -38,18 +38,12 @@ #include "rndis.h" #include "control.h" -/*--------------------- Static Definitions -------------------------*/ //static int msglevel =MSG_LEVEL_DEBUG; static int msglevel =MSG_LEVEL_INFO; -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ diff --git a/drivers/staging/vt6656/mac.h b/drivers/staging/vt6656/mac.h index 6e28500..e36b5d6 100644 --- a/drivers/staging/vt6656/mac.h +++ b/drivers/staging/vt6656/mac.h @@ -38,7 +38,6 @@ #include "device.h" #include "tmacro.h" -/*--------------------- Export Definitions -------------------------*/ #define REV_ID_VT3253_A0 0x00 #define REV_ID_VT3253_A1 0x01 @@ -410,15 +409,10 @@ #define MAC_REVISION_A1 0x01 -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Macros ------------------------------*/ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ void MACvSetMultiAddrByHash(struct vnt_private *, u8); void MACvWriteMultiAddr(struct vnt_private *, u32, u8); diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index d5f53e1..d92c947 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -72,7 +72,6 @@ #include "int.h" #include "iowpa.h" -/*--------------------- Static Definitions -------------------------*/ /* static int msglevel = MSG_LEVEL_DEBUG; */ static int msglevel =MSG_LEVEL_INFO; @@ -208,7 +207,6 @@ static const long frequency_list[] = { static const struct iw_handler_def iwctl_handler_def; */ -/*--------------------- Static Functions --------------------------*/ static int vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id); @@ -250,9 +248,7 @@ static void usb_device_reset(struct vnt_private *pDevice); -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ static void @@ -969,7 +965,6 @@ int device_alloc_frag_buf(struct vnt_private *pDevice, } -/*-----------------------------------------------------------------*/ static int device_open(struct net_device *dev) { diff --git a/drivers/staging/vt6656/mib.c b/drivers/staging/vt6656/mib.c index d4c7b0c..36d8e13 100644 --- a/drivers/staging/vt6656/mib.c +++ b/drivers/staging/vt6656/mib.c @@ -43,17 +43,11 @@ #include "wctl.h" #include "baseband.h" -/*--------------------- Static Definitions -------------------------*/ static int msglevel =MSG_LEVEL_INFO; -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ diff --git a/drivers/staging/vt6656/mib.h b/drivers/staging/vt6656/mib.h index 85c28e9..3bc5f6e 100644 --- a/drivers/staging/vt6656/mib.h +++ b/drivers/staging/vt6656/mib.h @@ -33,7 +33,6 @@ #include "tether.h" #include "desc.h" -/*--------------------- Export Definitions -------------------------*/ // @@ -367,11 +366,8 @@ typedef struct tagSStatCounter { } SStatCounter, *PSStatCounter; -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ void STAvClearAllCounter(PSStatCounter pStatistic); diff --git a/drivers/staging/vt6656/michael.c b/drivers/staging/vt6656/michael.c index 4d41981..38bac74 100644 --- a/drivers/staging/vt6656/michael.c +++ b/drivers/staging/vt6656/michael.c @@ -42,11 +42,8 @@ #include "tmacro.h" #include "michael.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Variables --------------------------*/ -/*--------------------- Static Functions --------------------------*/ /* * static DWORD s_dwGetUINT32(BYTE * p); Get DWORD from * 4 bytes LSByte first @@ -60,13 +57,11 @@ static void s_vSetKey(DWORD dwK0, DWORD dwK1); static void s_vAppendByte(BYTE b); /* Add a single byte to the internal * message */ -/*--------------------- Export Variables --------------------------*/ static DWORD L, R; /* Current state */ static DWORD K0, K1; /* Key */ static DWORD M; /* Message accumulator (single word) */ static unsigned int nBytesInM; /* # bytes in M */ -/*--------------------- Export Functions --------------------------*/ /* static DWORD s_dwGetUINT32 (BYTE * p) diff --git a/drivers/staging/vt6656/michael.h b/drivers/staging/vt6656/michael.h index 81351f5..a002d58 100644 --- a/drivers/staging/vt6656/michael.h +++ b/drivers/staging/vt6656/michael.h @@ -31,9 +31,7 @@ #ifndef __MICHAEL_H__ #define __MICHAEL_H__ -/*--------------------- Export Definitions -------------------------*/ -/*--------------------- Export Types ------------------------------*/ void MIC_vInit(DWORD dwK0, DWORD dwK1); @@ -46,7 +44,6 @@ void MIC_vAppend(PBYTE src, unsigned int nBytes); // This also resets the message to empty. void MIC_vGetMIC(PDWORD pdwL, PDWORD pdwR); -/*--------------------- Export Macros ------------------------------*/ // Rotation functions on 32 bit values #define ROL32(A, n) \ diff --git a/drivers/staging/vt6656/power.c b/drivers/staging/vt6656/power.c index 527c259f..b08a7af 100644 --- a/drivers/staging/vt6656/power.c +++ b/drivers/staging/vt6656/power.c @@ -48,17 +48,11 @@ #include "control.h" #include "rndis.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ static int msglevel = MSG_LEVEL_INFO; -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ /* * diff --git a/drivers/staging/vt6656/power.h b/drivers/staging/vt6656/power.h index 879b10c..38edff6 100644 --- a/drivers/staging/vt6656/power.h +++ b/drivers/staging/vt6656/power.h @@ -30,20 +30,15 @@ #define __POWER_H__ -/*--------------------- Export Definitions -------------------------*/ #define C_PWBT 1000 // micro sec. power up before TBTT #define PS_FAST_INTERVAL 1 // Fast power saving listen interval #define PS_MAX_INTERVAL 4 // MAX power saving listen interval -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Functions --------------------------*/ /* PSDevice pDevice */ /* PSDevice hDeviceContext */ diff --git a/drivers/staging/vt6656/rc4.h b/drivers/staging/vt6656/rc4.h index d447879c..28efa78 100644 --- a/drivers/staging/vt6656/rc4.h +++ b/drivers/staging/vt6656/rc4.h @@ -32,8 +32,6 @@ #include "ttype.h" -/*--------------------- Export Definitions -------------------------*/ -/*--------------------- Export Types ------------------------------*/ typedef struct { unsigned int ux; unsigned int uy; diff --git a/drivers/staging/vt6656/rf.c b/drivers/staging/vt6656/rf.c index a415705..303f8f6 100644 --- a/drivers/staging/vt6656/rf.c +++ b/drivers/staging/vt6656/rf.c @@ -41,7 +41,6 @@ static int msglevel =MSG_LEVEL_INFO; //static int msglevel =MSG_LEVEL_DEBUG; -/*--------------------- Static Definitions -------------------------*/ #define BY_AL2230_REG_LEN 23 //24bit #define CB_AL2230_INIT_SEQ 15 #define AL2230_PWR_IDX_LEN 64 @@ -62,9 +61,7 @@ static int msglevel =MSG_LEVEL_INFO; #define VT3342_PWR_IDX_LEN 64 //}} -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ @@ -673,9 +670,7 @@ const u32 dwAL2230PowerTable[AL2230_PWR_IDX_LEN] = { 0x0407F900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW }; -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ //{{ RobertYu:20050103, Channel 11a Number To Index // 4.9G => Ch 183, 184, 185, 187, 188, 189, 192, 196 (Value:15 ~ 22) @@ -708,7 +703,6 @@ const u8 RFaby11aChannelIndex[200] = { }; //}} RobertYu -/*--------------------- Export Functions --------------------------*/ /* * Description: Write to IF/RF, by embedded programming diff --git a/drivers/staging/vt6656/rf.h b/drivers/staging/vt6656/rf.h index 9f70cf7..7a2a668 100644 --- a/drivers/staging/vt6656/rf.h +++ b/drivers/staging/vt6656/rf.h @@ -33,7 +33,6 @@ #include "ttype.h" #include "device.h" -/*--------------------- Export Definitions -------------------------*/ // // Baseband RF pair definition in eeprom (Bits 6..0) // @@ -57,11 +56,8 @@ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ extern const u8 RFaby11aChannelIndex[200]; -/*--------------------- Export Functions --------------------------*/ int IFRFbWriteEmbedded(struct vnt_private *, u32 dwData); int RFbSetPower(struct vnt_private *, u32 uRATE, u32 uCH); diff --git a/drivers/staging/vt6656/rndis.h b/drivers/staging/vt6656/rndis.h index fccf7e9..01c53e3 100644 --- a/drivers/staging/vt6656/rndis.h +++ b/drivers/staging/vt6656/rndis.h @@ -31,7 +31,6 @@ #ifndef __RNDIS_H__ #define __RNDIS_H__ -/*--------------------- Export Definitions -------------------------*/ #define MESSAGE_TYPE_READ 0x01 #define MESSAGE_TYPE_WRITE 0x00 #define MESSAGE_TYPE_LOCK_OR 0x02 @@ -70,7 +69,6 @@ #define VIAUSB20_PACKET_HEADER 0x04 -/*--------------------- Export Classes ----------------------------*/ typedef struct _CMD_MESSAGE { @@ -150,12 +148,9 @@ typedef struct _CMD_CHANGE_BBTYPE WORD wRSPINF_a[9]; } CMD_CHANGE_BBTYPE, *PCMD_CHANGE_BBTYPE; -/*--------------------- Export Macros -------------------------*/ #define EXCH_WORD(w) ((WORD)((WORD)(w)<<8) | (WORD)((WORD)(w)>>8)) -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ #endif /* _RNDIS_H_ */ diff --git a/drivers/staging/vt6656/rxtx.c b/drivers/staging/vt6656/rxtx.c index b939dcf..686cc80 100644 --- a/drivers/staging/vt6656/rxtx.c +++ b/drivers/staging/vt6656/rxtx.c @@ -63,16 +63,11 @@ #include "usbpipe.h" #include "iocmd.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ static int msglevel = MSG_LEVEL_INFO; -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Static Definitions -------------------------*/ const WORD wTimeStampOff[2][MAX_RATE] = { {384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, // Long Preamble @@ -104,7 +99,6 @@ const WORD wFB_Opt1[2][5] = { #define DATADUR_A_F0 12 #define DATADUR_A_F1 13 -/*--------------------- Static Functions --------------------------*/ static void s_vSaveTxPktInfo(struct vnt_private *pDevice, u8 byPktNum, u8 *pbyDestAddr, u16 wPktLength, u16 wFIFOCtl); @@ -157,7 +151,6 @@ static unsigned int s_uGetRTSCTSDuration(struct vnt_private *pDevice, int bNeedAck, u8 byFBOption); -/*--------------------- Export Variables --------------------------*/ static void *s_vGetFreeContext(struct vnt_private *pDevice) { diff --git a/drivers/staging/vt6656/rxtx.h b/drivers/staging/vt6656/rxtx.h index 9f53702..60f7730 100644 --- a/drivers/staging/vt6656/rxtx.h +++ b/drivers/staging/vt6656/rxtx.h @@ -33,9 +33,7 @@ #include "device.h" #include "wcmd.h" -/*--------------------- Export Definitions -------------------------*/ -/*--------------------- Export Classes ----------------------------*/ // // RTS buffer header @@ -661,9 +659,7 @@ typedef struct tagSBEACON_BUFFER } BEACON_BUFFER, *PBEACON_BUFFER; -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ void vDMA0_tx_80211(struct vnt_private *, struct sk_buff *skb); int nsDMA_tx_packet(struct vnt_private *, u32 uDMAIdx, struct sk_buff *skb); diff --git a/drivers/staging/vt6656/srom.h b/drivers/staging/vt6656/srom.h index dba21a5..bbe755f 100644 --- a/drivers/staging/vt6656/srom.h +++ b/drivers/staging/vt6656/srom.h @@ -32,7 +32,6 @@ #include "ttype.h" -/*--------------------- Export Definitions -------------------------*/ #define EEP_MAX_CONTEXT_SIZE 256 @@ -80,7 +79,6 @@ // #define EEP_RADIOCTL_ENABLE 0x80 -/*--------------------- Export Types ------------------------------*/ // AT24C02 eeprom contents // 2048 bits = 256 bytes = 128 words @@ -116,12 +114,8 @@ typedef struct tagSSromReg { BYTE abyCIS[128]; // 0x80 (WORD) } SSromReg, *PSSromReg; -/*--------------------- Export Macros ------------------------------*/ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ #endif /* __EEPROM_H__ */ diff --git a/drivers/staging/vt6656/tcrc.c b/drivers/staging/vt6656/tcrc.c index 2237eeb..ea61254 100644 --- a/drivers/staging/vt6656/tcrc.c +++ b/drivers/staging/vt6656/tcrc.c @@ -35,11 +35,8 @@ #include "tcrc.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ /* 32-bit CRC table */ static const DWORD s_adwCrc32Table[256] = { @@ -109,9 +106,7 @@ static const DWORD s_adwCrc32Table[256] = { 0xB40BBE37L, 0xC30C8EA1L, 0x5A05DF1BL, 0x2D02EF8DL }; -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ diff --git a/drivers/staging/vt6656/tcrc.h b/drivers/staging/vt6656/tcrc.h index dc54bd8..fef89d5 100644 --- a/drivers/staging/vt6656/tcrc.h +++ b/drivers/staging/vt6656/tcrc.h @@ -31,17 +31,11 @@ #include "ttype.h" -/*--------------------- Export Definitions -------------------------*/ -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Macros ------------------------------*/ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ DWORD CRCdwCrc32(PBYTE pbyData, unsigned int cbByte, DWORD dwCrcSeed); DWORD CRCdwGetCrc32(PBYTE pbyData, unsigned int cbByte); diff --git a/drivers/staging/vt6656/tether.c b/drivers/staging/vt6656/tether.c index 95286c4..655e1b6 100644 --- a/drivers/staging/vt6656/tether.c +++ b/drivers/staging/vt6656/tether.c @@ -37,15 +37,10 @@ #include "tcrc.h" #include "tether.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ diff --git a/drivers/staging/vt6656/tether.h b/drivers/staging/vt6656/tether.h index 2f8f485..42a208c 100644 --- a/drivers/staging/vt6656/tether.h +++ b/drivers/staging/vt6656/tether.h @@ -32,7 +32,6 @@ #include <linux/if_ether.h> #include "ttype.h" -/*--------------------- Export Definitions -------------------------*/ // // constants // @@ -115,7 +114,6 @@ #define WEP_IV_MASK 0x00FFFFFF -/*--------------------- Export Types ------------------------------*/ // // Ethernet packet // @@ -151,13 +149,9 @@ typedef struct tagS802_11Header { } __attribute__ ((__packed__)) S802_11Header, *PS802_11Header; -/*--------------------- Export Macros ------------------------------*/ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ BYTE ETHbyGetHashIndexByCrc32(PBYTE pbyMultiAddr); //BYTE ETHbyGetHashIndexByCrc(PBYTE pbyMultiAddr); diff --git a/drivers/staging/vt6656/tkip.c b/drivers/staging/vt6656/tkip.c index 282c08d..cf94853 100644 --- a/drivers/staging/vt6656/tkip.c +++ b/drivers/staging/vt6656/tkip.c @@ -35,21 +35,13 @@ #include "tmacro.h" #include "tkip.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ /* The Sbox is reduced to 2 16-bit wide tables, each with 256 entries. */ /* The 2nd table is the same as the 1st but with the upper and lower */ @@ -128,9 +120,7 @@ const BYTE TKIP_Sbox_Upper[256] = { //STKIPKeyManagement sTKIPKeyTable[MAX_TKIP_KEY]; -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ /************************************************************/ /* tkip_sbox() */ diff --git a/drivers/staging/vt6656/tkip.h b/drivers/staging/vt6656/tkip.h index 47c3a85..514c9bd 100644 --- a/drivers/staging/vt6656/tkip.h +++ b/drivers/staging/vt6656/tkip.h @@ -33,18 +33,12 @@ #include "ttype.h" #include "tether.h" -/*--------------------- Export Definitions -------------------------*/ #define TKIP_KEY_LEN 16 -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Macros ------------------------------*/ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ void TKIPvMixKey( PBYTE pbyTKey, diff --git a/drivers/staging/vt6656/usbpipe.c b/drivers/staging/vt6656/usbpipe.c index 00fd0f8..62e80ed 100644 --- a/drivers/staging/vt6656/usbpipe.c +++ b/drivers/staging/vt6656/usbpipe.c @@ -45,7 +45,6 @@ #include "desc.h" #include "device.h" -/*--------------------- Static Definitions -------------------------*/ //endpoint def //endpoint 0: control //endpoint 1: interrupt @@ -62,20 +61,15 @@ static int msglevel =MSG_LEVEL_INFO; #define URB_ASYNC_UNLINK 0 #endif -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ -/*--------------------- Static Functions --------------------------*/ static void s_nsInterruptUsbIoCompleteRead(struct urb *urb); static void s_nsBulkInUsbIoCompleteRead(struct urb *urb); static void s_nsBulkOutIoCompleteWrite(struct urb *urb); static void s_nsControlInUsbIoCompleteRead(struct urb *urb); static void s_nsControlInUsbIoCompleteWrite(struct urb *urb); -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ int PIPEnsControlOutAsyn(struct vnt_private *pDevice, u8 byRequest, u16 wValue, u16 wIndex, u16 wLength, u8 *pbyBuffer) diff --git a/drivers/staging/vt6656/usbpipe.h b/drivers/staging/vt6656/usbpipe.h index b302355..498854d 100644 --- a/drivers/staging/vt6656/usbpipe.h +++ b/drivers/staging/vt6656/usbpipe.h @@ -33,13 +33,9 @@ #include "ttype.h" #include "device.h" -/*--------------------- Export Definitions -------------------------*/ -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ int PIPEnsControlOut(struct vnt_private *, u8 byRequest, u16 wValue, u16 wIndex, u16 wLength, u8 *pbyBuffer); diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656/wcmd.c index 4bb652b..b4fb645 100644 --- a/drivers/staging/vt6656/wcmd.c +++ b/drivers/staging/vt6656/wcmd.c @@ -56,17 +56,13 @@ #include "channel.h" #include "iowpa.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ static int msglevel =MSG_LEVEL_INFO; //static int msglevel =MSG_LEVEL_DEBUG; -/*--------------------- Static Functions --------------------------*/ static void s_vProbeChannel(struct vnt_private *); @@ -80,9 +76,7 @@ static int s_bCommandComplete(struct vnt_private *); static int s_bClearBSSID_SCAN(struct vnt_private *); -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ /* * Description: diff --git a/drivers/staging/vt6656/wcmd.h b/drivers/staging/vt6656/wcmd.h index c40e6ba..458afe3 100644 --- a/drivers/staging/vt6656/wcmd.h +++ b/drivers/staging/vt6656/wcmd.h @@ -32,7 +32,6 @@ #include "80211hdr.h" #include "80211mgr.h" -/*--------------------- Export Definitions -------------------------*/ @@ -104,13 +103,9 @@ typedef enum tagCMD_STATE { WLAN_CMD_IDLE } CMD_STATE, *PCMD_STATE; -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Functions --------------------------*/ struct vnt_private; void vResetCommandTimer(struct vnt_private *); diff --git a/drivers/staging/vt6656/wctl.c b/drivers/staging/vt6656/wctl.c index baa48a1..77bd9a1 100644 --- a/drivers/staging/vt6656/wctl.c +++ b/drivers/staging/vt6656/wctl.c @@ -39,15 +39,10 @@ #include "card.h" #include "tmacro.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ // static int msglevel =MSG_LEVEL_INFO; -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ diff --git a/drivers/staging/vt6656/wctl.h b/drivers/staging/vt6656/wctl.h index 1b21e32e..df8f575 100644 --- a/drivers/staging/vt6656/wctl.h +++ b/drivers/staging/vt6656/wctl.h @@ -33,7 +33,6 @@ #include "tether.h" #include "device.h" -/*--------------------- Export Definitions -------------------------*/ #define IS_TYPE_DATA(pMACHeader) \ ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_802_11_MASK) == TYPE_802_11_DATA) @@ -90,11 +89,8 @@ (uVar)++; \ } -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ bool WCTLbIsDuplicate(PSCache pCache, PS802_11Header pMACHeader); bool WCTLbHandleFragment(struct vnt_private *, PS802_11Header pMACHeader, diff --git a/drivers/staging/vt6656/wmgr.c b/drivers/staging/vt6656/wmgr.c index 5dced0a..19ed4c8 100644 --- a/drivers/staging/vt6656/wmgr.c +++ b/drivers/staging/vt6656/wmgr.c @@ -81,17 +81,13 @@ #include "control.h" #include "rndis.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ static int msglevel =MSG_LEVEL_INFO; //static int msglevel =MSG_LEVEL_DEBUG; -/*--------------------- Static Functions --------------------------*/ static int ChannelExceedZoneType(struct vnt_private *, u8 byCurrChannel); @@ -197,9 +193,7 @@ s_bCipherMatch ( static void Encyption_Rebuild(struct vnt_private *, PKnownBSS pCurr); -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ /*+ * diff --git a/drivers/staging/vt6656/wmgr.h b/drivers/staging/vt6656/wmgr.h index 83aed45..9e64c1d 100644 --- a/drivers/staging/vt6656/wmgr.h +++ b/drivers/staging/vt6656/wmgr.h @@ -42,7 +42,6 @@ #include "wpa2.h" #include "card.h" -/*--------------------- Export Definitions -------------------------*/ @@ -76,11 +75,8 @@ #define DEFAULT_IBSS_CHANNEL 6 //2.4G -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Types ------------------------------*/ //mike define: make timer to expire after desired times #define timer_expire(timer, next_tick) mod_timer(&timer, RUN_AT(next_tick)) @@ -384,9 +380,7 @@ struct vnt_manager { }; -/*--------------------- Export Macros ------------------------------*/ -/*--------------------- Export Functions --------------------------*/ void vMgrObjectInit(struct vnt_private *pDevice); diff --git a/drivers/staging/vt6656/wpa.c b/drivers/staging/vt6656/wpa.c index f037be3..4ec104c 100644 --- a/drivers/staging/vt6656/wpa.c +++ b/drivers/staging/vt6656/wpa.c @@ -42,7 +42,6 @@ #include "wpa.h" #include "80211mgr.h" -/*--------------------- Static Variables --------------------------*/ static int msglevel =MSG_LEVEL_INFO; const BYTE abyOUI00[4] = { 0x00, 0x50, 0xf2, 0x00 }; diff --git a/drivers/staging/vt6656/wpa.h b/drivers/staging/vt6656/wpa.h index 0369cbf..2afcf54 100644 --- a/drivers/staging/vt6656/wpa.h +++ b/drivers/staging/vt6656/wpa.h @@ -34,7 +34,6 @@ #include "ttype.h" #include "80211hdr.h" -/*--------------------- Export Definitions -------------------------*/ #define WPA_NONE 0 #define WPA_WEP40 1 @@ -49,14 +48,10 @@ #define WPA_REPLAYBITSSHIFT 2 #define WPA_REPLAYBITS 0x03 -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Functions --------------------------*/ void WPA_ClearRSN( diff --git a/drivers/staging/vt6656/wpa2.c b/drivers/staging/vt6656/wpa2.c index a89456a..175ef93 100644 --- a/drivers/staging/vt6656/wpa2.c +++ b/drivers/staging/vt6656/wpa2.c @@ -34,12 +34,9 @@ #include "device.h" #include "wpa2.h" -/*--------------------- Static Definitions -------------------------*/ static int msglevel =MSG_LEVEL_INFO; //static int msglevel =MSG_LEVEL_DEBUG; -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ const BYTE abyOUIGK[4] = { 0x00, 0x0F, 0xAC, 0x00 }; const BYTE abyOUIWEP40[4] = { 0x00, 0x0F, 0xAC, 0x01 }; @@ -51,11 +48,8 @@ const BYTE abyOUI8021X[4] = { 0x00, 0x0F, 0xAC, 0x01 }; const BYTE abyOUIPSK[4] = { 0x00, 0x0F, 0xAC, 0x02 }; -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ /*+ * diff --git a/drivers/staging/vt6656/wpa2.h b/drivers/staging/vt6656/wpa2.h index c359252..005532af 100644 --- a/drivers/staging/vt6656/wpa2.h +++ b/drivers/staging/vt6656/wpa2.h @@ -36,7 +36,6 @@ #include "80211hdr.h" #include "bssdb.h" -/*--------------------- Export Definitions -------------------------*/ #define MAX_PMKID_CACHE 16 typedef struct tagsPMKIDInfo { @@ -50,13 +49,9 @@ typedef struct tagSPMKIDCache { } SPMKIDCache, *PSPMKIDCache; -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Types ------------------------------*/ -/*--------------------- Export Functions --------------------------*/ void WPA2_ClearRSN(PKnownBSS pBSSNode); void WPA2vParseRSN(PKnownBSS pBSSNode, PWLAN_IE_RSN pRSN); diff --git a/drivers/staging/vt6656/wpactl.c b/drivers/staging/vt6656/wpactl.c index 53629b2..eb89781 100644 --- a/drivers/staging/vt6656/wpactl.c +++ b/drivers/staging/vt6656/wpactl.c @@ -42,16 +42,11 @@ #include "rndis.h" #include "rf.h" -/*--------------------- Static Definitions -------------------------*/ -/*--------------------- Static Classes ----------------------------*/ -/*--------------------- Static Variables --------------------------*/ static int msglevel = MSG_LEVEL_INFO; -/*--------------------- Static Functions --------------------------*/ -/*--------------------- Export Variables --------------------------*/ /* diff --git a/drivers/staging/vt6656/wpactl.h b/drivers/staging/vt6656/wpactl.h index 2235ee9..ea05de3 100644 --- a/drivers/staging/vt6656/wpactl.h +++ b/drivers/staging/vt6656/wpactl.h @@ -32,7 +32,6 @@ #include "device.h" #include "iowpa.h" -/*--------------------- Export Definitions -------------------------*/ //WPA related @@ -46,11 +45,8 @@ typedef enum { WPA_ALG_NONE, WPA_ALG_WEP, WPA_ALG_TKIP, WPA_ALG_CCMP } wpa_alg; typedef unsigned long long NDIS_802_11_KEY_RSC; -/*--------------------- Export Classes ----------------------------*/ -/*--------------------- Export Variables --------------------------*/ -/*--------------------- Export Functions --------------------------*/ int wpa_set_keys(struct vnt_private *, void *ctx); -- 1.7.2.5 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel