| .. | .. |
|---|
| 1 | | -/****************************************************************************** |
|---|
| 2 | | - * |
|---|
| 3 | | - * Copyright(c) 2009-2010 Realtek Corporation. |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 6 | | - * under the terms of version 2 of the GNU General Public License as |
|---|
| 7 | | - * published by the Free Software Foundation. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 12 | | - * more details. |
|---|
| 13 | | - * |
|---|
| 14 | | - * The full GNU General Public License is included in this distribution in the |
|---|
| 15 | | - * file called LICENSE. |
|---|
| 16 | | - * |
|---|
| 17 | | - * Contact Information: |
|---|
| 18 | | - * wlanfae <wlanfae@realtek.com> |
|---|
| 19 | | - * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, |
|---|
| 20 | | - * Hsinchu 300, Taiwan. |
|---|
| 21 | | - * |
|---|
| 22 | | - * Larry Finger <Larry.Finger@lwfinger.net> |
|---|
| 23 | | - * |
|---|
| 24 | | - *****************************************************************************/ |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 2 | +/* Copyright(c) 2009-2010 Realtek Corporation.*/ |
|---|
| 25 | 3 | |
|---|
| 26 | 4 | #include "../wifi.h" |
|---|
| 27 | 5 | #include "../pci.h" |
|---|
| .. | .. |
|---|
| 61 | 39 | u32 pagenums, remainsize; |
|---|
| 62 | 40 | u32 page, offset; |
|---|
| 63 | 41 | |
|---|
| 64 | | - RT_TRACE(rtlpriv, COMP_FW, DBG_LOUD, "FW size is %d bytes,\n", size); |
|---|
| 42 | + rtl_dbg(rtlpriv, COMP_FW, DBG_LOUD, "FW size is %d bytes,\n", size); |
|---|
| 65 | 43 | |
|---|
| 66 | 44 | rtl_fill_dummy(bufferptr, &size); |
|---|
| 67 | 45 | |
|---|
| .. | .. |
|---|
| 97 | 75 | (!(value32 & FWDL_CHKSUM_RPT))); |
|---|
| 98 | 76 | |
|---|
| 99 | 77 | if (counter >= FW_8821AE_POLLING_TIMEOUT_COUNT) { |
|---|
| 100 | | - RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD, |
|---|
| 101 | | - "chksum report fail! REG_MCUFWDL:0x%08x .\n", |
|---|
| 102 | | - value32); |
|---|
| 78 | + rtl_dbg(rtlpriv, COMP_ERR, DBG_LOUD, |
|---|
| 79 | + "chksum report fail! REG_MCUFWDL:0x%08x .\n", |
|---|
| 80 | + value32); |
|---|
| 103 | 81 | goto exit; |
|---|
| 104 | 82 | } |
|---|
| 105 | 83 | value32 = rtl_read_dword(rtlpriv, REG_MCUFWDL); |
|---|
| .. | .. |
|---|
| 176 | 154 | fwsize = rtlhal->fwsize; |
|---|
| 177 | 155 | } |
|---|
| 178 | 156 | |
|---|
| 179 | | - RT_TRACE(rtlpriv, COMP_FW, DBG_DMESG, |
|---|
| 180 | | - "%s Firmware SIZE %d\n", |
|---|
| 181 | | - buse_wake_on_wlan_fw ? "Wowlan" : "Normal", fwsize); |
|---|
| 157 | + rtl_dbg(rtlpriv, COMP_FW, DBG_DMESG, |
|---|
| 158 | + "%s Firmware SIZE %d\n", |
|---|
| 159 | + buse_wake_on_wlan_fw ? "Wowlan" : "Normal", fwsize); |
|---|
| 182 | 160 | |
|---|
| 183 | 161 | if (IS_FW_HEADER_EXIST_8812(pfwheader) || |
|---|
| 184 | 162 | IS_FW_HEADER_EXIST_8821(pfwheader)) { |
|---|
| 185 | | - RT_TRACE(rtlpriv, COMP_FW, DBG_DMESG, |
|---|
| 186 | | - "Firmware Version(%d), Signature(%#x)\n", |
|---|
| 187 | | - pfwheader->version, pfwheader->signature); |
|---|
| 163 | + rtl_dbg(rtlpriv, COMP_FW, DBG_DMESG, |
|---|
| 164 | + "Firmware Version(%d), Signature(%#x)\n", |
|---|
| 165 | + pfwheader->version, pfwheader->signature); |
|---|
| 188 | 166 | |
|---|
| 189 | 167 | pfwdata = pfwdata + sizeof(struct rtlwifi_firmware_header); |
|---|
| 190 | 168 | fwsize = fwsize - sizeof(struct rtlwifi_firmware_header); |
|---|
| .. | .. |
|---|
| 202 | 180 | |
|---|
| 203 | 181 | err = _rtl8821ae_fw_free_to_go(hw); |
|---|
| 204 | 182 | if (err) { |
|---|
| 205 | | - RT_TRACE(rtlpriv, COMP_ERR, DBG_DMESG, |
|---|
| 206 | | - "Firmware is not ready to run!\n"); |
|---|
| 183 | + rtl_dbg(rtlpriv, COMP_ERR, DBG_DMESG, |
|---|
| 184 | + "Firmware is not ready to run!\n"); |
|---|
| 207 | 185 | } else { |
|---|
| 208 | | - RT_TRACE(rtlpriv, COMP_FW, DBG_LOUD, |
|---|
| 209 | | - "Firmware is ready to run!\n"); |
|---|
| 186 | + rtl_dbg(rtlpriv, COMP_FW, DBG_LOUD, |
|---|
| 187 | + "Firmware is ready to run!\n"); |
|---|
| 210 | 188 | } |
|---|
| 211 | 189 | |
|---|
| 212 | 190 | return 0; |
|---|
| .. | .. |
|---|
| 221 | 199 | struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); |
|---|
| 222 | 200 | /* 1. Before WoWLAN or After WOWLAN we need to re-download Fw. */ |
|---|
| 223 | 201 | if (rtl8821ae_download_fw(hw, used_wowlan_fw)) { |
|---|
| 224 | | - RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, |
|---|
| 225 | | - "Re-Download Firmware failed!!\n"); |
|---|
| 202 | + rtl_dbg(rtlpriv, COMP_INIT, DBG_DMESG, |
|---|
| 203 | + "Re-Download Firmware failed!!\n"); |
|---|
| 226 | 204 | rtlhal->fw_ready = false; |
|---|
| 227 | 205 | return; |
|---|
| 228 | 206 | } |
|---|
| 229 | | - RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG, |
|---|
| 230 | | - "Re-Download Firmware Success !!\n"); |
|---|
| 207 | + rtl_dbg(rtlpriv, COMP_INIT, DBG_DMESG, |
|---|
| 208 | + "Re-Download Firmware Success !!\n"); |
|---|
| 231 | 209 | rtlhal->fw_ready = true; |
|---|
| 232 | 210 | |
|---|
| 233 | 211 | /* 2. Re-Init the variables about Fw related setting. */ |
|---|
| .. | .. |
|---|
| 271 | 249 | unsigned long flag = 0; |
|---|
| 272 | 250 | u8 idx = 0; |
|---|
| 273 | 251 | |
|---|
| 274 | | - RT_TRACE(rtlpriv, COMP_CMD, DBG_LOUD, "come in\n"); |
|---|
| 252 | + rtl_dbg(rtlpriv, COMP_CMD, DBG_LOUD, "come in\n"); |
|---|
| 275 | 253 | |
|---|
| 276 | 254 | while (true) { |
|---|
| 277 | 255 | spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); |
|---|
| 278 | 256 | if (rtlhal->h2c_setinprogress) { |
|---|
| 279 | | - RT_TRACE(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 280 | | - "H2C set in progress! Wait to set..element_id(%d).\n", |
|---|
| 281 | | - element_id); |
|---|
| 257 | + rtl_dbg(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 258 | + "H2C set in progress! Wait to set..element_id(%d).\n", |
|---|
| 259 | + element_id); |
|---|
| 282 | 260 | |
|---|
| 283 | 261 | while (rtlhal->h2c_setinprogress) { |
|---|
| 284 | 262 | spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, |
|---|
| 285 | 263 | flag); |
|---|
| 286 | 264 | h2c_waitcounter++; |
|---|
| 287 | | - RT_TRACE(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 288 | | - "Wait 100 us (%d times)...\n", |
|---|
| 289 | | - h2c_waitcounter); |
|---|
| 265 | + rtl_dbg(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 266 | + "Wait 100 us (%d times)...\n", |
|---|
| 267 | + h2c_waitcounter); |
|---|
| 290 | 268 | udelay(100); |
|---|
| 291 | 269 | |
|---|
| 292 | 270 | if (h2c_waitcounter > 1000) |
|---|
| .. | .. |
|---|
| 322 | 300 | box_extreg = REG_HMEBOX_EXT_3; |
|---|
| 323 | 301 | break; |
|---|
| 324 | 302 | default: |
|---|
| 325 | | - RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD, |
|---|
| 326 | | - "switch case %#x not processed\n", boxnum); |
|---|
| 303 | + rtl_dbg(rtlpriv, COMP_ERR, DBG_LOUD, |
|---|
| 304 | + "switch case %#x not processed\n", boxnum); |
|---|
| 327 | 305 | break; |
|---|
| 328 | 306 | } |
|---|
| 329 | 307 | |
|---|
| .. | .. |
|---|
| 346 | 324 | /*wait until Fw read*/ |
|---|
| 347 | 325 | wait_h2c_limmit--; |
|---|
| 348 | 326 | if (wait_h2c_limmit == 0) { |
|---|
| 349 | | - RT_TRACE(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 350 | | - "Waiting too long for FW read clear HMEBox(%d)!\n", |
|---|
| 351 | | - boxnum); |
|---|
| 327 | + rtl_dbg(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 328 | + "Waiting too long for FW read clear HMEBox(%d)!\n", |
|---|
| 329 | + boxnum); |
|---|
| 352 | 330 | break; |
|---|
| 353 | 331 | } |
|---|
| 354 | 332 | |
|---|
| .. | .. |
|---|
| 357 | 335 | isfw_read = |
|---|
| 358 | 336 | _rtl8821ae_check_fw_read_last_h2c(hw, boxnum); |
|---|
| 359 | 337 | u1b_tmp = rtl_read_byte(rtlpriv, 0x130); |
|---|
| 360 | | - RT_TRACE(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 361 | | - "Waiting for FW read clear HMEBox(%d)!!! 0x130 = %2x\n", |
|---|
| 362 | | - boxnum, u1b_tmp); |
|---|
| 338 | + rtl_dbg(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 339 | + "Waiting for FW read clear HMEBox(%d)!!! 0x130 = %2x\n", |
|---|
| 340 | + boxnum, u1b_tmp); |
|---|
| 363 | 341 | } |
|---|
| 364 | 342 | } |
|---|
| 365 | 343 | |
|---|
| 366 | 344 | if (!isfw_read) { |
|---|
| 367 | | - RT_TRACE(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 368 | | - "Write H2C register BOX[%d] fail!!!!! Fw do not read.\n", |
|---|
| 369 | | - boxnum); |
|---|
| 345 | + rtl_dbg(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 346 | + "Write H2C register BOX[%d] fail!!!!! Fw do not read.\n", |
|---|
| 347 | + boxnum); |
|---|
| 370 | 348 | break; |
|---|
| 371 | 349 | } |
|---|
| 372 | 350 | |
|---|
| 373 | 351 | memset(boxcontent, 0, sizeof(boxcontent)); |
|---|
| 374 | 352 | memset(boxextcontent, 0, sizeof(boxextcontent)); |
|---|
| 375 | 353 | boxcontent[0] = element_id; |
|---|
| 376 | | - RT_TRACE(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 377 | | - "Write element_id box_reg(%4x) = %2x\n", |
|---|
| 378 | | - box_reg, element_id); |
|---|
| 354 | + rtl_dbg(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 355 | + "Write element_id box_reg(%4x) = %2x\n", |
|---|
| 356 | + box_reg, element_id); |
|---|
| 379 | 357 | |
|---|
| 380 | 358 | switch (cmd_len) { |
|---|
| 381 | 359 | case 1: |
|---|
| .. | .. |
|---|
| 411 | 389 | } |
|---|
| 412 | 390 | break; |
|---|
| 413 | 391 | default: |
|---|
| 414 | | - RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD, |
|---|
| 415 | | - "switch case %#x not processed\n", cmd_len); |
|---|
| 392 | + rtl_dbg(rtlpriv, COMP_ERR, DBG_LOUD, |
|---|
| 393 | + "switch case %#x not processed\n", cmd_len); |
|---|
| 416 | 394 | break; |
|---|
| 417 | 395 | } |
|---|
| 418 | 396 | |
|---|
| .. | .. |
|---|
| 422 | 400 | if (rtlhal->last_hmeboxnum == 4) |
|---|
| 423 | 401 | rtlhal->last_hmeboxnum = 0; |
|---|
| 424 | 402 | |
|---|
| 425 | | - RT_TRACE(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 426 | | - "pHalData->last_hmeboxnum = %d\n", |
|---|
| 427 | | - rtlhal->last_hmeboxnum); |
|---|
| 403 | + rtl_dbg(rtlpriv, COMP_CMD, DBG_LOUD, |
|---|
| 404 | + "pHalData->last_hmeboxnum = %d\n", |
|---|
| 405 | + rtlhal->last_hmeboxnum); |
|---|
| 428 | 406 | } |
|---|
| 429 | 407 | |
|---|
| 430 | 408 | spin_lock_irqsave(&rtlpriv->locks.h2c_lock, flag); |
|---|
| 431 | 409 | rtlhal->h2c_setinprogress = false; |
|---|
| 432 | 410 | spin_unlock_irqrestore(&rtlpriv->locks.h2c_lock, flag); |
|---|
| 433 | 411 | |
|---|
| 434 | | - RT_TRACE(rtlpriv, COMP_CMD, DBG_LOUD, "go out\n"); |
|---|
| 412 | + rtl_dbg(rtlpriv, COMP_CMD, DBG_LOUD, "go out\n"); |
|---|
| 435 | 413 | } |
|---|
| 436 | 414 | |
|---|
| 437 | 415 | void rtl8821ae_fill_h2c_cmd(struct ieee80211_hw *hw, |
|---|
| .. | .. |
|---|
| 480 | 458 | u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN+1); |
|---|
| 481 | 459 | rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN+1, (u1b_tmp | BIT(2))); |
|---|
| 482 | 460 | |
|---|
| 483 | | - RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, |
|---|
| 484 | | - "_8051Reset8812ae(): 8051 reset success .\n"); |
|---|
| 461 | + rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD, |
|---|
| 462 | + "_8051Reset8812ae(): 8051 reset success .\n"); |
|---|
| 485 | 463 | } |
|---|
| 486 | 464 | |
|---|
| 487 | 465 | void rtl8821ae_set_fw_pwrmode_cmd(struct ieee80211_hw *hw, u8 mode) |
|---|
| .. | .. |
|---|
| 500 | 478 | if (bt_ctrl_lps) |
|---|
| 501 | 479 | mode = (bt_lps_on ? FW_PS_MIN_MODE : FW_PS_ACTIVE_MODE); |
|---|
| 502 | 480 | |
|---|
| 503 | | - RT_TRACE(rtlpriv, COMP_POWER, DBG_DMESG, "FW LPS mode = %d (coex:%d)\n", |
|---|
| 504 | | - mode, bt_ctrl_lps); |
|---|
| 481 | + rtl_dbg(rtlpriv, COMP_POWER, DBG_DMESG, "FW LPS mode = %d (coex:%d)\n", |
|---|
| 482 | + mode, bt_ctrl_lps); |
|---|
| 505 | 483 | |
|---|
| 506 | 484 | switch (mode) { |
|---|
| 507 | 485 | case FW_PS_MIN_MODE: |
|---|
| .. | .. |
|---|
| 612 | 590 | struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); |
|---|
| 613 | 591 | u8 fw_wowlan_info[H2C_8821AE_WOWLAN_LENGTH] = {0}; |
|---|
| 614 | 592 | |
|---|
| 615 | | - RT_TRACE(rtlpriv, COMP_POWER, DBG_LOUD, "enable(%d)\n", func_en); |
|---|
| 593 | + rtl_dbg(rtlpriv, COMP_POWER, DBG_LOUD, "enable(%d)\n", func_en); |
|---|
| 616 | 594 | |
|---|
| 617 | 595 | SET_8812_H2CCMD_WOWLAN_FUNC_ENABLE(fw_wowlan_info, |
|---|
| 618 | 596 | (func_en ? true : false)); |
|---|
| .. | .. |
|---|
| 646 | 624 | struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); |
|---|
| 647 | 625 | u8 remote_wake_ctrl_parm[H2C_8821AE_REMOTE_WAKE_CTRL_LEN] = {0}; |
|---|
| 648 | 626 | |
|---|
| 649 | | - RT_TRACE(rtlpriv, COMP_POWER, DBG_LOUD, |
|---|
| 650 | | - "enable=%d, ARP offload=%d, GTK offload=%d\n", |
|---|
| 651 | | - enable, ppsc->arp_offload_enable, ppsc->gtk_offload_enable); |
|---|
| 627 | + rtl_dbg(rtlpriv, COMP_POWER, DBG_LOUD, |
|---|
| 628 | + "enable=%d, ARP offload=%d, GTK offload=%d\n", |
|---|
| 629 | + enable, ppsc->arp_offload_enable, ppsc->gtk_offload_enable); |
|---|
| 652 | 630 | |
|---|
| 653 | 631 | SET_8812_H2CCMD_REMOTE_WAKECTRL_ENABLE(remote_wake_ctrl_parm, enable); |
|---|
| 654 | 632 | SET_8812_H2CCMD_REMOTE_WAKE_CTRL_ARP_OFFLOAD_EN(remote_wake_ctrl_parm, |
|---|
| .. | .. |
|---|
| 673 | 651 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| 674 | 652 | u8 keep_alive_info[H2C_8821AE_KEEP_ALIVE_CTRL_LENGTH] = {0}; |
|---|
| 675 | 653 | |
|---|
| 676 | | - RT_TRACE(rtlpriv, COMP_POWER, DBG_LOUD, "Enable(%d)\n", func_en); |
|---|
| 654 | + rtl_dbg(rtlpriv, COMP_POWER, DBG_LOUD, "Enable(%d)\n", func_en); |
|---|
| 677 | 655 | |
|---|
| 678 | 656 | SET_8812_H2CCMD_KEEP_ALIVE_ENABLE(keep_alive_info, func_en); |
|---|
| 679 | 657 | /* 1: the period is controled by driver, 0: by Fw default */ |
|---|
| .. | .. |
|---|
| 712 | 690 | struct rtl_security *sec = &rtlpriv->sec; |
|---|
| 713 | 691 | u8 remote_wakeup_sec_info[H2C_8821AE_AOAC_GLOBAL_INFO_LEN] = {0}; |
|---|
| 714 | 692 | |
|---|
| 715 | | - RT_TRACE(rtlpriv, COMP_POWER, DBG_LOUD, |
|---|
| 716 | | - "PairwiseEncAlgorithm=%d, GroupEncAlgorithm=%d\n", |
|---|
| 717 | | - sec->pairwise_enc_algorithm, sec->group_enc_algorithm); |
|---|
| 693 | + rtl_dbg(rtlpriv, COMP_POWER, DBG_LOUD, |
|---|
| 694 | + "PairwiseEncAlgorithm=%d, GroupEncAlgorithm=%d\n", |
|---|
| 695 | + sec->pairwise_enc_algorithm, sec->group_enc_algorithm); |
|---|
| 718 | 696 | |
|---|
| 719 | 697 | SET_8812_H2CCMD_AOAC_GLOBAL_INFO_PAIRWISE_ENC_ALG( |
|---|
| 720 | 698 | remote_wakeup_sec_info, |
|---|
| .. | .. |
|---|
| 844 | 822 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 845 | 823 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 846 | 824 | /* page 3: qos null data */ |
|---|
| 847 | | - 0xC8, 0x01, 0x00, 0x00, 0x84, 0xC9, 0xB2, 0xA7, |
|---|
| 848 | | - 0xB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 849 | | - 0x84, 0xC9, 0xB2, 0xA7, 0xB3, 0x6E, 0x00, 0x00, |
|---|
| 825 | + 0xC8, 0x01, 0x00, 0x00, 0x84, 0xC9, 0XB2, 0xA7, |
|---|
| 826 | + 0XB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 827 | + 0x84, 0xC9, 0XB2, 0xA7, 0XB3, 0x6E, 0x00, 0x00, |
|---|
| 850 | 828 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 851 | 829 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 852 | 830 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| .. | .. |
|---|
| 877 | 855 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 878 | 856 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 879 | 857 | /* page 4: BT qos null data */ |
|---|
| 880 | | - 0xC8, 0x01, 0x00, 0x00, 0x84, 0xC9, 0xB2, 0xA7, |
|---|
| 881 | | - 0xB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 882 | | - 0x84, 0xC9, 0xB2, 0xA7, 0xB3, 0x6E, 0x00, 0x00, |
|---|
| 858 | + 0xC8, 0x01, 0x00, 0x00, 0x84, 0xC9, 0XB2, 0xA7, |
|---|
| 859 | + 0XB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 860 | + 0x84, 0xC9, 0XB2, 0xA7, 0XB3, 0x6E, 0x00, 0x00, |
|---|
| 883 | 861 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 884 | 862 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 885 | 863 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| .. | .. |
|---|
| 911 | 889 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 912 | 890 | /* page 5~7 is for wowlan */ |
|---|
| 913 | 891 | /* page 5: ARP resp */ |
|---|
| 914 | | - 0x08, 0x01, 0x00, 0x00, 0x84, 0xC9, 0xB2, 0xA7, |
|---|
| 915 | | - 0xB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 916 | | - 0x84, 0xC9, 0xB2, 0xA7, 0xB3, 0x6E, 0x00, 0x00, |
|---|
| 892 | + 0x08, 0x01, 0x00, 0x00, 0x84, 0xC9, 0XB2, 0xA7, |
|---|
| 893 | + 0XB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 894 | + 0x84, 0xC9, 0XB2, 0xA7, 0XB3, 0x6E, 0x00, 0x00, |
|---|
| 917 | 895 | 0xAA, 0xAA, 0x03, 0x00, 0x00, 0x00, 0x08, 0x06, |
|---|
| 918 | 896 | 0x00, 0x01, 0x08, 0x00, 0x06, 0x04, 0x00, 0x02, |
|---|
| 919 | 897 | 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, 0x00, 0x00, |
|---|
| .. | .. |
|---|
| 1015 | 993 | /* page 0: beacon */ |
|---|
| 1016 | 994 | 0x80, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0xFF, 0xFF, |
|---|
| 1017 | 995 | 0xFF, 0xFF, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 1018 | | - 0x84, 0xC9, 0xB2, 0xA7, 0xB3, 0x6E, 0x60, 0x00, |
|---|
| 996 | + 0x84, 0xC9, 0XB2, 0xA7, 0XB3, 0x6E, 0x60, 0x00, |
|---|
| 1019 | 997 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1020 | 998 | 0x64, 0x00, 0x20, 0x04, 0x00, 0x03, 0x32, 0x31, |
|---|
| 1021 | 999 | 0x35, 0x01, 0x08, 0x82, 0x84, 0x8B, 0x96, 0x0C, |
|---|
| .. | .. |
|---|
| 1078 | 1056 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1079 | 1057 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1080 | 1058 | /* page 1: ps-poll */ |
|---|
| 1081 | | - 0xA4, 0x10, 0x09, 0xC0, 0x84, 0xC9, 0xB2, 0xA7, |
|---|
| 1082 | | - 0xB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 1059 | + 0xA4, 0x10, 0x09, 0xC0, 0x84, 0xC9, 0XB2, 0xA7, |
|---|
| 1060 | + 0XB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 1083 | 1061 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1084 | 1062 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1085 | 1063 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| .. | .. |
|---|
| 1143 | 1121 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1144 | 1122 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1145 | 1123 | /* page 2: null data */ |
|---|
| 1146 | | - 0x48, 0x01, 0x00, 0x00, 0x84, 0xC9, 0xB2, 0xA7, |
|---|
| 1147 | | - 0xB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 1148 | | - 0x84, 0xC9, 0xB2, 0xA7, 0xB3, 0x6E, 0x00, 0x00, |
|---|
| 1124 | + 0x48, 0x01, 0x00, 0x00, 0x84, 0xC9, 0XB2, 0xA7, |
|---|
| 1125 | + 0XB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 1126 | + 0x84, 0xC9, 0XB2, 0xA7, 0XB3, 0x6E, 0x00, 0x00, |
|---|
| 1149 | 1127 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1150 | 1128 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1151 | 1129 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| .. | .. |
|---|
| 1208 | 1186 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1209 | 1187 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1210 | 1188 | /* page 3: Qos null data */ |
|---|
| 1211 | | - 0xC8, 0x01, 0x00, 0x00, 0x84, 0xC9, 0xB2, 0xA7, |
|---|
| 1212 | | - 0xB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 1213 | | - 0x84, 0xC9, 0xB2, 0xA7, 0xB3, 0x6E, 0x00, 0x00, |
|---|
| 1189 | + 0xC8, 0x01, 0x00, 0x00, 0x84, 0xC9, 0XB2, 0xA7, |
|---|
| 1190 | + 0XB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 1191 | + 0x84, 0xC9, 0XB2, 0xA7, 0XB3, 0x6E, 0x00, 0x00, |
|---|
| 1214 | 1192 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1215 | 1193 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1216 | 1194 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| .. | .. |
|---|
| 1273 | 1251 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1274 | 1252 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1275 | 1253 | /* page 4: BT Qos null data */ |
|---|
| 1276 | | - 0xC8, 0x01, 0x00, 0x00, 0x84, 0xC9, 0xB2, 0xA7, |
|---|
| 1277 | | - 0xB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 1278 | | - 0x84, 0xC9, 0xB2, 0xA7, 0xB3, 0x6E, 0x00, 0x00, |
|---|
| 1254 | + 0xC8, 0x01, 0x00, 0x00, 0x84, 0xC9, 0XB2, 0xA7, |
|---|
| 1255 | + 0XB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 1256 | + 0x84, 0xC9, 0XB2, 0xA7, 0XB3, 0x6E, 0x00, 0x00, |
|---|
| 1279 | 1257 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1280 | 1258 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1281 | 1259 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| .. | .. |
|---|
| 1339 | 1317 | 0x00, 0x80, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, |
|---|
| 1340 | 1318 | /* page 5~7 is for wowlan */ |
|---|
| 1341 | 1319 | /* page 5: ARP resp */ |
|---|
| 1342 | | - 0x08, 0x01, 0x00, 0x00, 0x84, 0xC9, 0xB2, 0xA7, |
|---|
| 1343 | | - 0xB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 1344 | | - 0x84, 0xC9, 0xB2, 0xA7, 0xB3, 0x6E, 0x00, 0x00, |
|---|
| 1320 | + 0x08, 0x01, 0x00, 0x00, 0x84, 0xC9, 0XB2, 0xA7, |
|---|
| 1321 | + 0XB3, 0x6E, 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, |
|---|
| 1322 | + 0x84, 0xC9, 0XB2, 0xA7, 0XB3, 0x6E, 0x00, 0x00, |
|---|
| 1345 | 1323 | 0xAA, 0xAA, 0x03, 0x00, 0x00, 0x00, 0x08, 0x06, |
|---|
| 1346 | 1324 | 0x00, 0x01, 0x08, 0x00, 0x06, 0x04, 0x00, 0x02, |
|---|
| 1347 | 1325 | 0x00, 0xE0, 0x4C, 0x02, 0x51, 0x02, 0x00, 0x00, |
|---|
| .. | .. |
|---|
| 1543 | 1521 | struct sk_buff *skb = NULL; |
|---|
| 1544 | 1522 | u32 totalpacketlen; |
|---|
| 1545 | 1523 | bool rtstatus; |
|---|
| 1546 | | - u8 u1RsvdPageLoc[5] = { 0 }; |
|---|
| 1547 | | - u8 u1RsvdPageLoc2[7] = { 0 }; |
|---|
| 1524 | + u8 u1rsvdpageloc[5] = { 0 }; |
|---|
| 1525 | + u8 u1rsvdpageloc2[7] = { 0 }; |
|---|
| 1548 | 1526 | bool b_dlok = false; |
|---|
| 1549 | 1527 | u8 *beacon; |
|---|
| 1550 | 1528 | u8 *p_pspoll; |
|---|
| .. | .. |
|---|
| 1574 | 1552 | SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); |
|---|
| 1575 | 1553 | SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); |
|---|
| 1576 | 1554 | |
|---|
| 1577 | | - SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(u1RsvdPageLoc, PSPOLL_PG); |
|---|
| 1555 | + SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(u1rsvdpageloc, PSPOLL_PG); |
|---|
| 1578 | 1556 | |
|---|
| 1579 | 1557 | /*-------------------------------------------------------- |
|---|
| 1580 | 1558 | * (3) null data |
|---|
| .. | .. |
|---|
| 1585 | 1563 | SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); |
|---|
| 1586 | 1564 | SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); |
|---|
| 1587 | 1565 | |
|---|
| 1588 | | - SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(u1RsvdPageLoc, NULL_PG); |
|---|
| 1566 | + SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(u1rsvdpageloc, NULL_PG); |
|---|
| 1589 | 1567 | |
|---|
| 1590 | 1568 | /*--------------------------------------------------------- |
|---|
| 1591 | 1569 | * (4) Qos null data |
|---|
| .. | .. |
|---|
| 1596 | 1574 | SET_80211_HDR_ADDRESS2(qosnull, mac->mac_addr); |
|---|
| 1597 | 1575 | SET_80211_HDR_ADDRESS3(qosnull, mac->bssid); |
|---|
| 1598 | 1576 | |
|---|
| 1599 | | - SET_H2CCMD_RSVDPAGE_LOC_QOS_NULL_DATA(u1RsvdPageLoc, QOSNULL_PG); |
|---|
| 1577 | + SET_H2CCMD_RSVDPAGE_LOC_QOS_NULL_DATA(u1rsvdpageloc, QOSNULL_PG); |
|---|
| 1600 | 1578 | |
|---|
| 1601 | 1579 | /*--------------------------------------------------------- |
|---|
| 1602 | 1580 | * (5) BT Qos null data |
|---|
| .. | .. |
|---|
| 1607 | 1585 | SET_80211_HDR_ADDRESS2(btqosnull, mac->mac_addr); |
|---|
| 1608 | 1586 | SET_80211_HDR_ADDRESS3(btqosnull, mac->bssid); |
|---|
| 1609 | 1587 | |
|---|
| 1610 | | - SET_H2CCMD_RSVDPAGE_LOC_BT_QOS_NULL_DATA(u1RsvdPageLoc, BT_QOSNULL_PG); |
|---|
| 1588 | + SET_H2CCMD_RSVDPAGE_LOC_BT_QOS_NULL_DATA(u1rsvdpageloc, BT_QOSNULL_PG); |
|---|
| 1611 | 1589 | |
|---|
| 1612 | 1590 | if (!dl_whole_packets) { |
|---|
| 1613 | 1591 | totalpacketlen = 512 * (BT_QOSNULL_PG + 1) - 40; |
|---|
| .. | .. |
|---|
| 1622 | 1600 | SET_80211_HDR_ADDRESS2(arpresp, mac->mac_addr); |
|---|
| 1623 | 1601 | SET_80211_HDR_ADDRESS3(arpresp, mac->bssid); |
|---|
| 1624 | 1602 | |
|---|
| 1625 | | - SET_8821AE_H2CCMD_AOAC_RSVDPAGE_LOC_ARP_RSP(u1RsvdPageLoc2, ARPRESP_PG); |
|---|
| 1603 | + SET_8821AE_H2CCMD_AOAC_RSVDPAGE_LOC_ARP_RSP(u1rsvdpageloc2, ARPRESP_PG); |
|---|
| 1626 | 1604 | |
|---|
| 1627 | 1605 | /*--------------------------------------------------------- |
|---|
| 1628 | 1606 | * (7) Remote Wake Ctrl |
|---|
| 1629 | 1607 | *---------------------------------------------------------- |
|---|
| 1630 | 1608 | */ |
|---|
| 1631 | | - SET_8821AE_H2CCMD_AOAC_RSVDPAGE_LOC_REMOTE_WAKE_CTRL_INFO(u1RsvdPageLoc2, |
|---|
| 1609 | + SET_8821AE_H2CCMD_AOAC_RSVDPAGE_LOC_REMOTE_WAKE_CTRL_INFO(u1rsvdpageloc2, |
|---|
| 1632 | 1610 | REMOTE_PG); |
|---|
| 1633 | 1611 | |
|---|
| 1634 | 1612 | /*--------------------------------------------------------- |
|---|
| 1635 | 1613 | * (8) GTK Ext Memory |
|---|
| 1636 | 1614 | *---------------------------------------------------------- |
|---|
| 1637 | 1615 | */ |
|---|
| 1638 | | - SET_8821AE_H2CCMD_AOAC_RSVDPAGE_LOC_GTK_EXT_MEM(u1RsvdPageLoc2, GTKEXT_PG); |
|---|
| 1616 | + SET_8821AE_H2CCMD_AOAC_RSVDPAGE_LOC_GTK_EXT_MEM(u1rsvdpageloc2, GTKEXT_PG); |
|---|
| 1639 | 1617 | |
|---|
| 1640 | 1618 | totalpacketlen = TOTAL_RESERVED_PKT_LEN_8812 - 40; |
|---|
| 1641 | 1619 | |
|---|
| .. | .. |
|---|
| 1656 | 1634 | |
|---|
| 1657 | 1635 | if (!b_dl_finished && b_dlok) { |
|---|
| 1658 | 1636 | RT_PRINT_DATA(rtlpriv, COMP_CMD, DBG_DMESG, |
|---|
| 1659 | | - "H2C_RSVDPAGE:\n", u1RsvdPageLoc, 5); |
|---|
| 1637 | + "H2C_RSVDPAGE:\n", u1rsvdpageloc, 5); |
|---|
| 1660 | 1638 | rtl8821ae_fill_h2c_cmd(hw, H2C_8821AE_RSVDPAGE, |
|---|
| 1661 | | - sizeof(u1RsvdPageLoc), u1RsvdPageLoc); |
|---|
| 1639 | + sizeof(u1rsvdpageloc), u1rsvdpageloc); |
|---|
| 1662 | 1640 | if (dl_whole_packets) { |
|---|
| 1663 | 1641 | RT_PRINT_DATA(rtlpriv, COMP_CMD, DBG_DMESG, |
|---|
| 1664 | | - "wowlan H2C_RSVDPAGE:\n", u1RsvdPageLoc2, 7); |
|---|
| 1642 | + "wowlan H2C_RSVDPAGE:\n", u1rsvdpageloc2, 7); |
|---|
| 1665 | 1643 | rtl8821ae_fill_h2c_cmd(hw, H2C_8821AE_AOAC_RSVDPAGE, |
|---|
| 1666 | | - sizeof(u1RsvdPageLoc2), u1RsvdPageLoc2); |
|---|
| 1644 | + sizeof(u1rsvdpageloc2), u1rsvdpageloc2); |
|---|
| 1667 | 1645 | } |
|---|
| 1668 | 1646 | } |
|---|
| 1669 | 1647 | |
|---|
| 1670 | 1648 | if (!b_dlok) |
|---|
| 1671 | | - RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, |
|---|
| 1672 | | - "Set RSVD page location to Fw FAIL!!!!!!.\n"); |
|---|
| 1649 | + rtl_dbg(rtlpriv, COMP_ERR, DBG_WARNING, |
|---|
| 1650 | + "Set RSVD page location to Fw FAIL!!!!!!.\n"); |
|---|
| 1673 | 1651 | } |
|---|
| 1674 | 1652 | |
|---|
| 1675 | 1653 | void rtl8821ae_set_fw_rsvdpagepkt(struct ieee80211_hw *hw, |
|---|
| .. | .. |
|---|
| 1680 | 1658 | struct sk_buff *skb = NULL; |
|---|
| 1681 | 1659 | u32 totalpacketlen; |
|---|
| 1682 | 1660 | bool rtstatus; |
|---|
| 1683 | | - u8 u1RsvdPageLoc[5] = { 0 }; |
|---|
| 1684 | | - u8 u1RsvdPageLoc2[7] = { 0 }; |
|---|
| 1661 | + u8 u1rsvdpageloc[5] = { 0 }; |
|---|
| 1662 | + u8 u1rsvdpageloc2[7] = { 0 }; |
|---|
| 1685 | 1663 | bool b_dlok = false; |
|---|
| 1686 | 1664 | u8 *beacon; |
|---|
| 1687 | 1665 | u8 *p_pspoll; |
|---|
| .. | .. |
|---|
| 1711 | 1689 | SET_80211_PS_POLL_BSSID(p_pspoll, mac->bssid); |
|---|
| 1712 | 1690 | SET_80211_PS_POLL_TA(p_pspoll, mac->mac_addr); |
|---|
| 1713 | 1691 | |
|---|
| 1714 | | - SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(u1RsvdPageLoc, PSPOLL_PG); |
|---|
| 1692 | + SET_H2CCMD_RSVDPAGE_LOC_PSPOLL(u1rsvdpageloc, PSPOLL_PG); |
|---|
| 1715 | 1693 | |
|---|
| 1716 | 1694 | /*-------------------------------------------------------- |
|---|
| 1717 | 1695 | * (3) null data |
|---|
| .. | .. |
|---|
| 1722 | 1700 | SET_80211_HDR_ADDRESS2(nullfunc, mac->mac_addr); |
|---|
| 1723 | 1701 | SET_80211_HDR_ADDRESS3(nullfunc, mac->bssid); |
|---|
| 1724 | 1702 | |
|---|
| 1725 | | - SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(u1RsvdPageLoc, NULL_PG); |
|---|
| 1703 | + SET_H2CCMD_RSVDPAGE_LOC_NULL_DATA(u1rsvdpageloc, NULL_PG); |
|---|
| 1726 | 1704 | |
|---|
| 1727 | 1705 | /*--------------------------------------------------------- |
|---|
| 1728 | 1706 | * (4) Qos null data |
|---|
| .. | .. |
|---|
| 1733 | 1711 | SET_80211_HDR_ADDRESS2(qosnull, mac->mac_addr); |
|---|
| 1734 | 1712 | SET_80211_HDR_ADDRESS3(qosnull, mac->bssid); |
|---|
| 1735 | 1713 | |
|---|
| 1736 | | - SET_H2CCMD_RSVDPAGE_LOC_QOS_NULL_DATA(u1RsvdPageLoc, QOSNULL_PG); |
|---|
| 1714 | + SET_H2CCMD_RSVDPAGE_LOC_QOS_NULL_DATA(u1rsvdpageloc, QOSNULL_PG); |
|---|
| 1737 | 1715 | |
|---|
| 1738 | 1716 | /*--------------------------------------------------------- |
|---|
| 1739 | 1717 | * (5) Qos null data |
|---|
| .. | .. |
|---|
| 1744 | 1722 | SET_80211_HDR_ADDRESS2(btqosnull, mac->mac_addr); |
|---|
| 1745 | 1723 | SET_80211_HDR_ADDRESS3(btqosnull, mac->bssid); |
|---|
| 1746 | 1724 | |
|---|
| 1747 | | - SET_H2CCMD_RSVDPAGE_LOC_BT_QOS_NULL_DATA(u1RsvdPageLoc, BT_QOSNULL_PG); |
|---|
| 1725 | + SET_H2CCMD_RSVDPAGE_LOC_BT_QOS_NULL_DATA(u1rsvdpageloc, BT_QOSNULL_PG); |
|---|
| 1748 | 1726 | |
|---|
| 1749 | 1727 | if (!dl_whole_packets) { |
|---|
| 1750 | 1728 | totalpacketlen = 256 * (BT_QOSNULL_PG + 1) - 40; |
|---|
| .. | .. |
|---|
| 1759 | 1737 | SET_80211_HDR_ADDRESS2(arpresp, mac->mac_addr); |
|---|
| 1760 | 1738 | SET_80211_HDR_ADDRESS3(arpresp, mac->bssid); |
|---|
| 1761 | 1739 | |
|---|
| 1762 | | - SET_8821AE_H2CCMD_AOAC_RSVDPAGE_LOC_ARP_RSP(u1RsvdPageLoc2, ARPRESP_PG); |
|---|
| 1740 | + SET_8821AE_H2CCMD_AOAC_RSVDPAGE_LOC_ARP_RSP(u1rsvdpageloc2, ARPRESP_PG); |
|---|
| 1763 | 1741 | |
|---|
| 1764 | 1742 | /*--------------------------------------------------------- |
|---|
| 1765 | 1743 | * (7) Remote Wake Ctrl |
|---|
| 1766 | 1744 | *---------------------------------------------------------- |
|---|
| 1767 | 1745 | */ |
|---|
| 1768 | | - SET_8821AE_H2CCMD_AOAC_RSVDPAGE_LOC_REMOTE_WAKE_CTRL_INFO(u1RsvdPageLoc2, |
|---|
| 1746 | + SET_8821AE_H2CCMD_AOAC_RSVDPAGE_LOC_REMOTE_WAKE_CTRL_INFO(u1rsvdpageloc2, |
|---|
| 1769 | 1747 | REMOTE_PG); |
|---|
| 1770 | 1748 | |
|---|
| 1771 | 1749 | /*--------------------------------------------------------- |
|---|
| 1772 | 1750 | * (8) GTK Ext Memory |
|---|
| 1773 | 1751 | *---------------------------------------------------------- |
|---|
| 1774 | 1752 | */ |
|---|
| 1775 | | - SET_8821AE_H2CCMD_AOAC_RSVDPAGE_LOC_GTK_EXT_MEM(u1RsvdPageLoc2, GTKEXT_PG); |
|---|
| 1753 | + SET_8821AE_H2CCMD_AOAC_RSVDPAGE_LOC_GTK_EXT_MEM(u1rsvdpageloc2, GTKEXT_PG); |
|---|
| 1776 | 1754 | |
|---|
| 1777 | 1755 | totalpacketlen = TOTAL_RESERVED_PKT_LEN_8821 - 40; |
|---|
| 1778 | 1756 | |
|---|
| .. | .. |
|---|
| 1793 | 1771 | b_dlok = true; |
|---|
| 1794 | 1772 | |
|---|
| 1795 | 1773 | if (!b_dl_finished && b_dlok) { |
|---|
| 1796 | | - RT_TRACE(rtlpriv, COMP_POWER, DBG_LOUD, |
|---|
| 1797 | | - "Set RSVD page location to Fw.\n"); |
|---|
| 1774 | + rtl_dbg(rtlpriv, COMP_POWER, DBG_LOUD, |
|---|
| 1775 | + "Set RSVD page location to Fw.\n"); |
|---|
| 1798 | 1776 | RT_PRINT_DATA(rtlpriv, COMP_CMD, DBG_DMESG, |
|---|
| 1799 | | - "H2C_RSVDPAGE:\n", u1RsvdPageLoc, 5); |
|---|
| 1777 | + "H2C_RSVDPAGE:\n", u1rsvdpageloc, 5); |
|---|
| 1800 | 1778 | rtl8821ae_fill_h2c_cmd(hw, H2C_8821AE_RSVDPAGE, |
|---|
| 1801 | | - sizeof(u1RsvdPageLoc), u1RsvdPageLoc); |
|---|
| 1779 | + sizeof(u1rsvdpageloc), u1rsvdpageloc); |
|---|
| 1802 | 1780 | if (dl_whole_packets) { |
|---|
| 1803 | 1781 | RT_PRINT_DATA(rtlpriv, COMP_CMD, DBG_DMESG, |
|---|
| 1804 | 1782 | "wowlan H2C_RSVDPAGE:\n", |
|---|
| 1805 | | - u1RsvdPageLoc2, 7); |
|---|
| 1783 | + u1rsvdpageloc2, 7); |
|---|
| 1806 | 1784 | rtl8821ae_fill_h2c_cmd(hw, H2C_8821AE_AOAC_RSVDPAGE, |
|---|
| 1807 | | - sizeof(u1RsvdPageLoc2), |
|---|
| 1808 | | - u1RsvdPageLoc2); |
|---|
| 1785 | + sizeof(u1rsvdpageloc2), |
|---|
| 1786 | + u1rsvdpageloc2); |
|---|
| 1809 | 1787 | } |
|---|
| 1810 | 1788 | } |
|---|
| 1811 | 1789 | |
|---|
| 1812 | 1790 | if (!b_dlok) { |
|---|
| 1813 | | - RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, |
|---|
| 1814 | | - "Set RSVD page location to Fw FAIL!!!!!!.\n"); |
|---|
| 1791 | + rtl_dbg(rtlpriv, COMP_ERR, DBG_WARNING, |
|---|
| 1792 | + "Set RSVD page location to Fw FAIL!!!!!!.\n"); |
|---|
| 1815 | 1793 | } |
|---|
| 1816 | 1794 | } |
|---|
| 1817 | 1795 | |
|---|
| .. | .. |
|---|
| 1837 | 1815 | |
|---|
| 1838 | 1816 | switch (p2p_ps_state) { |
|---|
| 1839 | 1817 | case P2P_PS_DISABLE: |
|---|
| 1840 | | - RT_TRACE(rtlpriv, COMP_FW, DBG_LOUD, "P2P_PS_DISABLE\n"); |
|---|
| 1818 | + rtl_dbg(rtlpriv, COMP_FW, DBG_LOUD, "P2P_PS_DISABLE\n"); |
|---|
| 1841 | 1819 | memset(p2p_ps_offload, 0, sizeof(*p2p_ps_offload)); |
|---|
| 1842 | 1820 | break; |
|---|
| 1843 | 1821 | case P2P_PS_ENABLE: |
|---|
| 1844 | | - RT_TRACE(rtlpriv, COMP_FW, DBG_LOUD, "P2P_PS_ENABLE\n"); |
|---|
| 1822 | + rtl_dbg(rtlpriv, COMP_FW, DBG_LOUD, "P2P_PS_ENABLE\n"); |
|---|
| 1845 | 1823 | /* update CTWindow value. */ |
|---|
| 1846 | 1824 | if (p2pinfo->ctwindow > 0) { |
|---|
| 1847 | 1825 | p2p_ps_offload->ctwindow_en = 1; |
|---|
| .. | .. |
|---|
| 1895 | 1873 | } |
|---|
| 1896 | 1874 | break; |
|---|
| 1897 | 1875 | case P2P_PS_SCAN: |
|---|
| 1898 | | - RT_TRACE(rtlpriv, COMP_FW, DBG_LOUD, "P2P_PS_SCAN\n"); |
|---|
| 1876 | + rtl_dbg(rtlpriv, COMP_FW, DBG_LOUD, "P2P_PS_SCAN\n"); |
|---|
| 1899 | 1877 | p2p_ps_offload->discovery = 1; |
|---|
| 1900 | 1878 | break; |
|---|
| 1901 | 1879 | case P2P_PS_SCAN_DONE: |
|---|
| 1902 | | - RT_TRACE(rtlpriv, COMP_FW, DBG_LOUD, "P2P_PS_SCAN_DONE\n"); |
|---|
| 1880 | + rtl_dbg(rtlpriv, COMP_FW, DBG_LOUD, "P2P_PS_SCAN_DONE\n"); |
|---|
| 1903 | 1881 | p2p_ps_offload->discovery = 0; |
|---|
| 1904 | 1882 | p2pinfo->p2p_ps_state = P2P_PS_ENABLE; |
|---|
| 1905 | 1883 | break; |
|---|