From 339d6c4d89c51db3b0ca9e9772c73d7e48e71ca3 Mon Sep 17 00:00:00 2001 From: ZHANG Yuntian <95260730+RadxaYuntian@users.noreply.github.com> Date: Fri, 5 May 2023 12:35:44 +0800 Subject: [PATCH] rtl8723ds: Update comments with UTF-8 encoding When packaging the source as a Debian DKMS package, lintian will warn national-encoding due to Big5 encoded characters in comments. Update to English comments from other files when available, and reencode Chinese in UTF-8. Signed-off-by: ZHANG Yuntian --- core/rtw_cmd.c | 2 +- hal/btc/HalBtc8812a2Ant.c | 14 +++++++------- hal/btc/HalBtc8821a2Ant.c | 14 +++++++------- hal/btc/HalBtc8821aCsr2Ant.c | 14 +++++++------- include/Hal8821APwrSeq.h | 2 +- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git a/core/rtw_cmd.c b/core/rtw_cmd.c index 3bd07a6..4a5a269 100644 --- a/core/rtw_cmd.c +++ b/core/rtw_cmd.c @@ -1500,7 +1500,7 @@ u8 rtw_joinbss_cmd(_adapter *padapter, struct wlan_network *pnetwork) #endif /* CONFIG_80211N_HT */ #ifdef CONFIG_RTW_80211R - /*IEEE802.11-2012 Std. Table 8-101—AKM suite selectors*/ + /*IEEE802.11-2012 Std. Table 8-101 XAKM suite selectors*/ if ((rtw_chk_ft_flags(padapter, RTW_FT_STA_SUPPORTED)) && ((psecuritypriv->rsn_akm_suite_type == 3) || (psecuritypriv->rsn_akm_suite_type == 4)) ) { diff --git a/hal/btc/HalBtc8812a2Ant.c b/hal/btc/HalBtc8812a2Ant.c index c5c0186..6eed1a3 100644 --- a/hal/btc/HalBtc8812a2Ant.c +++ b/hal/btc/HalBtc8812a2Ant.c @@ -1788,7 +1788,7 @@ void halbtc8812a2ant_tdma_duration_adjust(IN struct btc_coexist *btcoexist, if (dn <= 0) dn = 0; - if (up >= n) { /* if 連續 n 個2秒 retry count為0, 則調寬WiFi duration */ + if (up >= n) { /* if retry count during continuous n*2 seconds is 0, enlarge WiFi duration */ wait_count = 0; n = 3; up = 0; @@ -1803,13 +1803,13 @@ void halbtc8812a2ant_tdma_duration_adjust(IN struct btc_coexist *btcoexist, if (up <= 0) up = 0; - if (dn == 2) { /* if 連續 2 個2秒 retry count< 3, 則調窄WiFi duration */ + if (dn == 2) { /* if continuous 2 retry count(every 2 seconds) >0 and < 3, reduce WiFi duration */ if (wait_count <= 2) - m++; /* 避免一直在兩個level中來回 */ + m++; /* to avoid loop between the two levels */ else m = 1; - if (m >= 20) /* m 最大值 = 20 ' 最大120秒 recheck是否調整 WiFi duration. */ + if (m >= 20) /* maximum of m = 20 ' will recheck if need to adjust wifi duration in maximum time interval 120 seconds */ m = 20; n = 3 * m; @@ -1818,13 +1818,13 @@ void halbtc8812a2ant_tdma_duration_adjust(IN struct btc_coexist *btcoexist, wait_count = 0; result = -1; } - } else { /* retry count > 3, 只要1次 retry count > 3, 則調窄WiFi duration */ + } else { /* retry count > 3, once retry count > 3, to reduce WiFi duration */ if (wait_count == 1) - m++; /* 避免一直在兩個level中來回 */ + m++; /* to avoid loop between the two levels */ else m = 1; - if (m >= 20) /* m 最大值 = 20 ' 最大120秒 recheck是否調整 WiFi duration. */ + if (m >= 20) /* maximum of m = 20 ' will recheck if need to adjust wifi duration in maximum time interval 120 seconds */ m = 20; n = 3 * m; diff --git a/hal/btc/HalBtc8821a2Ant.c b/hal/btc/HalBtc8821a2Ant.c index db26f41..8b37492 100644 --- a/hal/btc/HalBtc8821a2Ant.c +++ b/hal/btc/HalBtc8821a2Ant.c @@ -1992,7 +1992,7 @@ void halbtc8821a2ant_tdma_duration_adjust(IN struct btc_coexist *btcoexist, if (dn <= 0) dn = 0; - if (up >= n) { /* if 連續 n 個2秒 retry count為0, 則調寬WiFi duration */ + if (up >= n) { /* if retry count during continuous n*2 seconds is 0, enlarge WiFi duration */ wait_count = 0; n = 3; up = 0; @@ -2007,13 +2007,13 @@ void halbtc8821a2ant_tdma_duration_adjust(IN struct btc_coexist *btcoexist, if (up <= 0) up = 0; - if (dn == 2) { /* if 連續 2 個2秒 retry count< 3, 則調窄WiFi duration */ + if (dn == 2) { /* if continuous 2 retry count(every 2 seconds) >0 and < 3, reduce WiFi duration */ if (wait_count <= 2) - m++; /* 避免一直在兩個level中來回 */ + m++; /* to avoid loop between the two levels */ else m = 1; - if (m >= 20) /* m 最大值 = 20 ' 最大120秒 recheck是否調整 WiFi duration. */ + if (m >= 20) /* maximum of m = 20 ' will recheck if need to adjust wifi duration in maximum time interval 120 seconds */ m = 20; n = 3 * m; @@ -2022,13 +2022,13 @@ void halbtc8821a2ant_tdma_duration_adjust(IN struct btc_coexist *btcoexist, wait_count = 0; result = -1; } - } else { /* retry count > 3, 只要1次 retry count > 3, 則調窄WiFi duration */ + } else { /* retry count > 3, once retry count > 3, to reduce WiFi duration */ if (wait_count == 1) - m++; /* 避免一直在兩個level中來回 */ + m++; /* to avoid loop between the two levels */ else m = 1; - if (m >= 20) /* m 最大值 = 20 ' 最大120秒 recheck是否調整 WiFi duration. */ + if (m >= 20) /* maximum of m = 20 ' will recheck if need to adjust wifi duration in maximum time interval 120 seconds */ m = 20; n = 3 * m; diff --git a/hal/btc/HalBtc8821aCsr2Ant.c b/hal/btc/HalBtc8821aCsr2Ant.c index acf641a..fe85800 100644 --- a/hal/btc/HalBtc8821aCsr2Ant.c +++ b/hal/btc/HalBtc8821aCsr2Ant.c @@ -1665,7 +1665,7 @@ void halbtc8821aCsr2ant_tdma_duration_adjust(IN struct btc_coexist *btcoexist, if (dn <= 0) dn = 0; - if (up >= n) { /* if 連續 n 個2秒 retry count為0, 則調寬WiFi duration */ + if (up >= n) { /* if retry count during continuous n*2 seconds is 0, enlarge WiFi duration */ wait_count = 0; n = 3; up = 0; @@ -1680,13 +1680,13 @@ void halbtc8821aCsr2ant_tdma_duration_adjust(IN struct btc_coexist *btcoexist, if (up <= 0) up = 0; - if (dn == 2) { /* if 連續 2 個2秒 retry count< 3, 則調窄WiFi duration */ + if (dn == 2) { /* if continuous 2 retry count(every 2 seconds) >0 and < 3, reduce WiFi duration */ if (wait_count <= 2) - m++; /* 避免一直在兩個level中來回 */ + m++; /* to avoid loop between the two levels */ else m = 1; - if (m >= 20) /* m 最大值 = 20 ' 最大120秒 recheck是否調整 WiFi duration. */ + if (m >= 20) /* maximum of m = 20 ' will recheck if need to adjust wifi duration in maximum time interval 120 seconds */ m = 20; n = 3 * m; @@ -1695,13 +1695,13 @@ void halbtc8821aCsr2ant_tdma_duration_adjust(IN struct btc_coexist *btcoexist, wait_count = 0; result = -1; } - } else { /* retry count > 3, 只要1次 retry count > 3, 則調窄WiFi duration */ + } else { /* retry count > 3, once retry count > 3, to reduce WiFi duration */ if (wait_count == 1) - m++; /* 避免一直在兩個level中來回 */ + m++; /* to avoid loop between the two levels */ else m = 1; - if (m >= 20) /* m 最大值 = 20 ' 最大120秒 recheck是否調整 WiFi duration. */ + if (m >= 20) /* maximum of m = 20 ' will recheck if need to adjust wifi duration in maximum time interval 120 seconds */ m = 20; n = 3 * m; diff --git a/include/Hal8821APwrSeq.h b/include/Hal8821APwrSeq.h index 393068b..42f1dd1 100644 --- a/include/Hal8821APwrSeq.h +++ b/include/Hal8821APwrSeq.h @@ -62,7 +62,7 @@ {0x005A, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT1, BIT1},/*Enable HSISR GPIO9 interrupt*/\ {0x007A, PWR_CUT_TESTCHIP_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF, 0x3A},/*0x7A = 0x3A start BT*/\ {0x002E, PWR_CUT_ALL_MSK, PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, 0xFF , 0x82 },/* 0x2C[23:12]=0x820 ; XTAL trim */ \ - {0x0010, PWR_CUT_A_MSK , PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT6 , BIT6 },/* 0x10[6]=1 ; MP新增對於0x2C的控制權,須把0x10[6]設為1才能讓WLAN控制 */ \ + {0x0010, PWR_CUT_A_MSK , PWR_FAB_ALL_MSK, PWR_INTF_ALL_MSK, PWR_BASEADDR_MAC, PWR_CMD_WRITE, BIT6 , BIT6 },/* 0x10[6]=1 ; MP啣撠0x2C批嗆嚗0x10[6]閮剔1質WLAN批 */ \ #define RTL8821A_TRANS_ACT_TO_CARDEMU \