Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. |
| 3 | * All rights reserved. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License along |
| 16 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 18 | * |
| 19 | * |
| 20 | * File: bssdb.h |
| 21 | * |
| 22 | * Purpose: Handles the Basic Service Set & Node Database functions |
| 23 | * |
| 24 | * Author: Lyndon Chen |
| 25 | * |
| 26 | * Date: July 16, 2002 |
| 27 | * |
| 28 | */ |
| 29 | |
| 30 | #ifndef __BSSDB_H__ |
| 31 | #define __BSSDB_H__ |
| 32 | |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 33 | #include <linux/skbuff.h> |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 34 | #include "80211hdr.h" |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 35 | #include "80211mgr.h" |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 36 | #include "card.h" |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 37 | |
| 38 | /*--------------------- Export Definitions -------------------------*/ |
| 39 | |
| 40 | #define MAX_NODE_NUM 64 |
| 41 | #define MAX_BSS_NUM 42 |
| 42 | #define LOST_BEACON_COUNT 10 // 10 sec, XP defined |
| 43 | #define MAX_PS_TX_BUF 32 // sta max power saving tx buf |
| 44 | #define ADHOC_LOST_BEACON_COUNT 30 // 30 sec, beacon lost for adhoc only |
| 45 | #define MAX_INACTIVE_COUNT 300 // 300 sec, inactive STA node refresh |
| 46 | |
| 47 | #define USE_PROTECT_PERIOD 10 // 10 sec, Use protect mode check period |
| 48 | #define ERP_RECOVER_COUNT 30 // 30 sec, ERP support callback check |
| 49 | #define BSS_CLEAR_COUNT 1 |
| 50 | |
| 51 | #define RSSI_STAT_COUNT 10 |
| 52 | #define MAX_CHECK_RSSI_COUNT 8 |
| 53 | |
| 54 | // STA dwflags |
| 55 | #define WLAN_STA_AUTH BIT0 |
| 56 | #define WLAN_STA_ASSOC BIT1 |
| 57 | #define WLAN_STA_PS BIT2 |
| 58 | #define WLAN_STA_TIM BIT3 |
| 59 | // permanent; do not remove entry on expiration |
| 60 | #define WLAN_STA_PERM BIT4 |
| 61 | // If 802.1X is used, this flag is |
| 62 | // controlling whether STA is authorized to |
| 63 | // send and receive non-IEEE 802.1X frames |
| 64 | #define WLAN_STA_AUTHORIZED BIT5 |
| 65 | |
| 66 | #define MAX_RATE 12 |
| 67 | |
| 68 | #define MAX_WPA_IE_LEN 64 |
| 69 | |
| 70 | |
| 71 | /*--------------------- Export Classes ----------------------------*/ |
| 72 | |
| 73 | /*--------------------- Export Variables --------------------------*/ |
| 74 | |
| 75 | |
| 76 | /*--------------------- Export Types ------------------------------*/ |
| 77 | |
| 78 | // |
| 79 | // IEEE 802.11 Structures and definitions |
| 80 | // |
| 81 | |
| 82 | typedef enum _NDIS_802_11_NETWORK_TYPE |
| 83 | { |
| 84 | Ndis802_11FH, |
| 85 | Ndis802_11DS, |
| 86 | Ndis802_11OFDM5, |
| 87 | Ndis802_11OFDM24, |
| 88 | Ndis802_11NetworkTypeMax // not a real type, defined as an upper bound |
| 89 | } NDIS_802_11_NETWORK_TYPE, *PNDIS_802_11_NETWORK_TYPE; |
| 90 | |
| 91 | |
| 92 | typedef struct tagSERPObject { |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 93 | bool bERPExist; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 94 | unsigned char byERP; |
Jim Lieb | a884847 | 2009-08-12 14:54:07 -0700 | [diff] [blame] | 95 | }ERPObject, *PERPObject; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 96 | |
| 97 | |
| 98 | typedef struct tagSRSNCapObject { |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 99 | bool bRSNCapExist; |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 100 | unsigned short wRSNCap; |
Jim Lieb | a884847 | 2009-08-12 14:54:07 -0700 | [diff] [blame] | 101 | }SRSNCapObject, *PSRSNCapObject; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 102 | |
| 103 | // BSS info(AP) |
| 104 | #pragma pack(1) |
| 105 | typedef struct tagKnownBSS { |
| 106 | // BSS info |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 107 | bool bActive; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 108 | unsigned char abyBSSID[WLAN_BSSID_LEN]; |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 109 | unsigned int uChannel; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 110 | unsigned char abySuppRates[WLAN_IEHDR_LEN + WLAN_RATES_MAXLEN + 1]; |
| 111 | unsigned char abyExtSuppRates[WLAN_IEHDR_LEN + WLAN_RATES_MAXLEN + 1]; |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 112 | unsigned int uRSSI; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 113 | unsigned char bySQ; |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 114 | unsigned short wBeaconInterval; |
| 115 | unsigned short wCapInfo; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 116 | unsigned char abySSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1]; |
| 117 | unsigned char byRxRate; |
Jim Lieb | 612822f | 2009-08-12 14:54:03 -0700 | [diff] [blame] | 118 | |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 119 | // unsigned short wATIMWindow; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 120 | unsigned char byRSSIStatCnt; |
Charles Clément | b83cc2ed | 2010-06-01 12:38:57 -0700 | [diff] [blame] | 121 | long ldBmMAX; |
| 122 | long ldBmAverage[RSSI_STAT_COUNT]; |
| 123 | long ldBmAverRange; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 124 | //For any BSSID selection improvment |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 125 | bool bSelected; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 126 | |
| 127 | //++ WPA informations |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 128 | bool bWPAValid; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 129 | unsigned char byGKType; |
| 130 | unsigned char abyPKType[4]; |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 131 | unsigned short wPKCount; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 132 | unsigned char abyAuthType[4]; |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 133 | unsigned short wAuthCount; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 134 | unsigned char byDefaultK_as_PK; |
| 135 | unsigned char byReplayIdx; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 136 | //-- |
| 137 | |
| 138 | //++ WPA2 informations |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 139 | bool bWPA2Valid; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 140 | unsigned char byCSSGK; |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 141 | unsigned short wCSSPKCount; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 142 | unsigned char abyCSSPK[4]; |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 143 | unsigned short wAKMSSAuthCount; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 144 | unsigned char abyAKMSSAuthType[4]; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 145 | |
| 146 | //++ wpactl |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 147 | unsigned char byWPAIE[MAX_WPA_IE_LEN]; |
| 148 | unsigned char byRSNIE[MAX_WPA_IE_LEN]; |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 149 | unsigned short wWPALen; |
| 150 | unsigned short wRSNLen; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 151 | |
| 152 | // Clear count |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 153 | unsigned int uClearCount; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 154 | // unsigned char abyIEs[WLAN_BEACON_FR_MAXLEN]; |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 155 | unsigned int uIELength; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 156 | QWORD qwBSSTimestamp; |
| 157 | QWORD qwLocalTSF; // local TSF timer |
| 158 | |
| 159 | // NDIS_802_11_NETWORK_TYPE NetworkTypeInUse; |
| 160 | CARD_PHY_TYPE eNetworkTypeInUse; |
| 161 | |
| 162 | ERPObject sERP; |
| 163 | SRSNCapObject sRSNCapObj; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 164 | unsigned char abyIEs[1024]; // don't move this field !! |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 165 | |
| 166 | }__attribute__ ((__packed__)) |
Jim Lieb | a884847 | 2009-08-12 14:54:07 -0700 | [diff] [blame] | 167 | KnownBSS , *PKnownBSS; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 168 | |
| 169 | //2006-1116-01,<Add> by NomadZhao |
| 170 | #pragma pack() |
| 171 | |
| 172 | typedef enum tagNODE_STATE { |
| 173 | NODE_FREE, |
| 174 | NODE_AGED, |
| 175 | NODE_KNOWN, |
| 176 | NODE_AUTH, |
| 177 | NODE_ASSOC |
| 178 | } NODE_STATE, *PNODE_STATE; |
| 179 | |
| 180 | |
| 181 | // STA node info |
| 182 | typedef struct tagKnownNodeDB { |
| 183 | // STA info |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 184 | bool bActive; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 185 | unsigned char abyMACAddr[WLAN_ADDR_LEN]; |
| 186 | unsigned char abyCurrSuppRates[WLAN_IEHDR_LEN + WLAN_RATES_MAXLEN]; |
| 187 | unsigned char abyCurrExtSuppRates[WLAN_IEHDR_LEN + WLAN_RATES_MAXLEN]; |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 188 | unsigned short wTxDataRate; |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 189 | bool bShortPreamble; |
| 190 | bool bERPExist; |
| 191 | bool bShortSlotTime; |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 192 | unsigned int uInActiveCount; |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 193 | unsigned short wMaxBasicRate; //Get from byTopOFDMBasicRate or byTopCCKBasicRate which depends on packetTyp. |
| 194 | unsigned short wMaxSuppRate; //Records the highest supported rate getting from SuppRates IE and ExtSuppRates IE in Beacon. |
| 195 | unsigned short wSuppRate; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 196 | unsigned char byTopOFDMBasicRate;//Records the highest basic rate in OFDM mode |
| 197 | unsigned char byTopCCKBasicRate; //Records the highest basic rate in CCK mode |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 198 | |
| 199 | // For AP mode |
| 200 | struct sk_buff_head sTxPSQueue; |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 201 | unsigned short wCapInfo; |
| 202 | unsigned short wListenInterval; |
| 203 | unsigned short wAID; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 204 | NODE_STATE eNodeState; |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 205 | bool bPSEnable; |
| 206 | bool bRxPSPoll; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 207 | unsigned char byAuthSequence; |
Charles Clément | e3fd16d | 2010-06-02 09:52:02 -0700 | [diff] [blame] | 208 | unsigned long ulLastRxJiffer; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 209 | unsigned char bySuppRate; |
Charles Clément | 0f4c60d | 2010-06-24 11:02:25 -0700 | [diff] [blame] | 210 | unsigned long dwFlags; |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 211 | unsigned short wEnQueueCnt; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 212 | |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 213 | bool bOnFly; |
Charles Clément | b2e876b | 2010-06-02 09:52:03 -0700 | [diff] [blame] | 214 | unsigned long long KeyRSC; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 215 | unsigned char byKeyIndex; |
Charles Clément | 0f4c60d | 2010-06-24 11:02:25 -0700 | [diff] [blame] | 216 | unsigned long dwKeyIndex; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 217 | unsigned char byCipherSuite; |
Charles Clément | 0f4c60d | 2010-06-24 11:02:25 -0700 | [diff] [blame] | 218 | unsigned long dwTSC47_16; |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 219 | unsigned short wTSC15_0; |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 220 | unsigned int uWepKeyLength; |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 221 | unsigned char abyWepKey[WLAN_WEPMAX_KEYLEN]; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 222 | // |
| 223 | // Auto rate fallback vars |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 224 | bool bIsInFallback; |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 225 | unsigned int uAverageRSSI; |
| 226 | unsigned int uRateRecoveryTimeout; |
| 227 | unsigned int uRatePollTimeout; |
| 228 | unsigned int uTxFailures; |
| 229 | unsigned int uTxAttempts; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 230 | |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 231 | unsigned int uTxRetry; |
| 232 | unsigned int uFailureRatio; |
| 233 | unsigned int uRetryRatio; |
| 234 | unsigned int uTxOk[MAX_RATE+1]; |
| 235 | unsigned int uTxFail[MAX_RATE+1]; |
| 236 | unsigned int uTimeCount; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 237 | |
Jim Lieb | a884847 | 2009-08-12 14:54:07 -0700 | [diff] [blame] | 238 | } KnownNodeDB, *PKnownNodeDB; |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 239 | |
| 240 | |
| 241 | /*--------------------- Export Functions --------------------------*/ |
| 242 | |
| 243 | |
| 244 | |
| 245 | PKnownBSS |
| 246 | BSSpSearchBSSList( |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 247 | void *hDeviceContext, |
Charles Clément | 2989e96 | 2010-06-05 15:13:47 -0700 | [diff] [blame] | 248 | unsigned char *pbyDesireBSSID, |
| 249 | unsigned char *pbyDesireSSID, |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 250 | CARD_PHY_TYPE ePhyType |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 251 | ); |
| 252 | |
| 253 | PKnownBSS |
| 254 | BSSpAddrIsInBSSList( |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 255 | void *hDeviceContext, |
Charles Clément | 2989e96 | 2010-06-05 15:13:47 -0700 | [diff] [blame] | 256 | unsigned char *abyBSSID, |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 257 | PWLAN_IE_SSID pSSID |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 258 | ); |
| 259 | |
Charles Clément | 6b35b7b | 2010-05-07 12:30:19 -0700 | [diff] [blame] | 260 | void |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 261 | BSSvClearBSSList( |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 262 | void *hDeviceContext, |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 263 | bool bKeepCurrBSSID |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 264 | ); |
| 265 | |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 266 | bool |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 267 | BSSbInsertToBSSList( |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 268 | void *hDeviceContext, |
Charles Clément | 2989e96 | 2010-06-05 15:13:47 -0700 | [diff] [blame] | 269 | unsigned char *abyBSSIDAddr, |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 270 | QWORD qwTimestamp, |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 271 | unsigned short wBeaconInterval, |
| 272 | unsigned short wCapInfo, |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 273 | unsigned char byCurrChannel, |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 274 | PWLAN_IE_SSID pSSID, |
| 275 | PWLAN_IE_SUPP_RATES pSuppRates, |
| 276 | PWLAN_IE_SUPP_RATES pExtSuppRates, |
| 277 | PERPObject psERP, |
| 278 | PWLAN_IE_RSN pRSN, |
| 279 | PWLAN_IE_RSN_EXT pRSNWPA, |
| 280 | PWLAN_IE_COUNTRY pIE_Country, |
| 281 | PWLAN_IE_QUIET pIE_Quiet, |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 282 | unsigned int uIELength, |
Charles Clément | 2989e96 | 2010-06-05 15:13:47 -0700 | [diff] [blame] | 283 | unsigned char *pbyIEs, |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 284 | void *pRxPacketContext |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 285 | ); |
| 286 | |
| 287 | |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 288 | bool |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 289 | BSSbUpdateToBSSList( |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 290 | void *hDeviceContext, |
| 291 | QWORD qwTimestamp, |
Charles Clément | 2986db5 | 2010-06-24 11:02:26 -0700 | [diff] [blame] | 292 | unsigned short wBeaconInterval, |
| 293 | unsigned short wCapInfo, |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 294 | unsigned char byCurrChannel, |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 295 | bool bChannelHit, |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 296 | PWLAN_IE_SSID pSSID, |
| 297 | PWLAN_IE_SUPP_RATES pSuppRates, |
| 298 | PWLAN_IE_SUPP_RATES pExtSuppRates, |
| 299 | PERPObject psERP, |
| 300 | PWLAN_IE_RSN pRSN, |
| 301 | PWLAN_IE_RSN_EXT pRSNWPA, |
| 302 | PWLAN_IE_COUNTRY pIE_Country, |
| 303 | PWLAN_IE_QUIET pIE_Quiet, |
| 304 | PKnownBSS pBSSList, |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 305 | unsigned int uIELength, |
Charles Clément | 2989e96 | 2010-06-05 15:13:47 -0700 | [diff] [blame] | 306 | unsigned char *pbyIEs, |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 307 | void *pRxPacketContext |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 308 | ); |
| 309 | |
| 310 | |
Charles Clément | 7b6a001 | 2010-08-01 17:15:50 +0200 | [diff] [blame] | 311 | bool |
Charles Clément | fe4f34b | 2010-06-25 10:48:53 -0700 | [diff] [blame] | 312 | BSSDBbIsSTAInNodeDB(void *hDeviceContext, unsigned char *abyDstAddr, |
| 313 | unsigned int *puNodeIndex); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 314 | |
Charles Clément | 6b35b7b | 2010-05-07 12:30:19 -0700 | [diff] [blame] | 315 | void |
Charles Clément | fe4f34b | 2010-06-25 10:48:53 -0700 | [diff] [blame] | 316 | BSSvCreateOneNode(void *hDeviceContext, unsigned int *puNodeIndex); |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 317 | |
Charles Clément | 6b35b7b | 2010-05-07 12:30:19 -0700 | [diff] [blame] | 318 | void |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 319 | BSSvUpdateAPNode( |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 320 | void *hDeviceContext, |
Charles Clément | 15df6c2 | 2010-06-05 15:13:48 -0700 | [diff] [blame] | 321 | unsigned short *pwCapInfo, |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 322 | PWLAN_IE_SUPP_RATES pItemRates, |
| 323 | PWLAN_IE_SUPP_RATES pExtSuppRates |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 324 | ); |
| 325 | |
| 326 | |
Charles Clément | 6b35b7b | 2010-05-07 12:30:19 -0700 | [diff] [blame] | 327 | void |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 328 | BSSvSecondCallBack( |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 329 | void *hDeviceContext |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 330 | ); |
| 331 | |
Jim Lieb | 612822f | 2009-08-12 14:54:03 -0700 | [diff] [blame] | 332 | |
Charles Clément | 6b35b7b | 2010-05-07 12:30:19 -0700 | [diff] [blame] | 333 | void |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 334 | BSSvUpdateNodeTxCounter( |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 335 | void *hDeviceContext, |
Charles Clément | 3fc9b58 | 2010-06-24 11:02:27 -0700 | [diff] [blame] | 336 | unsigned char byTsr0, |
| 337 | unsigned char byTsr1, |
Charles Clément | 2989e96 | 2010-06-05 15:13:47 -0700 | [diff] [blame] | 338 | unsigned char *pbyBuffer, |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 339 | unsigned int uFIFOHeaderSize |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 340 | ); |
| 341 | |
Charles Clément | 6b35b7b | 2010-05-07 12:30:19 -0700 | [diff] [blame] | 342 | void |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 343 | BSSvRemoveOneNode( |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 344 | void *hDeviceContext, |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 345 | unsigned int uNodeIndex |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 346 | ); |
| 347 | |
Charles Clément | 6b35b7b | 2010-05-07 12:30:19 -0700 | [diff] [blame] | 348 | void |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 349 | BSSvAddMulticastNode( |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 350 | void *hDeviceContext |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 351 | ); |
| 352 | |
| 353 | |
Charles Clément | 6b35b7b | 2010-05-07 12:30:19 -0700 | [diff] [blame] | 354 | void |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 355 | BSSvClearNodeDBTable( |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 356 | void *hDeviceContext, |
Charles Clément | b6e95cd | 2010-06-02 09:52:01 -0700 | [diff] [blame] | 357 | unsigned int uStartIndex |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 358 | ); |
| 359 | |
Charles Clément | 6b35b7b | 2010-05-07 12:30:19 -0700 | [diff] [blame] | 360 | void |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 361 | BSSvClearAnyBSSJoinRecord( |
Charles Clément | 3a215e0 | 2010-05-12 20:54:39 -0700 | [diff] [blame] | 362 | void *hDeviceContext |
Forest Bond | 5449c68 | 2009-04-25 10:30:44 -0400 | [diff] [blame] | 363 | ); |
| 364 | |
| 365 | #endif //__BSSDB_H__ |