Commit 00d0603c authored by Andres More's avatar Andres More Committed by Greg Kroah-Hartman

staging: vt6656: remove code placeholders

Removed comments from coding template.
sed -i '/^\/\*---/d' drivers/staging/vt6656/*.[ch]
Signed-off-by: default avatarAndres More <more.andres@gmail.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1cac4a4b
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#ifndef __80211HDR_H__ #ifndef __80211HDR_H__
#define __80211HDR_H__ #define __80211HDR_H__
/*--------------------- Export Definitions -------------------------*/
/* bit type */ /* bit type */
#define BIT0 0x00000001 #define BIT0 0x00000001
...@@ -323,10 +322,7 @@ typedef union tagUWLAN_80211HDR { ...@@ -323,10 +322,7 @@ typedef union tagUWLAN_80211HDR {
} UWLAN_80211HDR, *PUWLAN_80211HDR; } UWLAN_80211HDR, *PUWLAN_80211HDR;
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
#endif /* __80211HDR_H__ */ #endif /* __80211HDR_H__ */
...@@ -59,24 +59,18 @@ ...@@ -59,24 +59,18 @@
#include "80211hdr.h" #include "80211hdr.h"
#include "wpa.h" #include "wpa.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
static int msglevel = MSG_LEVEL_INFO; static int msglevel = MSG_LEVEL_INFO;
/*static int msglevel =MSG_LEVEL_DEBUG;*/ /*static int msglevel =MSG_LEVEL_DEBUG;*/
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
/*+ /*+
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include "80211hdr.h" #include "80211hdr.h"
/*--------------------- Export Definitions -------------------------*/
#define WLAN_MIN_ARRAY 1 #define WLAN_MIN_ARRAY 1
...@@ -212,11 +211,8 @@ ...@@ -212,11 +211,8 @@
#define MEASURE_MODE_INCAPABLE 0x02 #define MEASURE_MODE_INCAPABLE 0x02
#define MEASURE_MODE_REFUSED 0x04 #define MEASURE_MODE_REFUSED 0x04
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Types ------------------------------*/
/* Information Element types */ /* Information Element types */
...@@ -719,7 +715,6 @@ typedef struct tagWLAN_FR_DEAUTHEN { ...@@ -719,7 +715,6 @@ typedef struct tagWLAN_FR_DEAUTHEN {
} WLAN_FR_DEAUTHEN, *PWLAN_FR_DEAUTHEN; } WLAN_FR_DEAUTHEN, *PWLAN_FR_DEAUTHEN;
/*--------------------- Export Functions --------------------------*/
void void
vMgrEncodeBeacon( vMgrEncodeBeacon(
......
...@@ -33,11 +33,8 @@ ...@@ -33,11 +33,8 @@
#include "device.h" #include "device.h"
#include "80211hdr.h" #include "80211hdr.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
/* /*
* SBOX Table * SBOX Table
...@@ -100,11 +97,8 @@ u8 dot3_table[256] = { ...@@ -100,11 +97,8 @@ u8 dot3_table[256] = {
0x0b, 0x08, 0x0d, 0x0e, 0x07, 0x04, 0x01, 0x02, 0x13, 0x10, 0x15, 0x16, 0x1f, 0x1c, 0x19, 0x1a 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(u8 *a, u8 *b, u8 *out) static void xor_128(u8 *a, u8 *b, u8 *out)
{ {
......
...@@ -30,15 +30,10 @@ ...@@ -30,15 +30,10 @@
#ifndef __AES_H__ #ifndef __AES_H__
#define __AES_H__ #define __AES_H__
/*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
bool AESbGenCCMP(u8 * pbyRxKey, u8 * pbyFrame, u16 wFrameSize); bool AESbGenCCMP(u8 * pbyRxKey, u8 * pbyFrame, u16 wFrameSize);
#endif /* __AES_CCMP_H__ */ #endif /* __AES_CCMP_H__ */
...@@ -47,23 +47,15 @@ ...@@ -47,23 +47,15 @@
#include "datarate.h" #include "datarate.h"
#include "rndis.h" #include "rndis.h"
/*--------------------- Static Definitions -------------------------*/
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG; //static int msglevel =MSG_LEVEL_DEBUG;
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
u8 abyVT3184_AGC[] = { u8 abyVT3184_AGC[] = {
...@@ -658,7 +650,6 @@ u8 abyVT3184_VT3226D0[] = { ...@@ -658,7 +650,6 @@ u8 abyVT3184_VT3226D0[] = {
const u16 awcFrameTime[MAX_RATE] = const u16 awcFrameTime[MAX_RATE] =
{10, 20, 55, 110, 24, 36, 48, 72, 96, 144, 192, 216}; {10, 20, 55, 110, 24, 36, 48, 72, 96, 144, 192, 216};
/*--------------------- Static Functions --------------------------*/
/* /*
static static
...@@ -674,7 +665,6 @@ void ...@@ -674,7 +665,6 @@ void
s_vClearSQ3Value(PSDevice pDevice); s_vClearSQ3Value(PSDevice pDevice);
*/ */
/*--------------------- Export Variables --------------------------*/
/* /*
* Description: Calculate data frame transmitting time * Description: Calculate data frame transmitting time
* *
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "tether.h" #include "tether.h"
#include "device.h" #include "device.h"
/*--------------------- Export Definitions -------------------------*/
#define PREAMBLE_LONG 0 #define PREAMBLE_LONG 0
#define PREAMBLE_SHORT 1 #define PREAMBLE_SHORT 1
...@@ -84,15 +83,10 @@ ...@@ -84,15 +83,10 @@
#define TOP_RATE_1M 0x00100000 #define TOP_RATE_1M 0x00100000
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Macros ------------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
unsigned int unsigned int
BBuGetFrameTime( BBuGetFrameTime(
......
...@@ -58,14 +58,11 @@ ...@@ -58,14 +58,11 @@
#include "rndis.h" #include "rndis.h"
#include "iowpa.h" #include "iowpa.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG; //static int msglevel =MSG_LEVEL_DEBUG;
...@@ -88,16 +85,13 @@ const u16 awHWRetry1[5][5] = { ...@@ -88,16 +85,13 @@ const u16 awHWRetry1[5][5] = {
/*--------------------- Static Functions --------------------------*/
static void s_vCheckSensitivity(struct vnt_private *pDevice); static void s_vCheckSensitivity(struct vnt_private *pDevice);
static void s_vCheckPreEDThreshold(struct vnt_private *pDevice); static void s_vCheckPreEDThreshold(struct vnt_private *pDevice);
static void s_uCalculateLinkQual(struct vnt_private *pDevice); static void s_uCalculateLinkQual(struct vnt_private *pDevice);
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
#include "card.h" #include "card.h"
#include "mib.h" #include "mib.h"
/*--------------------- Export Definitions -------------------------*/
#define MAX_NODE_NUM 64 #define MAX_NODE_NUM 64
#define MAX_BSS_NUM 42 #define MAX_BSS_NUM 42
...@@ -67,12 +66,9 @@ ...@@ -67,12 +66,9 @@
#define MAX_WPA_IE_LEN 64 #define MAX_WPA_IE_LEN 64
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Types ------------------------------*/
// //
// IEEE 802.11 Structures and definitions // IEEE 802.11 Structures and definitions
...@@ -223,7 +219,6 @@ typedef struct tagKnownNodeDB { ...@@ -223,7 +219,6 @@ typedef struct tagKnownNodeDB {
} KnownNodeDB, *PKnownNodeDB; } KnownNodeDB, *PKnownNodeDB;
/*--------------------- Export Functions --------------------------*/
PKnownBSS BSSpSearchBSSList(struct vnt_private *, u8 *pbyDesireBSSID, PKnownBSS BSSpSearchBSSList(struct vnt_private *, u8 *pbyDesireBSSID,
u8 *pbyDesireSSID, CARD_PHY_TYPE ePhyType); u8 *pbyDesireSSID, CARD_PHY_TYPE ePhyType);
......
...@@ -60,28 +60,21 @@ ...@@ -60,28 +60,21 @@
#include "rndis.h" #include "rndis.h"
#include "control.h" #include "control.h"
/*--------------------- Static Definitions -------------------------*/
//static int msglevel =MSG_LEVEL_DEBUG; //static int msglevel =MSG_LEVEL_DEBUG;
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
//const u16 cwRXBCNTSFOff[MAX_RATE] = //const u16 cwRXBCNTSFOff[MAX_RATE] =
//{17, 34, 96, 192, 34, 23, 17, 11, 8, 5, 4, 3}; //{17, 34, 96, 192, 34, 23, 17, 11, 8, 5, 4, 3};
const u16 cwRXBCNTSFOff[MAX_RATE] = const u16 cwRXBCNTSFOff[MAX_RATE] =
{192, 96, 34, 17, 34, 23, 17, 11, 8, 5, 4, 3}; {192, 96, 34, 17, 34, 23, 17, 11, 8, 5, 4, 3};
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
/* /*
* Description: Set NIC media channel * Description: Set NIC media channel
* *
......
...@@ -30,9 +30,7 @@ ...@@ -30,9 +30,7 @@
#define __CARD_H__ #define __CARD_H__
#include "device.h" #include "device.h"
/*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Classes ----------------------------*/
/* init card type */ /* init card type */
...@@ -54,9 +52,7 @@ typedef enum _CARD_OP_MODE { ...@@ -54,9 +52,7 @@ typedef enum _CARD_OP_MODE {
#define CB_MAX_CHANNEL_5G 42 /* add channel9(5045MHz), 41==>42 */ #define CB_MAX_CHANNEL_5G 42 /* add channel9(5045MHz), 41==>42 */
#define CB_MAX_CHANNEL (CB_MAX_CHANNEL_24G+CB_MAX_CHANNEL_5G) #define CB_MAX_CHANNEL (CB_MAX_CHANNEL_24G+CB_MAX_CHANNEL_5G)
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
struct vnt_private; struct vnt_private;
void CARDbSetMediaChannel(struct vnt_private *pDevice, u32 uConnectionChannel); void CARDbSetMediaChannel(struct vnt_private *pDevice, u32 uConnectionChannel);
......
...@@ -39,13 +39,10 @@ ...@@ -39,13 +39,10 @@
#include "channel.h" #include "channel.h"
#include "rf.h" #include "rf.h"
/*--------------------- Static Definitions -------------------------*/
static int msglevel = MSG_LEVEL_INFO; static int msglevel = MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG; //static int msglevel =MSG_LEVEL_DEBUG;
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Export Definitions -------------------------*/
static SChannelTblElement sChannelTbl[CB_MAX_CHANNEL+1] = static SChannelTblElement sChannelTbl[CB_MAX_CHANNEL+1] =
...@@ -368,7 +365,6 @@ static struct ...@@ -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 */ /* 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 * Country Channel Valid
* Input: CountryCode, ChannelNum * Input: CountryCode, ChannelNum
......
...@@ -32,9 +32,7 @@ ...@@ -32,9 +32,7 @@
#include "device.h" #include "device.h"
/*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Classes ----------------------------*/
typedef struct tagSChannelTblElement { typedef struct tagSChannelTblElement {
u8 byChannelNumber; u8 byChannelNumber;
...@@ -42,9 +40,7 @@ typedef struct tagSChannelTblElement { ...@@ -42,9 +40,7 @@ typedef struct tagSChannelTblElement {
bool bValid; bool bValid;
} SChannelTblElement, *PSChannelTblElement; } SChannelTblElement, *PSChannelTblElement;
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
bool ChannelValid(unsigned int CountryCode, unsigned int ChannelNum); bool ChannelValid(unsigned int CountryCode, unsigned int ChannelNum);
void CHvInitChannelTable(struct vnt_private *pDevice); void CHvInitChannelTable(struct vnt_private *pDevice);
......
...@@ -43,18 +43,12 @@ ...@@ -43,18 +43,12 @@
#include "control.h" #include "control.h"
#include "rndis.h" #include "rndis.h"
/*--------------------- Static Definitions -------------------------*/
/* static int msglevel =MSG_LEVEL_INFO; */ /* static int msglevel =MSG_LEVEL_INFO; */
/* static int msglevel =MSG_LEVEL_DEBUG; */ /* 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, void ControlvWriteByte(struct vnt_private *pDevice, u8 reg, u8 reg_off,
u8 data) u8 data)
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include "device.h" #include "device.h"
#include "usbpipe.h" #include "usbpipe.h"
/*--------------------- Export Definitions -------------------------*/
#define CONTROLnsRequestOut(Device, Request, Value, Index, Length, Buffer) \ #define CONTROLnsRequestOut(Device, Request, Value, Index, Length, Buffer) \
PIPEnsControlOut(Device, Request, Value, Index, Length, Buffer) PIPEnsControlOut(Device, Request, Value, Index, Length, Buffer)
...@@ -44,11 +43,8 @@ ...@@ -44,11 +43,8 @@
#define CONTROLnsRequestIn(Device, Request, Value, Index, Length, Buffer) \ #define CONTROLnsRequestIn(Device, Request, Value, Index, Length, Buffer) \
PIPEnsControlIn(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, void ControlvWriteByte(struct vnt_private *pDevice, u8 reg, u8 reg_off,
u8 data); u8 data);
......
...@@ -43,16 +43,13 @@ ...@@ -43,16 +43,13 @@
#include "srom.h" #include "srom.h"
#include "rf.h" #include "rf.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
/* static int msglevel = MSG_LEVEL_DEBUG; */ /* static int msglevel = MSG_LEVEL_DEBUG; */
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
...@@ -63,7 +60,6 @@ const u8 acbyIERate[MAX_RATE] = ...@@ -63,7 +60,6 @@ const u8 acbyIERate[MAX_RATE] =
#define AUTORATE_TXFAIL_CNT 0x0064 #define AUTORATE_TXFAIL_CNT 0x0064
#define AUTORATE_TIMEOUT 10 #define AUTORATE_TIMEOUT 10
/*--------------------- Static Functions --------------------------*/
void s_vResetCounter(PKnownNodeDB psNodeDBTable); void s_vResetCounter(PKnownNodeDB psNodeDBTable);
...@@ -78,10 +74,8 @@ void s_vResetCounter(PKnownNodeDB psNodeDBTable) ...@@ -78,10 +74,8 @@ void s_vResetCounter(PKnownNodeDB psNodeDBTable)
} }
} }
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
/*+ /*+
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#define __DATARATE_H__ #define __DATARATE_H__
/*--------------------- Export Definitions -------------------------*/
#define FALLBACK_PKT_COLLECT_TR_H 50 /* pkts */ #define FALLBACK_PKT_COLLECT_TR_H 50 /* pkts */
#define FALLBACK_PKT_COLLECT_TR_L 10 /* pkts */ #define FALLBACK_PKT_COLLECT_TR_L 10 /* pkts */
...@@ -57,15 +56,11 @@ ...@@ -57,15 +56,11 @@
#define RATE_AUTO 12 #define RATE_AUTO 12
#define MAX_RATE 12 #define MAX_RATE 12
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Functions --------------------------*/
......
...@@ -77,7 +77,6 @@ ...@@ -77,7 +77,6 @@
#include "key.h" #include "key.h"
#include "card.h" #include "card.h"
/*--------------------- Export Definitions -------------------------*/
#define VNT_USB_VENDOR_ID 0x160a #define VNT_USB_VENDOR_ID 0x160a
#define VNT_USB_PRODUCT_ID 0x3184 #define VNT_USB_PRODUCT_ID 0x3184
...@@ -141,7 +140,6 @@ ...@@ -141,7 +140,6 @@
#define PRIVATE_Message 0 #define PRIVATE_Message 0
/*--------------------- Export Types ------------------------------*/
#define DBG_PRT(l, p, args...) { if (l <= msglevel) printk(p, ##args); } #define DBG_PRT(l, p, args...) { if (l <= msglevel) printk(p, ##args); }
#define PRINT_K(p, args...) { if (PRIVATE_Message) printk(p, ##args); } #define PRINT_K(p, args...) { if (PRIVATE_Message) printk(p, ##args); }
...@@ -840,7 +838,6 @@ struct vnt_private { ...@@ -840,7 +838,6 @@ struct vnt_private {
#define MP_IS_READY(_M) (((_M)->Flags & \ #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) (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); int device_alloc_frag_buf(struct vnt_private *, PSDeFragControlBlock pDeF);
......
...@@ -56,11 +56,8 @@ ...@@ -56,11 +56,8 @@
#include "datarate.h" #include "datarate.h"
#include "usbpipe.h" #include "usbpipe.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
//static int msglevel =MSG_LEVEL_DEBUG; //static int msglevel =MSG_LEVEL_DEBUG;
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
...@@ -68,11 +65,8 @@ const u8 acbyRxRate[MAX_RATE] = ...@@ -68,11 +65,8 @@ const u8 acbyRxRate[MAX_RATE] =
{2, 4, 11, 22, 12, 18, 24, 36, 48, 72, 96, 108}; {2, 4, 11, 22, 12, 18, 24, 36, 48, 72, 96, 108};
/*--------------------- Static Functions --------------------------*/
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Functions --------------------------*/
static u8 s_byGetRateIdx(u8 byRate); static u8 s_byGetRateIdx(u8 byRate);
...@@ -102,7 +96,6 @@ static int s_bHostWepRxEncryption(struct vnt_private *pDevice, u8 *pbyFrame, ...@@ -102,7 +96,6 @@ static int s_bHostWepRxEncryption(struct vnt_private *pDevice, u8 *pbyFrame,
u32 FrameSize, u8 *pbyRsr, int bOnFly, PSKeyItem pKey, u8 *pbyNewRsr, u32 FrameSize, u8 *pbyRsr, int bOnFly, PSKeyItem pKey, u8 *pbyNewRsr,
s32 *pbExtIV, u16 *pwRxTSC15_0, u32 *pdwRxTSC47_16); s32 *pbExtIV, u16 *pwRxTSC15_0, u32 *pdwRxTSC47_16);
/*--------------------- Export Variables --------------------------*/
/*+ /*+
* *
......
...@@ -32,13 +32,9 @@ ...@@ -32,13 +32,9 @@
#include "device.h" #include "device.h"
#include "wcmd.h" #include "wcmd.h"
/*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
void RXvWorkItem(void *Context); void RXvWorkItem(void *Context);
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include "control.h" #include "control.h"
#include "rndis.h" #include "rndis.h"
/*--------------------- Static Definitions -------------------------*/
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG; //static int msglevel =MSG_LEVEL_DEBUG;
...@@ -45,15 +44,10 @@ static int msglevel =MSG_LEVEL_INFO; ...@@ -45,15 +44,10 @@ static int msglevel =MSG_LEVEL_INFO;
#define FIRMWARE_CHUNK_SIZE 0x400 #define FIRMWARE_CHUNK_SIZE 0x400
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
int FIRMWAREbDownload(struct vnt_private *pDevice) int FIRMWAREbDownload(struct vnt_private *pDevice)
......
...@@ -32,13 +32,9 @@ ...@@ -32,13 +32,9 @@
#include "device.h" #include "device.h"
/*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
int FIRMWAREbDownload(struct vnt_private *); int FIRMWAREbDownload(struct vnt_private *);
int FIRMWAREbBrach2Sram(struct vnt_private *); int FIRMWAREbBrach2Sram(struct vnt_private *);
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include "device.h" #include "device.h"
/*--------------------- Export Definitions -------------------------*/
#define WLAN_RATE_1M BIT0 #define WLAN_RATE_1M BIT0
#define WLAN_RATE_2M BIT1 #define WLAN_RATE_2M BIT1
...@@ -47,11 +46,8 @@ ...@@ -47,11 +46,8 @@
#define WLAN_RATE_54M BIT11 #define WLAN_RATE_54M BIT11
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
#ifndef ETH_P_PAE #ifndef ETH_P_PAE
#define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */ #define ETH_P_PAE 0x888E /* Port Access Entity (IEEE 802.1X) */
......
...@@ -40,18 +40,12 @@ ...@@ -40,18 +40,12 @@
#include "bssdb.h" #include "bssdb.h"
#include "usbpipe.h" #include "usbpipe.h"
/*--------------------- Static Definitions -------------------------*/
static int msglevel = MSG_LEVEL_INFO; /* MSG_LEVEL_DEBUG */ static int msglevel = MSG_LEVEL_INFO; /* MSG_LEVEL_DEBUG */
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
/*+ /*+
* *
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "device.h" #include "device.h"
/*--------------------- Export Definitions -------------------------*/
typedef struct tagSINTData { typedef struct tagSINTData {
u8 byTSR0; u8 byTSR0;
u8 byPkt0; u8 byPkt0;
...@@ -57,11 +56,8 @@ typedef struct tagSINTData { ...@@ -57,11 +56,8 @@ typedef struct tagSINTData {
} __attribute__ ((__packed__)) } __attribute__ ((__packed__))
SINTData, *PSINTData; SINTData, *PSINTData;
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
void INTvWorkItem(struct vnt_private *); void INTvWorkItem(struct vnt_private *);
void INTnsProcessData(struct vnt_private *); void INTnsProcessData(struct vnt_private *);
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#ifndef __IOCMD_H__ #ifndef __IOCMD_H__
#define __IOCMD_H__ #define __IOCMD_H__
/*--------------------- Export Definitions -------------------------*/
// ioctl Command code // ioctl Command code
#define MAGIC_CODE 0x3142 #define MAGIC_CODE 0x3142
...@@ -430,12 +429,8 @@ struct viawget_hostapd_param { ...@@ -430,12 +429,8 @@ struct viawget_hostapd_param {
} u; } u;
} __packed; } __packed;
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Functions --------------------------*/
#endif /* __IOCMD_H__ */ #endif /* __IOCMD_H__ */
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
#ifndef __IOWPA_H__ #ifndef __IOWPA_H__
#define __IOWPA_H__ #define __IOWPA_H__
/*--------------------- Export Definitions -------------------------*/
#define WPA_IE_LEN 64 #define WPA_IE_LEN 64
...@@ -130,12 +129,8 @@ struct viawget_scan_result { ...@@ -130,12 +129,8 @@ struct viawget_scan_result {
int maxrate; int maxrate;
} __packed; } __packed;
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Functions --------------------------*/
#endif /* __IOWPA_H__ */ #endif /* __IOWPA_H__ */
...@@ -31,13 +31,9 @@ ...@@ -31,13 +31,9 @@
#include "device.h" #include "device.h"
/*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev); struct iw_statistics *iwctl_get_wireless_stats(struct net_device *dev);
......
...@@ -42,24 +42,15 @@ ...@@ -42,24 +42,15 @@
#include "rndis.h" #include "rndis.h"
#include "control.h" #include "control.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG; //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, static void s_vCheckKeyTableValid(struct vnt_private *pDevice,
PSKeyManagement pTable) PSKeyManagement pTable)
{ {
...@@ -96,7 +87,6 @@ static void s_vCheckKeyTableValid(struct vnt_private *pDevice, ...@@ -96,7 +87,6 @@ static void s_vCheckKeyTableValid(struct vnt_private *pDevice,
} }
/*--------------------- Export Functions --------------------------*/
/* /*
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include "tether.h" #include "tether.h"
#include "80211mgr.h" #include "80211mgr.h"
/*--------------------- Export Definitions -------------------------*/
#define MAX_GROUP_KEY 4 #define MAX_GROUP_KEY 4
#define MAX_KEY_TABLE 11 #define MAX_KEY_TABLE 11
#define MAX_KEY_LEN 32 #define MAX_KEY_LEN 32
...@@ -86,15 +85,10 @@ typedef struct tagSKeyManagement ...@@ -86,15 +85,10 @@ typedef struct tagSKeyManagement
SKeyTable KeyTable[MAX_KEY_TABLE]; SKeyTable KeyTable[MAX_KEY_TABLE];
} SKeyManagement, *PSKeyManagement; } SKeyManagement, *PSKeyManagement;
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Macros ------------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
void KeyvInitTable(struct vnt_private *, PSKeyManagement pTable); void KeyvInitTable(struct vnt_private *, PSKeyManagement pTable);
......
...@@ -38,18 +38,12 @@ ...@@ -38,18 +38,12 @@
#include "rndis.h" #include "rndis.h"
#include "control.h" #include "control.h"
/*--------------------- Static Definitions -------------------------*/
//static int msglevel =MSG_LEVEL_DEBUG; //static int msglevel =MSG_LEVEL_DEBUG;
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
......
...@@ -37,7 +37,6 @@ ...@@ -37,7 +37,6 @@
#include "device.h" #include "device.h"
#include "tmacro.h" #include "tmacro.h"
/*--------------------- Export Definitions -------------------------*/
#define REV_ID_VT3253_A0 0x00 #define REV_ID_VT3253_A0 0x00
#define REV_ID_VT3253_A1 0x01 #define REV_ID_VT3253_A1 0x01
...@@ -409,15 +408,10 @@ ...@@ -409,15 +408,10 @@
#define MAC_REVISION_A1 0x01 #define MAC_REVISION_A1 0x01
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Macros ------------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
void MACvSetMultiAddrByHash(struct vnt_private *, u8); void MACvSetMultiAddrByHash(struct vnt_private *, u8);
void MACvWriteMultiAddr(struct vnt_private *, u32, u8); void MACvWriteMultiAddr(struct vnt_private *, u32, u8);
......
...@@ -72,7 +72,6 @@ ...@@ -72,7 +72,6 @@
#include "int.h" #include "int.h"
#include "iowpa.h" #include "iowpa.h"
/*--------------------- Static Definitions -------------------------*/
/* static int msglevel = MSG_LEVEL_DEBUG; */ /* static int msglevel = MSG_LEVEL_DEBUG; */
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
...@@ -208,7 +207,6 @@ static const long frequency_list[] = { ...@@ -208,7 +207,6 @@ static const long frequency_list[] = {
static const struct iw_handler_def iwctl_handler_def; static const struct iw_handler_def iwctl_handler_def;
*/ */
/*--------------------- Static Functions --------------------------*/
static int vt6656_probe(struct usb_interface *intf, static int vt6656_probe(struct usb_interface *intf,
const struct usb_device_id *id); const struct usb_device_id *id);
...@@ -250,9 +248,7 @@ static void usb_device_reset(struct vnt_private *pDevice); ...@@ -250,9 +248,7 @@ static void usb_device_reset(struct vnt_private *pDevice);
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
static void static void
...@@ -965,7 +961,6 @@ int device_alloc_frag_buf(struct vnt_private *pDevice, ...@@ -965,7 +961,6 @@ int device_alloc_frag_buf(struct vnt_private *pDevice,
} }
/*-----------------------------------------------------------------*/
static int device_open(struct net_device *dev) static int device_open(struct net_device *dev)
{ {
......
...@@ -43,17 +43,11 @@ ...@@ -43,17 +43,11 @@
#include "wctl.h" #include "wctl.h"
#include "baseband.h" #include "baseband.h"
/*--------------------- Static Definitions -------------------------*/
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "tether.h" #include "tether.h"
#include "desc.h" #include "desc.h"
/*--------------------- Export Definitions -------------------------*/
// //
...@@ -366,11 +365,8 @@ typedef struct tagSStatCounter { ...@@ -366,11 +365,8 @@ typedef struct tagSStatCounter {
} SStatCounter, *PSStatCounter; } SStatCounter, *PSStatCounter;
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
void STAvClearAllCounter(PSStatCounter pStatistic); void STAvClearAllCounter(PSStatCounter pStatistic);
......
...@@ -42,11 +42,8 @@ ...@@ -42,11 +42,8 @@
#include "tmacro.h" #include "tmacro.h"
#include "michael.h" #include "michael.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Variables --------------------------*/
/*--------------------- Static Functions --------------------------*/
/* /*
* static u32 s_dwGetUINT32(u8 * p); Get u32 from * static u32 s_dwGetUINT32(u8 * p); Get u32 from
* 4 bytes LSByte first * 4 bytes LSByte first
...@@ -60,13 +57,11 @@ static void s_vSetKey(u32 dwK0, u32 dwK1); ...@@ -60,13 +57,11 @@ static void s_vSetKey(u32 dwK0, u32 dwK1);
static void s_vAppendByte(u8 b); /* Add a single byte to the internal static void s_vAppendByte(u8 b); /* Add a single byte to the internal
* message */ * message */
/*--------------------- Export Variables --------------------------*/
static u32 L, R; /* Current state */ static u32 L, R; /* Current state */
static u32 K0, K1; /* Key */ static u32 K0, K1; /* Key */
static u32 M; /* Message accumulator (single word) */ static u32 M; /* Message accumulator (single word) */
static unsigned int nBytesInM; /* # bytes in M */ static unsigned int nBytesInM; /* # bytes in M */
/*--------------------- Export Functions --------------------------*/
/* /*
static u32 s_dwGetUINT32 (u8 * p) static u32 s_dwGetUINT32 (u8 * p)
......
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
#include <linux/types.h> #include <linux/types.h>
/*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Types ------------------------------*/
void MIC_vInit(u32 dwK0, u32 dwK1); void MIC_vInit(u32 dwK0, u32 dwK1);
...@@ -48,7 +46,6 @@ void MIC_vAppend(u8 * src, unsigned int nBytes); ...@@ -48,7 +46,6 @@ void MIC_vAppend(u8 * src, unsigned int nBytes);
// This also resets the message to empty. // This also resets the message to empty.
void MIC_vGetMIC(u32 * pdwL, u32 * pdwR); void MIC_vGetMIC(u32 * pdwL, u32 * pdwR);
/*--------------------- Export Macros ------------------------------*/
// Rotation functions on 32 bit values // Rotation functions on 32 bit values
#define ROL32(A, n) \ #define ROL32(A, n) \
......
...@@ -47,17 +47,11 @@ ...@@ -47,17 +47,11 @@
#include "control.h" #include "control.h"
#include "rndis.h" #include "rndis.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
static int msglevel = MSG_LEVEL_INFO; static int msglevel = MSG_LEVEL_INFO;
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
/* /*
* *
......
...@@ -30,20 +30,15 @@ ...@@ -30,20 +30,15 @@
#define __POWER_H__ #define __POWER_H__
/*--------------------- Export Definitions -------------------------*/
#define C_PWBT 1000 // micro sec. power up before TBTT #define C_PWBT 1000 // micro sec. power up before TBTT
#define PS_FAST_INTERVAL 1 // Fast power saving listen interval #define PS_FAST_INTERVAL 1 // Fast power saving listen interval
#define PS_MAX_INTERVAL 4 // MAX 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 pDevice */
/* PSDevice hDeviceContext */ /* PSDevice hDeviceContext */
......
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
#include <linux/types.h> #include <linux/types.h>
/*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Types ------------------------------*/
typedef struct { typedef struct {
unsigned int ux; unsigned int ux;
unsigned int uy; unsigned int uy;
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG; //static int msglevel =MSG_LEVEL_DEBUG;
/*--------------------- Static Definitions -------------------------*/
#define BY_AL2230_REG_LEN 23 //24bit #define BY_AL2230_REG_LEN 23 //24bit
#define CB_AL2230_INIT_SEQ 15 #define CB_AL2230_INIT_SEQ 15
#define AL2230_PWR_IDX_LEN 64 #define AL2230_PWR_IDX_LEN 64
...@@ -62,9 +61,7 @@ static int msglevel =MSG_LEVEL_INFO; ...@@ -62,9 +61,7 @@ static int msglevel =MSG_LEVEL_INFO;
#define VT3342_PWR_IDX_LEN 64 #define VT3342_PWR_IDX_LEN 64
//}} //}}
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
...@@ -673,9 +670,7 @@ const u32 dwAL2230PowerTable[AL2230_PWR_IDX_LEN] = { ...@@ -673,9 +670,7 @@ const u32 dwAL2230PowerTable[AL2230_PWR_IDX_LEN] = {
0x0407F900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW 0x0407F900+(BY_AL2230_REG_LEN<<3)+IFREGCTL_REGW
}; };
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
//{{ RobertYu:20050103, Channel 11a Number To Index //{{ RobertYu:20050103, Channel 11a Number To Index
// 4.9G => Ch 183, 184, 185, 187, 188, 189, 192, 196 (Value:15 ~ 22) // 4.9G => Ch 183, 184, 185, 187, 188, 189, 192, 196 (Value:15 ~ 22)
...@@ -708,7 +703,6 @@ const u8 RFaby11aChannelIndex[200] = { ...@@ -708,7 +703,6 @@ const u8 RFaby11aChannelIndex[200] = {
}; };
//}} RobertYu //}} RobertYu
/*--------------------- Export Functions --------------------------*/
/* /*
* Description: Write to IF/RF, by embedded programming * Description: Write to IF/RF, by embedded programming
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "device.h" #include "device.h"
/*--------------------- Export Definitions -------------------------*/
// //
// Baseband RF pair definition in eeprom (Bits 6..0) // Baseband RF pair definition in eeprom (Bits 6..0)
// //
...@@ -56,11 +55,8 @@ ...@@ -56,11 +55,8 @@
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
extern const u8 RFaby11aChannelIndex[200]; extern const u8 RFaby11aChannelIndex[200];
/*--------------------- Export Functions --------------------------*/
int IFRFbWriteEmbedded(struct vnt_private *, u32 dwData); int IFRFbWriteEmbedded(struct vnt_private *, u32 dwData);
int RFbSetPower(struct vnt_private *, u32 uRATE, u32 uCH); int RFbSetPower(struct vnt_private *, u32 uRATE, u32 uCH);
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#ifndef __RNDIS_H__ #ifndef __RNDIS_H__
#define __RNDIS_H__ #define __RNDIS_H__
/*--------------------- Export Definitions -------------------------*/
#define MESSAGE_TYPE_READ 0x01 #define MESSAGE_TYPE_READ 0x01
#define MESSAGE_TYPE_WRITE 0x00 #define MESSAGE_TYPE_WRITE 0x00
#define MESSAGE_TYPE_LOCK_OR 0x02 #define MESSAGE_TYPE_LOCK_OR 0x02
...@@ -70,7 +69,6 @@ ...@@ -70,7 +69,6 @@
#define VIAUSB20_PACKET_HEADER 0x04 #define VIAUSB20_PACKET_HEADER 0x04
/*--------------------- Export Classes ----------------------------*/
typedef struct _CMD_MESSAGE typedef struct _CMD_MESSAGE
{ {
...@@ -150,12 +148,9 @@ typedef struct _CMD_CHANGE_BBTYPE ...@@ -150,12 +148,9 @@ typedef struct _CMD_CHANGE_BBTYPE
u16 wRSPINF_a[9]; u16 wRSPINF_a[9];
} CMD_CHANGE_BBTYPE, *PCMD_CHANGE_BBTYPE; } CMD_CHANGE_BBTYPE, *PCMD_CHANGE_BBTYPE;
/*--------------------- Export Macros -------------------------*/
#define EXCH_WORD(w) ((u16)((u16)(w)<<8) | (u16)((u16)(w)>>8)) #define EXCH_WORD(w) ((u16)((u16)(w)<<8) | (u16)((u16)(w)>>8))
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
#endif /* _RNDIS_H_ */ #endif /* _RNDIS_H_ */
...@@ -63,16 +63,11 @@ ...@@ -63,16 +63,11 @@
#include "usbpipe.h" #include "usbpipe.h"
#include "iocmd.h" #include "iocmd.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
static int msglevel = MSG_LEVEL_INFO; static int msglevel = MSG_LEVEL_INFO;
/*--------------------- Static Functions --------------------------*/
/*--------------------- Static Definitions -------------------------*/
const u16 wTimeStampOff[2][MAX_RATE] = { const u16 wTimeStampOff[2][MAX_RATE] = {
{384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, // Long Preamble {384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, // Long Preamble
...@@ -104,7 +99,6 @@ const u16 wFB_Opt1[2][5] = { ...@@ -104,7 +99,6 @@ const u16 wFB_Opt1[2][5] = {
#define DATADUR_A_F0 12 #define DATADUR_A_F0 12
#define DATADUR_A_F1 13 #define DATADUR_A_F1 13
/*--------------------- Static Functions --------------------------*/
static void s_vSaveTxPktInfo(struct vnt_private *pDevice, u8 byPktNum, static void s_vSaveTxPktInfo(struct vnt_private *pDevice, u8 byPktNum,
u8 *pbyDestAddr, u16 wPktLength, u16 wFIFOCtl); u8 *pbyDestAddr, u16 wPktLength, u16 wFIFOCtl);
...@@ -157,7 +151,6 @@ static unsigned int s_uGetRTSCTSDuration(struct vnt_private *pDevice, ...@@ -157,7 +151,6 @@ static unsigned int s_uGetRTSCTSDuration(struct vnt_private *pDevice,
int bNeedAck, u8 byFBOption); int bNeedAck, u8 byFBOption);
/*--------------------- Export Variables --------------------------*/
static void *s_vGetFreeContext(struct vnt_private *pDevice) static void *s_vGetFreeContext(struct vnt_private *pDevice)
{ {
......
...@@ -32,9 +32,7 @@ ...@@ -32,9 +32,7 @@
#include "device.h" #include "device.h"
#include "wcmd.h" #include "wcmd.h"
/*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Classes ----------------------------*/
// //
// RTS buffer header // RTS buffer header
...@@ -660,9 +658,7 @@ typedef struct tagSBEACON_BUFFER ...@@ -660,9 +658,7 @@ typedef struct tagSBEACON_BUFFER
} BEACON_BUFFER, *PBEACON_BUFFER; } BEACON_BUFFER, *PBEACON_BUFFER;
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
void vDMA0_tx_80211(struct vnt_private *, struct sk_buff *skb); void vDMA0_tx_80211(struct vnt_private *, struct sk_buff *skb);
int nsDMA_tx_packet(struct vnt_private *, u32 uDMAIdx, struct sk_buff *skb); int nsDMA_tx_packet(struct vnt_private *, u32 uDMAIdx, struct sk_buff *skb);
......
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
#ifndef __SROM_H__ #ifndef __SROM_H__
#define __SROM_H__ #define __SROM_H__
/*--------------------- Export Definitions -------------------------*/
#define EEP_MAX_CONTEXT_SIZE 256 #define EEP_MAX_CONTEXT_SIZE 256
...@@ -78,7 +77,6 @@ ...@@ -78,7 +77,6 @@
// //
#define EEP_RADIOCTL_ENABLE 0x80 #define EEP_RADIOCTL_ENABLE 0x80
/*--------------------- Export Types ------------------------------*/
// AT24C02 eeprom contents // AT24C02 eeprom contents
// 2048 bits = 256 bytes = 128 words // 2048 bits = 256 bytes = 128 words
...@@ -114,12 +112,8 @@ typedef struct tagSSromReg { ...@@ -114,12 +112,8 @@ typedef struct tagSSromReg {
u8 abyCIS[128]; // 0x80 (u16) u8 abyCIS[128]; // 0x80 (u16)
} SSromReg, *PSSromReg; } SSromReg, *PSSromReg;
/*--------------------- Export Macros ------------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
#endif /* __EEPROM_H__ */ #endif /* __EEPROM_H__ */
...@@ -35,11 +35,8 @@ ...@@ -35,11 +35,8 @@
#include "tcrc.h" #include "tcrc.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
/* 32-bit CRC table */ /* 32-bit CRC table */
static const u32 s_adwCrc32Table[256] = { static const u32 s_adwCrc32Table[256] = {
...@@ -109,9 +106,7 @@ static const u32 s_adwCrc32Table[256] = { ...@@ -109,9 +106,7 @@ static const u32 s_adwCrc32Table[256] = {
0xB40BBE37L, 0xC30C8EA1L, 0x5A05DF1BL, 0x2D02EF8DL 0xB40BBE37L, 0xC30C8EA1L, 0x5A05DF1BL, 0x2D02EF8DL
}; };
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
......
...@@ -31,17 +31,11 @@ ...@@ -31,17 +31,11 @@
#include <linux/types.h> #include <linux/types.h>
/*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Macros ------------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
u32 CRCdwCrc32(u8 * pbyData, unsigned int cbByte, u32 dwCrcSeed); u32 CRCdwCrc32(u8 * pbyData, unsigned int cbByte, u32 dwCrcSeed);
u32 CRCdwGetCrc32(u8 * pbyData, unsigned int cbByte); u32 CRCdwGetCrc32(u8 * pbyData, unsigned int cbByte);
......
...@@ -37,15 +37,10 @@ ...@@ -37,15 +37,10 @@
#include "tcrc.h" #include "tcrc.h"
#include "tether.h" #include "tether.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
......
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
#include <linux/if_ether.h> #include <linux/if_ether.h>
/*--------------------- Export Definitions -------------------------*/
// //
// constants // constants
// //
...@@ -114,13 +113,9 @@ typedef struct tagS802_3Header { ...@@ -114,13 +113,9 @@ typedef struct tagS802_3Header {
} __attribute__ ((__packed__)) } __attribute__ ((__packed__))
S802_3Header, *PS802_3Header; S802_3Header, *PS802_3Header;
/*--------------------- Export Macros ------------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
u8 ETHbyGetHashIndexByCrc32(u8 * pbyMultiAddr); u8 ETHbyGetHashIndexByCrc32(u8 * pbyMultiAddr);
//u8 ETHbyGetHashIndexByCrc(u8 * pbyMultiAddr); //u8 ETHbyGetHashIndexByCrc(u8 * pbyMultiAddr);
......
...@@ -35,21 +35,13 @@ ...@@ -35,21 +35,13 @@
#include "tmacro.h" #include "tmacro.h"
#include "tkip.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 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 */ /* The 2nd table is the same as the 1st but with the upper and lower */
...@@ -128,9 +120,7 @@ const u8 TKIP_Sbox_Upper[256] = { ...@@ -128,9 +120,7 @@ const u8 TKIP_Sbox_Upper[256] = {
//STKIPKeyManagement sTKIPKeyTable[MAX_TKIP_KEY]; //STKIPKeyManagement sTKIPKeyTable[MAX_TKIP_KEY];
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
/************************************************************/ /************************************************************/
/* tkip_sbox() */ /* tkip_sbox() */
......
...@@ -32,18 +32,12 @@ ...@@ -32,18 +32,12 @@
#include "tether.h" #include "tether.h"
/*--------------------- Export Definitions -------------------------*/
#define TKIP_KEY_LEN 16 #define TKIP_KEY_LEN 16
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Macros ------------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
void TKIPvMixKey( void TKIPvMixKey(
u8 * pbyTKey, u8 * pbyTKey,
......
...@@ -45,7 +45,6 @@ ...@@ -45,7 +45,6 @@
#include "desc.h" #include "desc.h"
#include "device.h" #include "device.h"
/*--------------------- Static Definitions -------------------------*/
//endpoint def //endpoint def
//endpoint 0: control //endpoint 0: control
//endpoint 1: interrupt //endpoint 1: interrupt
...@@ -62,20 +61,15 @@ static int msglevel =MSG_LEVEL_INFO; ...@@ -62,20 +61,15 @@ static int msglevel =MSG_LEVEL_INFO;
#define URB_ASYNC_UNLINK 0 #define URB_ASYNC_UNLINK 0
#endif #endif
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
/*--------------------- Static Functions --------------------------*/
static void s_nsInterruptUsbIoCompleteRead(struct urb *urb); static void s_nsInterruptUsbIoCompleteRead(struct urb *urb);
static void s_nsBulkInUsbIoCompleteRead(struct urb *urb); static void s_nsBulkInUsbIoCompleteRead(struct urb *urb);
static void s_nsBulkOutIoCompleteWrite(struct urb *urb); static void s_nsBulkOutIoCompleteWrite(struct urb *urb);
static void s_nsControlInUsbIoCompleteRead(struct urb *urb); static void s_nsControlInUsbIoCompleteRead(struct urb *urb);
static void s_nsControlInUsbIoCompleteWrite(struct urb *urb); static void s_nsControlInUsbIoCompleteWrite(struct urb *urb);
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
int PIPEnsControlOutAsyn(struct vnt_private *pDevice, u8 byRequest, int PIPEnsControlOutAsyn(struct vnt_private *pDevice, u8 byRequest,
u16 wValue, u16 wIndex, u16 wLength, u8 *pbyBuffer) u16 wValue, u16 wIndex, u16 wLength, u8 *pbyBuffer)
......
...@@ -32,13 +32,9 @@ ...@@ -32,13 +32,9 @@
#include "device.h" #include "device.h"
/*--------------------- Export Definitions -------------------------*/
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
int PIPEnsControlOut(struct vnt_private *, u8 byRequest, u16 wValue, int PIPEnsControlOut(struct vnt_private *, u8 byRequest, u16 wValue,
u16 wIndex, u16 wLength, u8 *pbyBuffer); u16 wIndex, u16 wLength, u8 *pbyBuffer);
......
...@@ -55,17 +55,13 @@ ...@@ -55,17 +55,13 @@
#include "channel.h" #include "channel.h"
#include "iowpa.h" #include "iowpa.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG; //static int msglevel =MSG_LEVEL_DEBUG;
/*--------------------- Static Functions --------------------------*/
static void s_vProbeChannel(struct vnt_private *); static void s_vProbeChannel(struct vnt_private *);
...@@ -79,9 +75,7 @@ static int s_bCommandComplete(struct vnt_private *); ...@@ -79,9 +75,7 @@ static int s_bCommandComplete(struct vnt_private *);
static int s_bClearBSSID_SCAN(struct vnt_private *); static int s_bClearBSSID_SCAN(struct vnt_private *);
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
/* /*
* Description: * Description:
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "80211hdr.h" #include "80211hdr.h"
#include "80211mgr.h" #include "80211mgr.h"
/*--------------------- Export Definitions -------------------------*/
...@@ -104,13 +103,9 @@ typedef enum tagCMD_STATE { ...@@ -104,13 +103,9 @@ typedef enum tagCMD_STATE {
WLAN_CMD_IDLE WLAN_CMD_IDLE
} CMD_STATE, *PCMD_STATE; } CMD_STATE, *PCMD_STATE;
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Functions --------------------------*/
struct vnt_private; struct vnt_private;
void vResetCommandTimer(struct vnt_private *); void vResetCommandTimer(struct vnt_private *);
......
...@@ -39,15 +39,10 @@ ...@@ -39,15 +39,10 @@
#include "card.h" #include "card.h"
#include "tmacro.h" #include "tmacro.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
// static int msglevel =MSG_LEVEL_INFO; // static int msglevel =MSG_LEVEL_INFO;
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "tether.h" #include "tether.h"
#include "device.h" #include "device.h"
/*--------------------- Export Definitions -------------------------*/
#define IS_TYPE_DATA(pMACHeader) \ #define IS_TYPE_DATA(pMACHeader) \
((((struct ieee80211_hdr *) pMACHeader)->frame_control & TYPE_802_11_MASK) == TYPE_802_11_DATA) ((((struct ieee80211_hdr *) pMACHeader)->frame_control & TYPE_802_11_MASK) == TYPE_802_11_DATA)
...@@ -89,11 +88,8 @@ ...@@ -89,11 +88,8 @@
(uVar)++; \ (uVar)++; \
} }
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
bool WCTLbIsDuplicate(PSCache pCache, struct ieee80211_hdr *pMACHeader); bool WCTLbIsDuplicate(PSCache pCache, struct ieee80211_hdr *pMACHeader);
bool WCTLbHandleFragment(struct vnt_private *, struct ieee80211_hdr *pMACHeader, unsigned int cbFrameLength, bool bWEP, bool bExtIV); bool WCTLbHandleFragment(struct vnt_private *, struct ieee80211_hdr *pMACHeader, unsigned int cbFrameLength, bool bWEP, bool bExtIV);
......
...@@ -81,17 +81,13 @@ ...@@ -81,17 +81,13 @@
#include "control.h" #include "control.h"
#include "rndis.h" #include "rndis.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG; //static int msglevel =MSG_LEVEL_DEBUG;
/*--------------------- Static Functions --------------------------*/
static int ChannelExceedZoneType(struct vnt_private *, u8 byCurrChannel); static int ChannelExceedZoneType(struct vnt_private *, u8 byCurrChannel);
...@@ -197,9 +193,7 @@ s_bCipherMatch ( ...@@ -197,9 +193,7 @@ s_bCipherMatch (
static void Encyption_Rebuild(struct vnt_private *, PKnownBSS pCurr); static void Encyption_Rebuild(struct vnt_private *, PKnownBSS pCurr);
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
/*+ /*+
* *
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include "wpa2.h" #include "wpa2.h"
#include "card.h" #include "card.h"
/*--------------------- Export Definitions -------------------------*/
...@@ -75,11 +74,8 @@ ...@@ -75,11 +74,8 @@
#define DEFAULT_IBSS_CHANNEL 6 //2.4G #define DEFAULT_IBSS_CHANNEL 6 //2.4G
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Types ------------------------------*/
//mike define: make timer to expire after desired times //mike define: make timer to expire after desired times
#define timer_expire(timer, next_tick) mod_timer(&timer, RUN_AT(next_tick)) #define timer_expire(timer, next_tick) mod_timer(&timer, RUN_AT(next_tick))
...@@ -383,9 +379,7 @@ struct vnt_manager { ...@@ -383,9 +379,7 @@ struct vnt_manager {
}; };
/*--------------------- Export Macros ------------------------------*/
/*--------------------- Export Functions --------------------------*/
void vMgrObjectInit(struct vnt_private *pDevice); void vMgrObjectInit(struct vnt_private *pDevice);
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
#include "wpa.h" #include "wpa.h"
#include "80211mgr.h" #include "80211mgr.h"
/*--------------------- Static Variables --------------------------*/
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
const u8 abyOUI00[4] = { 0x00, 0x50, 0xf2, 0x00 }; const u8 abyOUI00[4] = { 0x00, 0x50, 0xf2, 0x00 };
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#include "80211hdr.h" #include "80211hdr.h"
/*--------------------- Export Definitions -------------------------*/
#define WPA_NONE 0 #define WPA_NONE 0
#define WPA_WEP40 1 #define WPA_WEP40 1
...@@ -48,14 +47,10 @@ ...@@ -48,14 +47,10 @@
#define WPA_REPLAYBITSSHIFT 2 #define WPA_REPLAYBITSSHIFT 2
#define WPA_REPLAYBITS 0x03 #define WPA_REPLAYBITS 0x03
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Functions --------------------------*/
void void
WPA_ClearRSN( WPA_ClearRSN(
......
...@@ -34,12 +34,9 @@ ...@@ -34,12 +34,9 @@
#include "device.h" #include "device.h"
#include "wpa2.h" #include "wpa2.h"
/*--------------------- Static Definitions -------------------------*/
static int msglevel =MSG_LEVEL_INFO; static int msglevel =MSG_LEVEL_INFO;
//static int msglevel =MSG_LEVEL_DEBUG; //static int msglevel =MSG_LEVEL_DEBUG;
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
const u8 abyOUIGK[4] = { 0x00, 0x0F, 0xAC, 0x00 }; const u8 abyOUIGK[4] = { 0x00, 0x0F, 0xAC, 0x00 };
const u8 abyOUIWEP40[4] = { 0x00, 0x0F, 0xAC, 0x01 }; const u8 abyOUIWEP40[4] = { 0x00, 0x0F, 0xAC, 0x01 };
...@@ -51,11 +48,8 @@ const u8 abyOUI8021X[4] = { 0x00, 0x0F, 0xAC, 0x01 }; ...@@ -51,11 +48,8 @@ const u8 abyOUI8021X[4] = { 0x00, 0x0F, 0xAC, 0x01 };
const u8 abyOUIPSK[4] = { 0x00, 0x0F, 0xAC, 0x02 }; const u8 abyOUIPSK[4] = { 0x00, 0x0F, 0xAC, 0x02 };
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
/*+ /*+
* *
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
#include "80211hdr.h" #include "80211hdr.h"
#include "bssdb.h" #include "bssdb.h"
/*--------------------- Export Definitions -------------------------*/
#define MAX_PMKID_CACHE 16 #define MAX_PMKID_CACHE 16
typedef struct tagsPMKIDInfo { typedef struct tagsPMKIDInfo {
...@@ -49,13 +48,9 @@ typedef struct tagSPMKIDCache { ...@@ -49,13 +48,9 @@ typedef struct tagSPMKIDCache {
} SPMKIDCache, *PSPMKIDCache; } SPMKIDCache, *PSPMKIDCache;
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Types ------------------------------*/
/*--------------------- Export Functions --------------------------*/
void WPA2_ClearRSN(PKnownBSS pBSSNode); void WPA2_ClearRSN(PKnownBSS pBSSNode);
void WPA2vParseRSN(PKnownBSS pBSSNode, PWLAN_IE_RSN pRSN); void WPA2vParseRSN(PKnownBSS pBSSNode, PWLAN_IE_RSN pRSN);
......
...@@ -42,16 +42,11 @@ ...@@ -42,16 +42,11 @@
#include "rndis.h" #include "rndis.h"
#include "rf.h" #include "rf.h"
/*--------------------- Static Definitions -------------------------*/
/*--------------------- Static Classes ----------------------------*/
/*--------------------- Static Variables --------------------------*/
static int msglevel = MSG_LEVEL_INFO; static int msglevel = MSG_LEVEL_INFO;
/*--------------------- Static Functions --------------------------*/
/*--------------------- Export Variables --------------------------*/
/* /*
......
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include "device.h" #include "device.h"
#include "iowpa.h" #include "iowpa.h"
/*--------------------- Export Definitions -------------------------*/
//WPA related //WPA related
...@@ -46,11 +45,8 @@ typedef enum { WPA_ALG_NONE, WPA_ALG_WEP, WPA_ALG_TKIP, WPA_ALG_CCMP } wpa_alg; ...@@ -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; typedef unsigned long long NDIS_802_11_KEY_RSC;
/*--------------------- Export Classes ----------------------------*/
/*--------------------- Export Variables --------------------------*/
/*--------------------- Export Functions --------------------------*/
int wpa_set_keys(struct vnt_private *, void *ctx); int wpa_set_keys(struct vnt_private *, void *ctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment