Skip to content

Commit

Permalink
staging: vt6655: bssdb.h: Replace C99 // comments by /* */
Browse files Browse the repository at this point in the history
Replace C99 "//" comments by "/* */"

Signed-off-by: Veronika Kabatova <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
veruu authored and gregkh committed Oct 28, 2014
1 parent b69c0bf commit 29425fe
Showing 1 changed file with 23 additions and 24 deletions.
47 changes: 23 additions & 24 deletions drivers/staging/vt6655/bssdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,44 +37,43 @@

#define MAX_NODE_NUM 64
#define MAX_BSS_NUM 42
#define LOST_BEACON_COUNT 10 // 10 sec, XP defined
#define MAX_PS_TX_BUF 32 // sta max power saving tx buf
#define ADHOC_LOST_BEACON_COUNT 30 // 30 sec, beacon lost for adhoc only
#define MAX_INACTIVE_COUNT 300 // 300 sec, inactive STA node refresh
#define LOST_BEACON_COUNT 10 /* 10 sec, XP defined */
#define MAX_PS_TX_BUF 32 /* sta max power saving tx buf */
#define ADHOC_LOST_BEACON_COUNT 30 /* 30 sec, beacon lost for adhoc only */
#define MAX_INACTIVE_COUNT 300 /* 300 sec, inactive STA node refresh */

#define USE_PROTECT_PERIOD 10 // 10 sec, Use protect mode check period
#define ERP_RECOVER_COUNT 30 // 30 sec, ERP support callback check
#define USE_PROTECT_PERIOD 10 /*10 sec, Use protect mode check period*/
#define ERP_RECOVER_COUNT 30 /* 30 sec, ERP support callback check */
#define BSS_CLEAR_COUNT 1

#define RSSI_STAT_COUNT 10
#define MAX_CHECK_RSSI_COUNT 8

// STA dwflags
/* STA dwflags */
#define WLAN_STA_AUTH BIT0
#define WLAN_STA_ASSOC BIT1
#define WLAN_STA_PS BIT2
#define WLAN_STA_TIM BIT3
// permanent; do not remove entry on expiration
/* permanent; do not remove entry on expiration */
#define WLAN_STA_PERM BIT4
// If 802.1X is used, this flag is
// controlling whether STA is authorized to
// send and receive non-IEEE 802.1X frames
/*
* If 802.1X is used, this flag is controlling whether STA is authorized
* to send and receive non-IEEE 802.1X frames
*/
#define WLAN_STA_AUTHORIZED BIT5

#define MAX_RATE 12

#define MAX_WPA_IE_LEN 64

//
// IEEE 802.11 Structures and definitions
//
/* IEEE 802.11 Structures and definitions */

typedef enum _NDIS_802_11_NETWORK_TYPE {
Ndis802_11FH,
Ndis802_11DS,
Ndis802_11OFDM5,
Ndis802_11OFDM24,
Ndis802_11NetworkTypeMax // not a real type, defined as an upper bound
Ndis802_11NetworkTypeMax /* defined as an upper bound */
} NDIS_802_11_NETWORK_TYPE, *PNDIS_802_11_NETWORK_TYPE;

typedef struct tagSERPObject {
Expand All @@ -87,7 +86,7 @@ typedef struct tagSRSNCapObject {
unsigned short wRSNCap;
} SRSNCapObject, *PSRSNCapObject;

// BSS info(AP)
/* BSS info(AP) */
#pragma pack(1)
typedef struct tagKnownBSS {
bool bActive;
Expand Down Expand Up @@ -152,7 +151,7 @@ typedef enum tagNODE_STATE {
NODE_ASSOC
} NODE_STATE, *PNODE_STATE;

// STA node info
/* STA node info */
typedef struct tagKnownNodeDB {
bool bActive;
unsigned char abyMACAddr[WLAN_ADDR_LEN];
Expand All @@ -163,13 +162,13 @@ typedef struct tagKnownNodeDB {
bool bERPExist;
bool bShortSlotTime;
unsigned int uInActiveCount;
unsigned short wMaxBasicRate; //Get from byTopOFDMBasicRate or byTopCCKBasicRate which depends on packetTyp.
unsigned short wMaxSuppRate; //Records the highest supported rate getting from SuppRates IE and ExtSuppRates IE in Beacon.
unsigned short wMaxBasicRate; /* Get from byTopOFDMBasicRate or byTopCCKBasicRate which depends on packetTyp. */
unsigned short wMaxSuppRate; /* Records the highest supported rate getting from SuppRates IE and ExtSuppRates IE in Beacon. */
unsigned short wSuppRate;
unsigned char byTopOFDMBasicRate;//Records the highest basic rate in OFDM mode
unsigned char byTopCCKBasicRate; //Records the highest basic rate in CCK mode
unsigned char byTopOFDMBasicRate; /* Records the highest basic rate in OFDM mode */
unsigned char byTopCCKBasicRate; /* Records the highest basic rate in CCK mode */

// For AP mode
/* For AP mode */
struct sk_buff_head sTxPSQueue;
unsigned short wCapInfo;
unsigned short wListenInterval;
Expand All @@ -192,7 +191,7 @@ typedef struct tagKnownNodeDB {
unsigned short wTSC15_0;
unsigned int uWepKeyLength;
unsigned char abyWepKey[WLAN_WEPMAX_KEYLEN];
// Auto rate fallback vars
/* Auto rate fallback vars */
bool bIsInFallback;
unsigned int uAverageRSSI;
unsigned int uRateRecoveryTimeout;
Expand Down Expand Up @@ -323,4 +322,4 @@ BSSvClearAnyBSSJoinRecord(
void *hDeviceContext
);

#endif //__BSSDB_H__
#endif /*__BSSDB_H__ */

0 comments on commit 29425fe

Please sign in to comment.