Commit 29425feb authored by Veronika Kabatova's avatar Veronika Kabatova Committed by Greg Kroah-Hartman

staging: vt6655: bssdb.h: Replace C99 // comments by /* */

Replace C99 "//" comments by "/* */"
Signed-off-by: default avatarVeronika Kabatova <veronicca114@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b69c0bfd
...@@ -37,44 +37,43 @@ ...@@ -37,44 +37,43 @@
#define MAX_NODE_NUM 64 #define MAX_NODE_NUM 64
#define MAX_BSS_NUM 42 #define MAX_BSS_NUM 42
#define LOST_BEACON_COUNT 10 // 10 sec, XP defined #define LOST_BEACON_COUNT 10 /* 10 sec, XP defined */
#define MAX_PS_TX_BUF 32 // sta max power saving tx buf #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 ADHOC_LOST_BEACON_COUNT 30 /* 30 sec, beacon lost for adhoc only */
#define MAX_INACTIVE_COUNT 300 // 300 sec, inactive STA node refresh #define MAX_INACTIVE_COUNT 300 /* 300 sec, inactive STA node refresh */
#define USE_PROTECT_PERIOD 10 // 10 sec, Use protect mode check period #define USE_PROTECT_PERIOD 10 /*10 sec, Use protect mode check period*/
#define ERP_RECOVER_COUNT 30 // 30 sec, ERP support callback check #define ERP_RECOVER_COUNT 30 /* 30 sec, ERP support callback check */
#define BSS_CLEAR_COUNT 1 #define BSS_CLEAR_COUNT 1
#define RSSI_STAT_COUNT 10 #define RSSI_STAT_COUNT 10
#define MAX_CHECK_RSSI_COUNT 8 #define MAX_CHECK_RSSI_COUNT 8
// STA dwflags /* STA dwflags */
#define WLAN_STA_AUTH BIT0 #define WLAN_STA_AUTH BIT0
#define WLAN_STA_ASSOC BIT1 #define WLAN_STA_ASSOC BIT1
#define WLAN_STA_PS BIT2 #define WLAN_STA_PS BIT2
#define WLAN_STA_TIM BIT3 #define WLAN_STA_TIM BIT3
// permanent; do not remove entry on expiration /* permanent; do not remove entry on expiration */
#define WLAN_STA_PERM BIT4 #define WLAN_STA_PERM BIT4
// If 802.1X is used, this flag is /*
// controlling whether STA is authorized to * If 802.1X is used, this flag is controlling whether STA is authorized
// send and receive non-IEEE 802.1X frames * to send and receive non-IEEE 802.1X frames
*/
#define WLAN_STA_AUTHORIZED BIT5 #define WLAN_STA_AUTHORIZED BIT5
#define MAX_RATE 12 #define MAX_RATE 12
#define MAX_WPA_IE_LEN 64 #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 { typedef enum _NDIS_802_11_NETWORK_TYPE {
Ndis802_11FH, Ndis802_11FH,
Ndis802_11DS, Ndis802_11DS,
Ndis802_11OFDM5, Ndis802_11OFDM5,
Ndis802_11OFDM24, 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; } NDIS_802_11_NETWORK_TYPE, *PNDIS_802_11_NETWORK_TYPE;
typedef struct tagSERPObject { typedef struct tagSERPObject {
...@@ -87,7 +86,7 @@ typedef struct tagSRSNCapObject { ...@@ -87,7 +86,7 @@ typedef struct tagSRSNCapObject {
unsigned short wRSNCap; unsigned short wRSNCap;
} SRSNCapObject, *PSRSNCapObject; } SRSNCapObject, *PSRSNCapObject;
// BSS info(AP) /* BSS info(AP) */
#pragma pack(1) #pragma pack(1)
typedef struct tagKnownBSS { typedef struct tagKnownBSS {
bool bActive; bool bActive;
...@@ -152,7 +151,7 @@ typedef enum tagNODE_STATE { ...@@ -152,7 +151,7 @@ typedef enum tagNODE_STATE {
NODE_ASSOC NODE_ASSOC
} NODE_STATE, *PNODE_STATE; } NODE_STATE, *PNODE_STATE;
// STA node info /* STA node info */
typedef struct tagKnownNodeDB { typedef struct tagKnownNodeDB {
bool bActive; bool bActive;
unsigned char abyMACAddr[WLAN_ADDR_LEN]; unsigned char abyMACAddr[WLAN_ADDR_LEN];
...@@ -163,13 +162,13 @@ typedef struct tagKnownNodeDB { ...@@ -163,13 +162,13 @@ typedef struct tagKnownNodeDB {
bool bERPExist; bool bERPExist;
bool bShortSlotTime; bool bShortSlotTime;
unsigned int uInActiveCount; unsigned int uInActiveCount;
unsigned short wMaxBasicRate; //Get from byTopOFDMBasicRate or byTopCCKBasicRate which depends on packetTyp. 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 wMaxSuppRate; /* Records the highest supported rate getting from SuppRates IE and ExtSuppRates IE in Beacon. */
unsigned short wSuppRate; unsigned short wSuppRate;
unsigned char byTopOFDMBasicRate;//Records the highest basic rate in OFDM mode unsigned char byTopOFDMBasicRate; /* Records the highest basic rate in OFDM mode */
unsigned char byTopCCKBasicRate; //Records the highest basic rate in CCK mode unsigned char byTopCCKBasicRate; /* Records the highest basic rate in CCK mode */
// For AP mode /* For AP mode */
struct sk_buff_head sTxPSQueue; struct sk_buff_head sTxPSQueue;
unsigned short wCapInfo; unsigned short wCapInfo;
unsigned short wListenInterval; unsigned short wListenInterval;
...@@ -192,7 +191,7 @@ typedef struct tagKnownNodeDB { ...@@ -192,7 +191,7 @@ typedef struct tagKnownNodeDB {
unsigned short wTSC15_0; unsigned short wTSC15_0;
unsigned int uWepKeyLength; unsigned int uWepKeyLength;
unsigned char abyWepKey[WLAN_WEPMAX_KEYLEN]; unsigned char abyWepKey[WLAN_WEPMAX_KEYLEN];
// Auto rate fallback vars /* Auto rate fallback vars */
bool bIsInFallback; bool bIsInFallback;
unsigned int uAverageRSSI; unsigned int uAverageRSSI;
unsigned int uRateRecoveryTimeout; unsigned int uRateRecoveryTimeout;
...@@ -323,4 +322,4 @@ BSSvClearAnyBSSJoinRecord( ...@@ -323,4 +322,4 @@ BSSvClearAnyBSSJoinRecord(
void *hDeviceContext void *hDeviceContext
); );
#endif //__BSSDB_H__ #endif /*__BSSDB_H__ */
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