forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/net/wireless/realtek/rtlwifi/btcoexist/rtl_btc.c
....@@ -1,27 +1,6 @@
1
-/******************************************************************************
2
- *
3
- * Copyright(c) 2009-2013 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-2013 Realtek Corporation.*/
3
+
254 #include "../wifi.h"
265 #include <linux/vmalloc.h>
276 #include <linux/module.h>
....@@ -212,7 +191,7 @@
212191 u8 bt_exist;
213192
214193 bt_exist = rtl_get_hwpg_bt_exist(rtlpriv);
215
- RT_TRACE(rtlpriv, COMP_INIT, DBG_DMESG,
194
+ rtl_dbg(rtlpriv, COMP_INIT, DBG_DMESG,
216195 "%s, bt_exist is %d\n", __func__, bt_exist);
217196
218197 if (!btcoexist)
....@@ -337,7 +316,7 @@
337316 void rtl_btc_btmpinfo_notify(struct rtl_priv *rtlpriv, u8 *tmp_buf, u8 length)
338317 {
339318 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv);
340
- u8 extid, seq, len;
319
+ u8 extid, seq;
341320 u16 bt_real_fw_ver;
342321 u8 bt_fw_ver;
343322 u8 *data;
....@@ -353,7 +332,6 @@
353332 if (extid != 1) /* C2H_TRIG_BY_BT_FW = 1 */
354333 return;
355334
356
- len = tmp_buf[1] >> 4;
357335 seq = tmp_buf[2] >> 4;
358336 data = &tmp_buf[3];
359337
....@@ -405,8 +383,8 @@
405383 break;
406384 }
407385
408
- RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_LOUD,
409
- "btmpinfo complete req_num=%d\n", seq);
386
+ rtl_dbg(rtlpriv, COMP_BT_COEXIST, DBG_LOUD,
387
+ "btmpinfo complete req_num=%d\n", seq);
410388
411389 complete(&btcoexist->bt_mp_comp);
412390 }