1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /****************************************************************************** 3 * 4 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 5 * 6 ******************************************************************************/ 7 #ifndef __RTW_MLME_EXT_H_ 8 #define __RTW_MLME_EXT_H_ 9 10 11 /* Commented by Albert 20101105 */ 12 /* Increase the SURVEY_TO value from 100 to 150 (100ms to 150ms) */ 13 /* The Realtek 8188CE SoftAP will spend around 100ms to send the probe response after receiving the probe request. */ 14 /* So, this driver tried to extend the dwell time for each scanning channel. */ 15 /* This will increase the chance to receive the probe response from SoftAP. */ 16 17 #define SURVEY_TO (100) 18 #define REAUTH_TO (300) /* 50) */ 19 #define REASSOC_TO (300) /* 50) */ 20 /* define DISCONNECT_TO (3000) */ 21 #define ADDBA_TO (2000) 22 23 #define LINKED_TO (1) /* unit:2 sec, 1x2 =2 sec */ 24 25 #define REAUTH_LIMIT (4) 26 #define REASSOC_LIMIT (4) 27 #define READDBA_LIMIT (2) 28 29 #define ROAMING_LIMIT 8 30 /* define IOCMD_REG0 0x10250370 */ 31 /* define IOCMD_REG1 0x10250374 */ 32 /* define IOCMD_REG2 0x10250378 */ 33 34 /* define FW_DYNAMIC_FUN_SWITCH 0x10250364 */ 35 36 /* define WRITE_BB_CMD 0xF0000001 */ 37 /* define SET_CHANNEL_CMD 0xF3000000 */ 38 /* define UPDATE_RA_CMD 0xFD0000A2 */ 39 40 #define DYNAMIC_FUNC_DISABLE (0x0) 41 42 /* ====== ODM_ABILITY_E ======== */ 43 /* BB ODM section BIT 0-15 */ 44 #define DYNAMIC_BB_DIG BIT0 /* ODM_BB_DIG */ 45 #define DYNAMIC_BB_RA_MASK BIT1 /* ODM_BB_RA_MASK */ 46 #define DYNAMIC_BB_DYNAMIC_TXPWR BIT2 /* ODM_BB_DYNAMIC_TXPWR */ 47 #define DYNAMIC_BB_BB_FA_CNT BIT3 /* ODM_BB_FA_CNT */ 48 #define DYNAMIC_BB_RSSI_MONITOR BIT4 /* ODM_BB_RSSI_MONITOR */ 49 #define DYNAMIC_BB_CCK_PD BIT5 /* ODM_BB_CCK_PD */ 50 #define DYNAMIC_BB_ANT_DIV BIT6 /* ODM_BB_ANT_DIV */ 51 #define DYNAMIC_BB_PWR_SAVE BIT7 /* ODM_BB_PWR_SAVE */ 52 #define DYNAMIC_BB_PWR_TRAIN BIT8 /* ODM_BB_PWR_TRAIN */ 53 #define DYNAMIC_BB_RATE_ADAPTIVE BIT9 /* ODM_BB_RATE_ADAPTIVE */ 54 #define DYNAMIC_BB_PATH_DIV BIT10/* ODM_BB_PATH_DIV */ 55 #define DYNAMIC_BB_PSD BIT11/* ODM_BB_PSD */ 56 #define DYNAMIC_BB_RXHP BIT12/* ODM_BB_RXHP */ 57 #define DYNAMIC_BB_ADAPTIVITY BIT13/* ODM_BB_ADAPTIVITY */ 58 #define DYNAMIC_BB_DYNAMIC_ATC BIT14/* ODM_BB_DYNAMIC_ATC */ 59 60 /* MAC DM section BIT 16-23 */ 61 #define DYNAMIC_MAC_EDCA_TURBO BIT16/* ODM_MAC_EDCA_TURBO */ 62 #define DYNAMIC_MAC_EARLY_MODE BIT17/* ODM_MAC_EARLY_MODE */ 63 64 /* RF ODM section BIT 24-31 */ 65 #define DYNAMIC_RF_TX_PWR_TRACK BIT24/* ODM_RF_TX_PWR_TRACK */ 66 #define DYNAMIC_RF_RX_GAIN_TRACK BIT25/* ODM_RF_RX_GAIN_TRACK */ 67 #define DYNAMIC_RF_CALIBRATION BIT26/* ODM_RF_CALIBRATION */ 68 69 #define DYNAMIC_ALL_FUNC_ENABLE 0xFFFFFFF 70 71 #define _HW_STATE_NOLINK_ 0x00 72 #define _HW_STATE_ADHOC_ 0x01 73 #define _HW_STATE_STATION_ 0x02 74 #define _HW_STATE_AP_ 0x03 75 76 77 #define _1M_RATE_ 0 78 #define _2M_RATE_ 1 79 #define _5M_RATE_ 2 80 #define _11M_RATE_ 3 81 #define _6M_RATE_ 4 82 #define _9M_RATE_ 5 83 #define _12M_RATE_ 6 84 #define _18M_RATE_ 7 85 #define _24M_RATE_ 8 86 #define _36M_RATE_ 9 87 #define _48M_RATE_ 10 88 #define _54M_RATE_ 11 89 90 /******************************************************** 91 MCS rate definitions 92 *********************************************************/ 93 #define MCS_RATE_1R (0x000000ff) 94 #define MCS_RATE_2R (0x0000ffff) 95 #define MCS_RATE_3R (0x00ffffff) 96 #define MCS_RATE_4R (0xffffffff) 97 #define MCS_RATE_2R_13TO15_OFF (0x00001fff) 98 99 100 extern unsigned char RTW_WPA_OUI[]; 101 extern unsigned char WMM_OUI[]; 102 extern unsigned char WPS_OUI[]; 103 extern unsigned char WFD_OUI[]; 104 extern unsigned char P2P_OUI[]; 105 106 extern unsigned char WMM_INFO_OUI[]; 107 extern unsigned char WMM_PARA_OUI[]; 108 109 110 /* */ 111 /* Channel Plan Type. */ 112 /* Note: */ 113 /* We just add new channel plan when the new channel plan is different from any of the following */ 114 /* channel plan. */ 115 /* If you just wnat to customize the acitions(scan period or join actions) about one of the channel plan, */ 116 /* customize them in RT_CHANNEL_INFO in the RT_CHANNEL_LIST. */ 117 /* */ 118 typedef enum _RT_CHANNEL_DOMAIN 119 { 120 /* old channel plan mapping ===== */ 121 RT_CHANNEL_DOMAIN_FCC = 0x00, 122 RT_CHANNEL_DOMAIN_IC = 0x01, 123 RT_CHANNEL_DOMAIN_ETSI = 0x02, 124 RT_CHANNEL_DOMAIN_SPAIN = 0x03, 125 RT_CHANNEL_DOMAIN_FRANCE = 0x04, 126 RT_CHANNEL_DOMAIN_MKK = 0x05, 127 RT_CHANNEL_DOMAIN_MKK1 = 0x06, 128 RT_CHANNEL_DOMAIN_ISRAEL = 0x07, 129 RT_CHANNEL_DOMAIN_TELEC = 0x08, 130 RT_CHANNEL_DOMAIN_GLOBAL_DOAMIN = 0x09, 131 RT_CHANNEL_DOMAIN_WORLD_WIDE_13 = 0x0A, 132 RT_CHANNEL_DOMAIN_TAIWAN = 0x0B, 133 RT_CHANNEL_DOMAIN_CHINA = 0x0C, 134 RT_CHANNEL_DOMAIN_SINGAPORE_INDIA_MEXICO = 0x0D, 135 RT_CHANNEL_DOMAIN_KOREA = 0x0E, 136 RT_CHANNEL_DOMAIN_TURKEY = 0x0F, 137 RT_CHANNEL_DOMAIN_JAPAN = 0x10, 138 RT_CHANNEL_DOMAIN_FCC_NO_DFS = 0x11, 139 RT_CHANNEL_DOMAIN_JAPAN_NO_DFS = 0x12, 140 RT_CHANNEL_DOMAIN_WORLD_WIDE_5G = 0x13, 141 RT_CHANNEL_DOMAIN_TAIWAN_NO_DFS = 0x14, 142 143 /* new channel plan mapping, (2GDOMAIN_5GDOMAIN) ===== */ 144 RT_CHANNEL_DOMAIN_WORLD_NULL = 0x20, 145 RT_CHANNEL_DOMAIN_ETSI1_NULL = 0x21, 146 RT_CHANNEL_DOMAIN_FCC1_NULL = 0x22, 147 RT_CHANNEL_DOMAIN_MKK1_NULL = 0x23, 148 RT_CHANNEL_DOMAIN_ETSI2_NULL = 0x24, 149 RT_CHANNEL_DOMAIN_FCC1_FCC1 = 0x25, 150 RT_CHANNEL_DOMAIN_WORLD_ETSI1 = 0x26, 151 RT_CHANNEL_DOMAIN_MKK1_MKK1 = 0x27, 152 RT_CHANNEL_DOMAIN_WORLD_KCC1 = 0x28, 153 RT_CHANNEL_DOMAIN_WORLD_FCC2 = 0x29, 154 RT_CHANNEL_DOMAIN_WORLD_FCC3 = 0x30, 155 RT_CHANNEL_DOMAIN_WORLD_FCC4 = 0x31, 156 RT_CHANNEL_DOMAIN_WORLD_FCC5 = 0x32, 157 RT_CHANNEL_DOMAIN_WORLD_FCC6 = 0x33, 158 RT_CHANNEL_DOMAIN_FCC1_FCC7 = 0x34, 159 RT_CHANNEL_DOMAIN_WORLD_ETSI2 = 0x35, 160 RT_CHANNEL_DOMAIN_WORLD_ETSI3 = 0x36, 161 RT_CHANNEL_DOMAIN_MKK1_MKK2 = 0x37, 162 RT_CHANNEL_DOMAIN_MKK1_MKK3 = 0x38, 163 RT_CHANNEL_DOMAIN_FCC1_NCC1 = 0x39, 164 RT_CHANNEL_DOMAIN_FCC1_NCC2 = 0x40, 165 RT_CHANNEL_DOMAIN_GLOBAL_NULL = 0x41, 166 RT_CHANNEL_DOMAIN_ETSI1_ETSI4 = 0x42, 167 RT_CHANNEL_DOMAIN_FCC1_FCC2 = 0x43, 168 RT_CHANNEL_DOMAIN_FCC1_NCC3 = 0x44, 169 RT_CHANNEL_DOMAIN_WORLD_ETSI5 = 0x45, 170 RT_CHANNEL_DOMAIN_FCC1_FCC8 = 0x46, 171 RT_CHANNEL_DOMAIN_WORLD_ETSI6 = 0x47, 172 RT_CHANNEL_DOMAIN_WORLD_ETSI7 = 0x48, 173 RT_CHANNEL_DOMAIN_WORLD_ETSI8 = 0x49, 174 RT_CHANNEL_DOMAIN_WORLD_ETSI9 = 0x50, 175 RT_CHANNEL_DOMAIN_WORLD_ETSI10 = 0x51, 176 RT_CHANNEL_DOMAIN_WORLD_ETSI11 = 0x52, 177 RT_CHANNEL_DOMAIN_FCC1_NCC4 = 0x53, 178 RT_CHANNEL_DOMAIN_WORLD_ETSI12 = 0x54, 179 RT_CHANNEL_DOMAIN_FCC1_FCC9 = 0x55, 180 RT_CHANNEL_DOMAIN_WORLD_ETSI13 = 0x56, 181 RT_CHANNEL_DOMAIN_FCC1_FCC10 = 0x57, 182 /* Add new channel plan above this line =============== */ 183 RT_CHANNEL_DOMAIN_MAX, 184 RT_CHANNEL_DOMAIN_REALTEK_DEFINE = 0x7F, 185 }RT_CHANNEL_DOMAIN, *PRT_CHANNEL_DOMAIN; 186 187 typedef enum _RT_CHANNEL_DOMAIN_2G 188 { 189 RT_CHANNEL_DOMAIN_2G_WORLD = 0x00, /* Worldwird 13 */ 190 RT_CHANNEL_DOMAIN_2G_ETSI1 = 0x01, /* Europe */ 191 RT_CHANNEL_DOMAIN_2G_FCC1 = 0x02, /* US */ 192 RT_CHANNEL_DOMAIN_2G_MKK1 = 0x03, /* Japan */ 193 RT_CHANNEL_DOMAIN_2G_ETSI2 = 0x04, /* France */ 194 RT_CHANNEL_DOMAIN_2G_GLOBAL = 0x05, /* Global domain */ 195 RT_CHANNEL_DOMAIN_2G_NULL = 0x06, 196 /* Add new channel plan above this line =============== */ 197 RT_CHANNEL_DOMAIN_2G_MAX, 198 }RT_CHANNEL_DOMAIN_2G, *PRT_CHANNEL_DOMAIN_2G; 199 200 typedef enum _RT_CHANNEL_DOMAIN_5G 201 { 202 RT_CHANNEL_DOMAIN_5G_NULL = 0x00, 203 RT_CHANNEL_DOMAIN_5G_ETSI1 = 0x01, /* Europe */ 204 RT_CHANNEL_DOMAIN_5G_ETSI2 = 0x02, /* Australia, New Zealand */ 205 RT_CHANNEL_DOMAIN_5G_ETSI3 = 0x03, /* Russia */ 206 RT_CHANNEL_DOMAIN_5G_FCC1 = 0x04, /* US */ 207 RT_CHANNEL_DOMAIN_5G_FCC2 = 0x05, /* FCC o/w DFS Channels */ 208 RT_CHANNEL_DOMAIN_5G_FCC3 = 0x06, /* India, Mexico */ 209 RT_CHANNEL_DOMAIN_5G_FCC4 = 0x07, /* Venezuela */ 210 RT_CHANNEL_DOMAIN_5G_FCC5 = 0x08, /* China */ 211 RT_CHANNEL_DOMAIN_5G_FCC6 = 0x09, /* Israel */ 212 RT_CHANNEL_DOMAIN_5G_FCC7_IC1 = 0x0A, /* US, Canada */ 213 RT_CHANNEL_DOMAIN_5G_KCC1 = 0x0B, /* Korea */ 214 RT_CHANNEL_DOMAIN_5G_MKK1 = 0x0C, /* Japan */ 215 RT_CHANNEL_DOMAIN_5G_MKK2 = 0x0D, /* Japan (W52, W53) */ 216 RT_CHANNEL_DOMAIN_5G_MKK3 = 0x0E, /* Japan (W56) */ 217 RT_CHANNEL_DOMAIN_5G_NCC1 = 0x0F, /* Taiwan */ 218 RT_CHANNEL_DOMAIN_5G_NCC2 = 0x10, /* Taiwan o/w DFS */ 219 RT_CHANNEL_DOMAIN_5G_NCC3 = 0x11, /* Taiwan w/o DFS, Band4 only */ 220 RT_CHANNEL_DOMAIN_5G_ETSI4 = 0x12, /* Europe w/o DFS, Band1 only */ 221 RT_CHANNEL_DOMAIN_5G_ETSI5 = 0x13, /* Australia, New Zealand(w/o Weather radar) */ 222 RT_CHANNEL_DOMAIN_5G_FCC8 = 0x14, /* Latin America */ 223 RT_CHANNEL_DOMAIN_5G_ETSI6 = 0x15, /* Israel, Bahrain, Egypt, India, China, Malaysia */ 224 RT_CHANNEL_DOMAIN_5G_ETSI7 = 0x16, /* China */ 225 RT_CHANNEL_DOMAIN_5G_ETSI8 = 0x17, /* Jordan */ 226 RT_CHANNEL_DOMAIN_5G_ETSI9 = 0x18, /* Lebanon */ 227 RT_CHANNEL_DOMAIN_5G_ETSI10 = 0x19, /* Qatar */ 228 RT_CHANNEL_DOMAIN_5G_ETSI11 = 0x1A, /* Russia */ 229 RT_CHANNEL_DOMAIN_5G_NCC4 = 0x1B, /* Taiwan, (w/o Weather radar) */ 230 RT_CHANNEL_DOMAIN_5G_ETSI12 = 0x1C, /* Indonesia */ 231 RT_CHANNEL_DOMAIN_5G_FCC9 = 0x1D, /* w/o Weather radar) */ 232 RT_CHANNEL_DOMAIN_5G_ETSI13 = 0x1E, /* w/o Weather radar) */ 233 RT_CHANNEL_DOMAIN_5G_FCC10 = 0x1F, /* Argentina (w/o Weather radar) */ 234 /* Add new channel plan above this line =============== */ 235 /* Driver Self Defined ===== */ 236 RT_CHANNEL_DOMAIN_5G_FCC = 0x20, 237 RT_CHANNEL_DOMAIN_5G_JAPAN_NO_DFS = 0x21, 238 RT_CHANNEL_DOMAIN_5G_FCC4_NO_DFS = 0x22, 239 RT_CHANNEL_DOMAIN_5G_MAX, 240 }RT_CHANNEL_DOMAIN_5G, *PRT_CHANNEL_DOMAIN_5G; 241 242 #define rtw_is_channel_plan_valid(chplan) (chplan<RT_CHANNEL_DOMAIN_MAX || chplan == RT_CHANNEL_DOMAIN_REALTEK_DEFINE) 243 244 typedef struct _RT_CHANNEL_PLAN 245 { 246 unsigned char Channel[MAX_CHANNEL_NUM]; 247 unsigned char Len; 248 }RT_CHANNEL_PLAN, *PRT_CHANNEL_PLAN; 249 250 typedef struct _RT_CHANNEL_PLAN_2G 251 { 252 unsigned char Channel[MAX_CHANNEL_NUM_2G]; 253 unsigned char Len; 254 }RT_CHANNEL_PLAN_2G, *PRT_CHANNEL_PLAN_2G; 255 256 typedef struct _RT_CHANNEL_PLAN_5G 257 { 258 unsigned char Channel[MAX_CHANNEL_NUM_5G]; 259 unsigned char Len; 260 }RT_CHANNEL_PLAN_5G, *PRT_CHANNEL_PLAN_5G; 261 262 typedef struct _RT_CHANNEL_PLAN_MAP 263 { 264 unsigned char Index2G; 265 unsigned char Index5G; 266 }RT_CHANNEL_PLAN_MAP, *PRT_CHANNEL_PLAN_MAP; 267 268 enum Associated_AP 269 { 270 atherosAP = 0, 271 broadcomAP = 1, 272 ciscoAP = 2, 273 marvellAP = 3, 274 ralinkAP = 4, 275 realtekAP = 5, 276 airgocapAP = 6, 277 unknownAP = 7, 278 maxAP, 279 }; 280 281 typedef enum _HT_IOT_PEER 282 { 283 HT_IOT_PEER_UNKNOWN = 0, 284 HT_IOT_PEER_REALTEK = 1, 285 HT_IOT_PEER_REALTEK_92SE = 2, 286 HT_IOT_PEER_BROADCOM = 3, 287 HT_IOT_PEER_RALINK = 4, 288 HT_IOT_PEER_ATHEROS = 5, 289 HT_IOT_PEER_CISCO = 6, 290 HT_IOT_PEER_MERU = 7, 291 HT_IOT_PEER_MARVELL = 8, 292 HT_IOT_PEER_REALTEK_SOFTAP = 9,/* peer is RealTek SOFT_AP, by Bohn, 2009.12.17 */ 293 HT_IOT_PEER_SELF_SOFTAP = 10, /* Self is SoftAP */ 294 HT_IOT_PEER_AIRGO = 11, 295 HT_IOT_PEER_INTEL = 12, 296 HT_IOT_PEER_RTK_APCLIENT = 13, 297 HT_IOT_PEER_REALTEK_81XX = 14, 298 HT_IOT_PEER_REALTEK_WOW = 15, 299 HT_IOT_PEER_REALTEK_JAGUAR_BCUTAP = 16, 300 HT_IOT_PEER_REALTEK_JAGUAR_CCUTAP = 17, 301 HT_IOT_PEER_MAX = 18 302 }HT_IOT_PEER_E, *PHTIOT_PEER_E; 303 304 305 enum SCAN_STATE 306 { 307 SCAN_DISABLE = 0, 308 SCAN_START = 1, 309 SCAN_TXNULL = 2, 310 SCAN_PROCESS = 3, 311 SCAN_COMPLETE = 4, 312 SCAN_STATE_MAX, 313 }; 314 315 struct mlme_handler { 316 unsigned int num; 317 char* str; 318 unsigned int (*func)(struct adapter *padapter, union recv_frame *precv_frame); 319 }; 320 321 struct action_handler { 322 unsigned int num; 323 char* str; 324 unsigned int (*func)(struct adapter *padapter, union recv_frame *precv_frame); 325 }; 326 327 struct ss_res 328 { 329 int state; 330 int bss_cnt; 331 int channel_idx; 332 int scan_mode; 333 u8 ssid_num; 334 u8 ch_num; 335 struct ndis_802_11_ssid ssid[RTW_SSID_SCAN_AMOUNT]; 336 struct rtw_ieee80211_channel ch[RTW_CHANNEL_SCAN_AMOUNT]; 337 }; 338 339 /* define AP_MODE 0x0C */ 340 /* define STATION_MODE 0x08 */ 341 /* define AD_HOC_MODE 0x04 */ 342 /* define NO_LINK_MODE 0x00 */ 343 344 #define WIFI_FW_NULL_STATE _HW_STATE_NOLINK_ 345 #define WIFI_FW_STATION_STATE _HW_STATE_STATION_ 346 #define WIFI_FW_AP_STATE _HW_STATE_AP_ 347 #define WIFI_FW_ADHOC_STATE _HW_STATE_ADHOC_ 348 349 #define WIFI_FW_AUTH_NULL 0x00000100 350 #define WIFI_FW_AUTH_STATE 0x00000200 351 #define WIFI_FW_AUTH_SUCCESS 0x00000400 352 353 #define WIFI_FW_ASSOC_STATE 0x00002000 354 #define WIFI_FW_ASSOC_SUCCESS 0x00004000 355 356 #define WIFI_FW_LINKING_STATE (WIFI_FW_AUTH_NULL | WIFI_FW_AUTH_STATE | WIFI_FW_AUTH_SUCCESS |WIFI_FW_ASSOC_STATE) 357 358 struct FW_Sta_Info 359 { 360 struct sta_info *psta; 361 u32 status; 362 u32 rx_pkt; 363 u32 retry; 364 NDIS_802_11_RATES_EX SupportedRates; 365 }; 366 367 /* 368 * Usage: 369 * When one iface acted as AP mode and the other iface is STA mode and scanning, 370 * it should switch back to AP's operating channel periodically. 371 * Parameters info: 372 * When the driver scanned RTW_SCAN_NUM_OF_CH channels, it would switch back to AP's operating channel for 373 * RTW_STAY_AP_CH_MILLISECOND * SURVEY_TO milliseconds. 374 * Example: 375 * For chip supports 2.4G + 5GHz and AP mode is operating in channel 1, 376 * RTW_SCAN_NUM_OF_CH is 8, RTW_STAY_AP_CH_MILLISECOND is 3 and SURVEY_TO is 100. 377 * When it's STA mode gets set_scan command, 378 * it would 379 * 1. Doing the scan on channel 1.2.3.4.5.6.7.8 380 * 2. Back to channel 1 for 300 milliseconds 381 * 3. Go through doing site survey on channel 9.10.11.36.40.44.48.52 382 * 4. Back to channel 1 for 300 milliseconds 383 * 5. ... and so on, till survey done. 384 */ 385 struct mlme_ext_info 386 { 387 u32 state; 388 u32 reauth_count; 389 u32 reassoc_count; 390 u32 link_count; 391 u32 auth_seq; 392 u32 auth_algo; /* 802.11 auth, could be open, shared, auto */ 393 u32 authModeToggle; 394 u32 enc_algo;/* encrypt algorithm; */ 395 u32 key_index; /* this is only valid for legendary wep, 0~3 for key id. */ 396 u32 iv; 397 u8 chg_txt[128]; 398 u16 aid; 399 u16 bcn_interval; 400 u16 capability; 401 u8 assoc_AP_vendor; 402 u8 slotTime; 403 u8 preamble_mode; 404 u8 WMM_enable; 405 u8 ERP_enable; 406 u8 ERP_IE; 407 u8 HT_enable; 408 u8 HT_caps_enable; 409 u8 HT_info_enable; 410 u8 HT_protection; 411 u8 turboMode_cts2self; 412 u8 turboMode_rtsen; 413 u8 SM_PS; 414 u8 agg_enable_bitmap; 415 u8 ADDBA_retry_count; 416 u8 candidate_tid_bitmap; 417 u8 dialogToken; 418 /* Accept ADDBA Request */ 419 bool accept_addba_req; 420 u8 bwmode_updated; 421 u8 hidden_ssid_mode; 422 u8 VHT_enable; 423 424 struct ADDBA_request ADDBA_req; 425 struct WMM_para_element WMM_param; 426 struct HT_caps_element HT_caps; 427 struct HT_info_element HT_info; 428 struct wlan_bssid_ex network;/* join network or bss_network, if in ap mode, it is the same to cur_network.network */ 429 struct FW_Sta_Info FW_sta_info[NUM_STA]; 430 }; 431 432 /* The channel information about this channel including joining, scanning, and power constraints. */ 433 typedef struct _RT_CHANNEL_INFO 434 { 435 u8 ChannelNum; /* The channel number. */ 436 RT_SCAN_TYPE ScanType; /* Scan type such as passive or active scan. */ 437 }RT_CHANNEL_INFO, *PRT_CHANNEL_INFO; 438 439 int rtw_ch_set_search_ch(RT_CHANNEL_INFO *ch_set, const u32 ch); 440 bool rtw_mlme_band_check(struct adapter *adapter, const u32 ch); 441 442 /* P2P_MAX_REG_CLASSES - Maximum number of regulatory classes */ 443 #define P2P_MAX_REG_CLASSES 10 444 445 /* P2P_MAX_REG_CLASS_CHANNELS - Maximum number of channels per regulatory class */ 446 #define P2P_MAX_REG_CLASS_CHANNELS 20 447 448 /* struct p2p_channels - List of supported channels */ 449 struct p2p_channels { 450 /* struct p2p_reg_class - Supported regulatory class */ 451 struct p2p_reg_class { 452 /* reg_class - Regulatory class (IEEE 802.11-2007, Annex J) */ 453 u8 reg_class; 454 455 /* channel - Supported channels */ 456 u8 channel[P2P_MAX_REG_CLASS_CHANNELS]; 457 458 /* channels - Number of channel entries in use */ 459 size_t channels; 460 } reg_class[P2P_MAX_REG_CLASSES]; 461 462 /* reg_classes - Number of reg_class entries in use */ 463 size_t reg_classes; 464 }; 465 466 struct p2p_oper_class_map { 467 enum hw_mode {IEEE80211G, IEEE80211A} mode; 468 u8 op_class; 469 u8 min_chan; 470 u8 max_chan; 471 u8 inc; 472 enum { BW20, BW40PLUS, BW40MINUS } bw; 473 }; 474 475 struct mlme_ext_priv 476 { 477 struct adapter *padapter; 478 u8 mlmeext_init; 479 atomic_t event_seq; 480 u16 mgnt_seq; 481 u16 sa_query_seq; 482 u64 mgnt_80211w_IPN; 483 u64 mgnt_80211w_IPN_rx; 484 /* struct fw_priv fwpriv; */ 485 486 unsigned char cur_channel; 487 unsigned char cur_bwmode; 488 unsigned char cur_ch_offset;/* PRIME_CHNL_OFFSET */ 489 unsigned char cur_wireless_mode; /* NETWORK_TYPE */ 490 491 unsigned char max_chan_nums; 492 RT_CHANNEL_INFO channel_set[MAX_CHANNEL_NUM]; 493 struct p2p_channels channel_list; 494 unsigned char basicrate[NumRates]; 495 unsigned char datarate[NumRates]; 496 unsigned char default_supported_mcs_set[16]; 497 498 struct ss_res sitesurvey_res; 499 struct mlme_ext_info mlmext_info;/* for sta/adhoc mode, including current scanning/connecting/connected related info. */ 500 /* for ap mode, network includes ap's cap_info */ 501 _timer survey_timer; 502 _timer link_timer; 503 _timer sa_query_timer; 504 /* _timer ADDBA_timer; */ 505 u16 chan_scan_time; 506 unsigned long last_scan_time; 507 u8 scan_abort; 508 u8 tx_rate; /* TXRATE when USERATE is set. */ 509 510 u32 retry; /* retry for issue probereq */ 511 512 u64 TSFValue; 513 514 /* for LPS-32K to adaptive bcn early and timeout */ 515 u8 adaptive_tsf_done; 516 u32 bcn_delay_cnt[9]; 517 u32 bcn_delay_ratio[9]; 518 u32 bcn_cnt; 519 u8 DrvBcnEarly; 520 u8 DrvBcnTimeOut; 521 522 unsigned char bstart_bss; 523 524 u8 update_channel_plan_by_ap_done; 525 526 /* recv_decache check for Action_public frame */ 527 u8 action_public_dialog_token; 528 u16 action_public_rxseq; 529 530 u8 active_keep_alive_check; 531 #ifdef DBG_FIXED_CHAN 532 u8 fixed_chan; 533 #endif 534 535 }; 536 537 void init_mlme_default_rate_set(struct adapter *padapter); 538 int init_mlme_ext_priv(struct adapter *padapter); 539 int init_hw_mlme_ext(struct adapter *padapter); 540 void free_mlme_ext_priv (struct mlme_ext_priv *pmlmeext); 541 extern void init_mlme_ext_timer(struct adapter *padapter); 542 extern void init_addba_retry_timer(struct adapter *padapter, struct sta_info *psta); 543 extern struct xmit_frame *alloc_mgtxmitframe(struct xmit_priv *pxmitpriv); 544 545 /* void fill_fwpriv(struct adapter *padapter, struct fw_priv *pfwpriv); */ 546 547 unsigned char networktype_to_raid_ex(struct adapter *adapter, struct sta_info *psta); 548 549 void get_rate_set(struct adapter *padapter, unsigned char *pbssrate, int *bssrate_len); 550 void set_mcs_rate_by_mask(u8 *mcs_set, u32 mask); 551 void UpdateBrateTbl(struct adapter *padapter, u8 *mBratesOS); 552 void UpdateBrateTblForSoftAP(u8 *bssrateset, u32 bssratelen); 553 554 void Save_DM_Func_Flag(struct adapter *padapter); 555 void Restore_DM_Func_Flag(struct adapter *padapter); 556 void Switch_DM_Func(struct adapter *padapter, u32 mode, u8 enable); 557 558 void Set_MSR(struct adapter *padapter, u8 type); 559 560 u8 rtw_get_oper_ch(struct adapter *adapter); 561 void rtw_set_oper_ch(struct adapter *adapter, u8 ch); 562 u8 rtw_get_oper_bw(struct adapter *adapter); 563 void rtw_set_oper_bw(struct adapter *adapter, u8 bw); 564 u8 rtw_get_oper_choffset(struct adapter *adapter); 565 void rtw_set_oper_choffset(struct adapter *adapter, u8 offset); 566 u8 rtw_get_center_ch(u8 channel, u8 chnl_bw, u8 chnl_offset); 567 unsigned long rtw_get_on_cur_ch_time(struct adapter *adapter); 568 569 void set_channel_bwmode(struct adapter *padapter, unsigned char channel, unsigned char channel_offset, unsigned short bwmode); 570 void SelectChannel(struct adapter *padapter, unsigned char channel); 571 572 unsigned int decide_wait_for_beacon_timeout(unsigned int bcn_interval); 573 574 void read_cam(struct adapter *padapter , u8 entry, u8 *get_key); 575 576 /* modify HW only */ 577 void _write_cam(struct adapter *padapter, u8 entry, u16 ctrl, u8 *mac, u8 *key); 578 void _clear_cam_entry(struct adapter *padapter, u8 entry); 579 void write_cam_from_cache(struct adapter *adapter, u8 id); 580 581 /* modify both HW and cache */ 582 void write_cam(struct adapter *padapter, u8 id, u16 ctrl, u8 *mac, u8 *key); 583 void clear_cam_entry(struct adapter *padapter, u8 id); 584 585 /* modify cache only */ 586 void write_cam_cache(struct adapter *adapter, u8 id, u16 ctrl, u8 *mac, u8 *key); 587 void clear_cam_cache(struct adapter *adapter, u8 id); 588 589 void invalidate_cam_all(struct adapter *padapter); 590 591 592 int allocate_fw_sta_entry(struct adapter *padapter); 593 void flush_all_cam_entry(struct adapter *padapter); 594 595 void site_survey(struct adapter *padapter); 596 u8 collect_bss_info(struct adapter *padapter, union recv_frame *precv_frame, struct wlan_bssid_ex *bssid); 597 void update_network(struct wlan_bssid_ex *dst, struct wlan_bssid_ex *src, struct adapter *padapter, bool update_ie); 598 599 u8 *get_my_bssid(struct wlan_bssid_ex *pnetwork); 600 u16 get_beacon_interval(struct wlan_bssid_ex *bss); 601 602 int is_client_associated_to_ap(struct adapter *padapter); 603 int is_client_associated_to_ibss(struct adapter *padapter); 604 int is_IBSS_empty(struct adapter *padapter); 605 606 unsigned char check_assoc_AP(u8 *pframe, uint len); 607 608 int WMM_param_handler(struct adapter *padapter, struct ndis_80211_var_ie * pIE); 609 void WMMOnAssocRsp(struct adapter *padapter); 610 611 void HT_caps_handler(struct adapter *padapter, struct ndis_80211_var_ie * pIE); 612 void HT_info_handler(struct adapter *padapter, struct ndis_80211_var_ie * pIE); 613 void HTOnAssocRsp(struct adapter *padapter); 614 615 void ERP_IE_handler(struct adapter *padapter, struct ndis_80211_var_ie * pIE); 616 void VCS_update(struct adapter *padapter, struct sta_info *psta); 617 void update_ldpc_stbc_cap(struct sta_info *psta); 618 619 void update_beacon_info(struct adapter *padapter, u8 *pframe, uint len, struct sta_info *psta); 620 int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len); 621 void update_IOT_info(struct adapter *padapter); 622 void update_capinfo(struct adapter * Adapter, u16 updateCap); 623 void update_wireless_mode(struct adapter *padapter); 624 void update_sta_basic_rate(struct sta_info *psta, u8 wireless_mode); 625 int update_sta_support_rate(struct adapter *padapter, u8 *pvar_ie, uint var_ie_len, int cam_idx); 626 627 /* for sta/adhoc mode */ 628 void update_sta_info(struct adapter *padapter, struct sta_info *psta); 629 void Update_RA_Entry(struct adapter *padapter, struct sta_info *psta); 630 void set_sta_rate(struct adapter *padapter, struct sta_info *psta); 631 632 unsigned int receive_disconnect(struct adapter *padapter, unsigned char *MacAddr, unsigned short reason); 633 634 unsigned char get_highest_rate_idx(u32 mask); 635 int support_short_GI(struct adapter *padapter, struct HT_caps_element *pHT_caps, u8 bwmode); 636 unsigned int is_ap_in_tkip(struct adapter *padapter); 637 638 s16 rtw_camid_search(struct adapter *adapter, u8 *addr, s16 kid); 639 s16 rtw_camid_alloc(struct adapter *adapter, struct sta_info *sta, u8 kid); 640 void rtw_camid_free(struct adapter *adapter, u8 cam_id); 641 642 extern void rtw_alloc_macid(struct adapter *padapter, struct sta_info *psta); 643 extern void rtw_release_macid(struct adapter *padapter, struct sta_info *psta); 644 extern u8 rtw_search_max_mac_id(struct adapter *padapter); 645 646 void report_join_res(struct adapter *padapter, int res); 647 void report_survey_event(struct adapter *padapter, union recv_frame *precv_frame); 648 void report_surveydone_event(struct adapter *padapter); 649 void report_del_sta_event(struct adapter *padapter, unsigned char* MacAddr, unsigned short reason); 650 void report_add_sta_event(struct adapter *padapter, unsigned char* MacAddr, int cam_idx); 651 bool rtw_port_switch_chk(struct adapter *adapter); 652 void report_wmm_edca_update(struct adapter *padapter); 653 654 void beacon_timing_control(struct adapter *padapter); 655 u8 chk_bmc_sleepq_cmd(struct adapter *padapter); 656 extern u8 set_tx_beacon_cmd(struct adapter *padapter); 657 unsigned int setup_beacon_frame(struct adapter *padapter, unsigned char *beacon_frame); 658 void update_mgnt_tx_rate(struct adapter *padapter, u8 rate); 659 void update_mgntframe_attrib(struct adapter *padapter, struct pkt_attrib *pattrib); 660 void update_mgntframe_attrib_addr(struct adapter *padapter, struct xmit_frame *pmgntframe); 661 void dump_mgntframe(struct adapter *padapter, struct xmit_frame *pmgntframe); 662 s32 dump_mgntframe_and_wait(struct adapter *padapter, struct xmit_frame *pmgntframe, int timeout_ms); 663 s32 dump_mgntframe_and_wait_ack(struct adapter *padapter, struct xmit_frame *pmgntframe); 664 665 void issue_beacon(struct adapter *padapter, int timeout_ms); 666 void issue_probersp(struct adapter *padapter, unsigned char *da, u8 is_valid_p2p_probereq); 667 void issue_assocreq(struct adapter *padapter); 668 void issue_asocrsp(struct adapter *padapter, unsigned short status, struct sta_info *pstat, int pkt_type); 669 void issue_auth(struct adapter *padapter, struct sta_info *psta, unsigned short status); 670 void issue_probereq(struct adapter *padapter, struct ndis_802_11_ssid *pssid, u8 *da); 671 s32 issue_probereq_ex(struct adapter *padapter, struct ndis_802_11_ssid *pssid, u8 *da, u8 ch, bool append_wps, int try_cnt, int wait_ms); 672 int issue_nulldata(struct adapter *padapter, unsigned char *da, unsigned int power_mode, int try_cnt, int wait_ms); 673 s32 issue_nulldata_in_interrupt(struct adapter *padapter, u8 *da); 674 int issue_qos_nulldata(struct adapter *padapter, unsigned char *da, u16 tid, int try_cnt, int wait_ms); 675 int issue_deauth(struct adapter *padapter, unsigned char *da, unsigned short reason); 676 int issue_deauth_ex(struct adapter *padapter, u8 *da, unsigned short reason, int try_cnt, int wait_ms); 677 void issue_action_BA(struct adapter *padapter, unsigned char *raddr, unsigned char action, unsigned short status); 678 void issue_action_SA_Query(struct adapter *padapter, unsigned char *raddr, unsigned char action, unsigned short tid); 679 unsigned int send_delba(struct adapter *padapter, u8 initiator, u8 *addr); 680 unsigned int send_beacon(struct adapter *padapter); 681 682 void start_clnt_assoc(struct adapter *padapter); 683 void start_clnt_auth(struct adapter *padapter); 684 void start_clnt_join(struct adapter *padapter); 685 void start_create_ibss(struct adapter *padapter); 686 687 unsigned int OnAssocReq(struct adapter *padapter, union recv_frame *precv_frame); 688 unsigned int OnAssocRsp(struct adapter *padapter, union recv_frame *precv_frame); 689 unsigned int OnProbeReq(struct adapter *padapter, union recv_frame *precv_frame); 690 unsigned int OnProbeRsp(struct adapter *padapter, union recv_frame *precv_frame); 691 unsigned int DoReserved(struct adapter *padapter, union recv_frame *precv_frame); 692 unsigned int OnBeacon(struct adapter *padapter, union recv_frame *precv_frame); 693 unsigned int OnAtim(struct adapter *padapter, union recv_frame *precv_frame); 694 unsigned int OnDisassoc(struct adapter *padapter, union recv_frame *precv_frame); 695 unsigned int OnAuth(struct adapter *padapter, union recv_frame *precv_frame); 696 unsigned int OnAuthClient(struct adapter *padapter, union recv_frame *precv_frame); 697 unsigned int OnDeAuth(struct adapter *padapter, union recv_frame *precv_frame); 698 unsigned int OnAction(struct adapter *padapter, union recv_frame *precv_frame); 699 700 unsigned int on_action_spct(struct adapter *padapter, union recv_frame *precv_frame); 701 unsigned int OnAction_back(struct adapter *padapter, union recv_frame *precv_frame); 702 unsigned int on_action_public(struct adapter *padapter, union recv_frame *precv_frame); 703 unsigned int OnAction_ht(struct adapter *padapter, union recv_frame *precv_frame); 704 unsigned int OnAction_sa_query(struct adapter *padapter, union recv_frame *precv_frame); 705 706 void mlmeext_joinbss_event_callback(struct adapter *padapter, int join_res); 707 void mlmeext_sta_del_event_callback(struct adapter *padapter); 708 void mlmeext_sta_add_event_callback(struct adapter *padapter, struct sta_info *psta); 709 710 void linked_status_chk(struct adapter *padapter); 711 712 void _linked_info_dump(struct adapter *padapter); 713 714 void survey_timer_hdl (struct timer_list *t); 715 void link_timer_hdl (struct timer_list *t); 716 void addba_timer_hdl(struct timer_list *t); 717 void sa_query_timer_hdl(struct timer_list *t); 718 /* void reauth_timer_hdl(struct adapter *padapter); */ 719 /* void reassoc_timer_hdl(struct adapter *padapter); */ 720 721 #define set_survey_timer(mlmeext, ms) \ 722 do { \ 723 /*DBG_871X("%s set_survey_timer(%p, %d)\n", __func__, (mlmeext), (ms));*/ \ 724 _set_timer(&(mlmeext)->survey_timer, (ms)); \ 725 } while (0) 726 727 #define set_link_timer(mlmeext, ms) \ 728 do { \ 729 /*DBG_871X("%s set_link_timer(%p, %d)\n", __func__, (mlmeext), (ms));*/ \ 730 _set_timer(&(mlmeext)->link_timer, (ms)); \ 731 } while (0) 732 #define set_sa_query_timer(mlmeext, ms) \ 733 do { \ 734 DBG_871X("%s set_sa_query_timer(%p, %d)\n", __func__, (mlmeext), (ms)); \ 735 _set_timer(&(mlmeext)->sa_query_timer, (ms)); \ 736 } while (0) 737 extern int cckrates_included(unsigned char *rate, int ratelen); 738 extern int cckratesonly_included(unsigned char *rate, int ratelen); 739 740 extern void process_addba_req(struct adapter *padapter, u8 *paddba_req, u8 *addr); 741 742 extern void update_TSF(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len); 743 extern void correct_TSF(struct adapter *padapter, struct mlme_ext_priv *pmlmeext); 744 extern void adaptive_early_32k(struct mlme_ext_priv *pmlmeext, u8 *pframe, uint len); 745 extern u8 traffic_status_watchdog(struct adapter *padapter, u8 from_timer); 746 747 int rtw_chk_start_clnt_join(struct adapter *padapter, u8 *ch, u8 *bw, u8 *offset); 748 int rtw_get_ch_setting_union(struct adapter *adapter, u8 *ch, u8 *bw, u8 *offset); 749 750 struct cmd_hdl { 751 uint parmsize; 752 u8 (*h2cfuns)(struct adapter *padapter, u8 *pbuf); 753 }; 754 755 756 u8 read_macreg_hdl(struct adapter *padapter, u8 *pbuf); 757 u8 write_macreg_hdl(struct adapter *padapter, u8 *pbuf); 758 u8 read_bbreg_hdl(struct adapter *padapter, u8 *pbuf); 759 u8 write_bbreg_hdl(struct adapter *padapter, u8 *pbuf); 760 u8 read_rfreg_hdl(struct adapter *padapter, u8 *pbuf); 761 u8 write_rfreg_hdl(struct adapter *padapter, u8 *pbuf); 762 763 764 u8 NULL_hdl(struct adapter *padapter, u8 *pbuf); 765 u8 join_cmd_hdl(struct adapter *padapter, u8 *pbuf); 766 u8 disconnect_hdl(struct adapter *padapter, u8 *pbuf); 767 u8 createbss_hdl(struct adapter *padapter, u8 *pbuf); 768 u8 setopmode_hdl(struct adapter *padapter, u8 *pbuf); 769 u8 sitesurvey_cmd_hdl(struct adapter *padapter, u8 *pbuf); 770 u8 setauth_hdl(struct adapter *padapter, u8 *pbuf); 771 u8 setkey_hdl(struct adapter *padapter, u8 *pbuf); 772 u8 set_stakey_hdl(struct adapter *padapter, u8 *pbuf); 773 u8 set_assocsta_hdl(struct adapter *padapter, u8 *pbuf); 774 u8 del_assocsta_hdl(struct adapter *padapter, u8 *pbuf); 775 u8 add_ba_hdl(struct adapter *padapter, unsigned char *pbuf); 776 777 u8 mlme_evt_hdl(struct adapter *padapter, unsigned char *pbuf); 778 u8 h2c_msg_hdl(struct adapter *padapter, unsigned char *pbuf); 779 u8 chk_bmc_sleepq_hdl(struct adapter *padapter, unsigned char *pbuf); 780 u8 tx_beacon_hdl(struct adapter *padapter, unsigned char *pbuf); 781 u8 set_ch_hdl(struct adapter *padapter, u8 *pbuf); 782 u8 set_chplan_hdl(struct adapter *padapter, unsigned char *pbuf); 783 u8 led_blink_hdl(struct adapter *padapter, unsigned char *pbuf); 784 u8 set_csa_hdl(struct adapter *padapter, unsigned char *pbuf); /* Kurt: Handling DFS channel switch announcement ie. */ 785 u8 tdls_hdl(struct adapter *padapter, unsigned char *pbuf); 786 u8 run_in_thread_hdl(struct adapter *padapter, u8 *pbuf); 787 788 789 #define GEN_DRV_CMD_HANDLER(size, cmd) {size, &cmd ## _hdl}, 790 #define GEN_MLME_EXT_HANDLER(size, cmd) {size, cmd}, 791 792 struct C2HEvent_Header 793 { 794 795 #ifdef __LITTLE_ENDIAN 796 797 unsigned int len:16; 798 unsigned int ID:8; 799 unsigned int seq:8; 800 #else 801 unsigned int seq:8; 802 unsigned int ID:8; 803 unsigned int len:16; 804 #endif 805 unsigned int rsvd; 806 }; 807 808 void rtw_dummy_event_callback(struct adapter *adapter , u8 *pbuf); 809 void rtw_fwdbg_event_callback(struct adapter *adapter , u8 *pbuf); 810 811 enum rtw_c2h_event 812 { 813 GEN_EVT_CODE(_Read_MACREG) = 0, /*0*/ 814 GEN_EVT_CODE(_Read_BBREG), 815 GEN_EVT_CODE(_Read_RFREG), 816 GEN_EVT_CODE(_Read_EEPROM), 817 GEN_EVT_CODE(_Read_EFUSE), 818 GEN_EVT_CODE(_Read_CAM), /*5*/ 819 GEN_EVT_CODE(_Get_BasicRate), 820 GEN_EVT_CODE(_Get_DataRate), 821 GEN_EVT_CODE(_Survey), /*8*/ 822 GEN_EVT_CODE(_SurveyDone), /*9*/ 823 824 GEN_EVT_CODE(_JoinBss) , /*10*/ 825 GEN_EVT_CODE(_AddSTA), 826 GEN_EVT_CODE(_DelSTA), 827 GEN_EVT_CODE(_AtimDone) , 828 GEN_EVT_CODE(_TX_Report), 829 GEN_EVT_CODE(_CCX_Report), /*15*/ 830 GEN_EVT_CODE(_DTM_Report), 831 GEN_EVT_CODE(_TX_Rate_Statistics), 832 GEN_EVT_CODE(_C2HLBK), 833 GEN_EVT_CODE(_FWDBG), 834 GEN_EVT_CODE(_C2HFEEDBACK), /*20*/ 835 GEN_EVT_CODE(_ADDBA), 836 GEN_EVT_CODE(_C2HBCN), 837 GEN_EVT_CODE(_ReportPwrState), /* filen: only for PCIE, USB */ 838 GEN_EVT_CODE(_CloseRF), /* filen: only for PCIE, work around ASPM */ 839 GEN_EVT_CODE(_WMM), /*25*/ 840 MAX_C2HEVT 841 }; 842 843 844 #ifdef _RTW_MLME_EXT_C_ 845 846 static struct fwevent wlanevents[] = 847 { 848 {0, rtw_dummy_event_callback}, /*0*/ 849 {0, NULL}, 850 {0, NULL}, 851 {0, NULL}, 852 {0, NULL}, 853 {0, NULL}, 854 {0, NULL}, 855 {0, NULL}, 856 {0, &rtw_survey_event_callback}, /*8*/ 857 {sizeof (struct surveydone_event), &rtw_surveydone_event_callback}, /*9*/ 858 859 {0, &rtw_joinbss_event_callback}, /*10*/ 860 {sizeof(struct stassoc_event), &rtw_stassoc_event_callback}, 861 {sizeof(struct stadel_event), &rtw_stadel_event_callback}, 862 {0, &rtw_atimdone_event_callback}, 863 {0, rtw_dummy_event_callback}, 864 {0, NULL}, /*15*/ 865 {0, NULL}, 866 {0, NULL}, 867 {0, NULL}, 868 {0, rtw_fwdbg_event_callback}, 869 {0, NULL}, /*20*/ 870 {0, NULL}, 871 {0, NULL}, 872 {0, &rtw_cpwm_event_callback}, 873 {0, NULL}, 874 {0, &rtw_wmm_event_callback}, 875 876 }; 877 878 #endif/* _RTL8192C_CMD_C_ */ 879 880 #endif 881