From nobody Wed Jul 1 04:15:20 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2D6DC433EF for ; Sun, 2 Jan 2022 18:00:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230200AbiABSAU (ORCPT ); Sun, 2 Jan 2022 13:00:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230191AbiABSAR (ORCPT ); Sun, 2 Jan 2022 13:00:17 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E97A6C061784 for ; Sun, 2 Jan 2022 10:00:16 -0800 (PST) Received: from dslb-188-104-058-096.188.104.pools.vodafone-ip.de ([188.104.58.96] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1n459Q-0005Ye-PB; Sun, 02 Jan 2022 19:00:13 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 1/5] staging: r8188eu: remove unused power management defines Date: Sun, 2 Jan 2022 18:59:28 +0100 Message-Id: <20220102175932.89127-2-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220102175932.89127-1-martin@kaiser.cx> References: <20220102175932.89127-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Remove unused defines from enum power_mgnt. Signed-off-by: Martin Kaiser Acked-by: Michael Straube --- drivers/staging/r8188eu/include/rtw_pwrctrl.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/staging/r8188eu/include/rtw_pwrctrl.h b/drivers/stagin= g/r8188eu/include/rtw_pwrctrl.h index 849e144c90dd..40032447355d 100644 --- a/drivers/staging/r8188eu/include/rtw_pwrctrl.h +++ b/drivers/staging/r8188eu/include/rtw_pwrctrl.h @@ -19,10 +19,6 @@ enum power_mgnt { PS_MODE_DTIM, PS_MODE_VOIP, PS_MODE_UAPSD_WMM, - PS_MODE_UAPSD, - PS_MODE_IBSS, - PS_MODE_WWLAN, - PM_Radio_Off, PM_Card_Disable, PS_MODE_NUM }; --=20 2.30.2 From nobody Wed Jul 1 04:15:20 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44A60C433F5 for ; Sun, 2 Jan 2022 18:00:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230217AbiABSAW (ORCPT ); Sun, 2 Jan 2022 13:00:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230210AbiABSAT (ORCPT ); Sun, 2 Jan 2022 13:00:19 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE558C061784 for ; Sun, 2 Jan 2022 10:00:18 -0800 (PST) Received: from dslb-188-104-058-096.188.104.pools.vodafone-ip.de ([188.104.58.96] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1n459S-0005Ye-F5; Sun, 02 Jan 2022 19:00:15 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 2/5] staging: r8188eu: internal autosuspend is always false Date: Sun, 2 Jan 2022 18:59:29 +0100 Message-Id: <20220102175932.89127-3-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220102175932.89127-1-martin@kaiser.cx> References: <20220102175932.89127-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" bInternalAutoSuspend is always false. Remove the variable and related checks. Signed-off-by: Martin Kaiser Acked-by: Michael Straube --- drivers/staging/r8188eu/core/rtw_pwrctrl.c | 9 +-------- drivers/staging/r8188eu/include/rtw_pwrctrl.h | 1 - drivers/staging/r8188eu/os_dep/os_intfs.c | 4 ---- drivers/staging/r8188eu/os_dep/usb_intf.c | 3 +-- 4 files changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_pwrctrl.c b/drivers/staging/r= 8188eu/core/rtw_pwrctrl.c index 7fa4516af6ec..46e44aee587f 100644 --- a/drivers/staging/r8188eu/core/rtw_pwrctrl.c +++ b/drivers/staging/r8188eu/core/rtw_pwrctrl.c @@ -351,7 +351,6 @@ void rtw_init_pwrctrl_priv(struct adapter *padapter) =20 pwrctrlpriv->pwr_state_check_interval =3D RTW_PWR_STATE_CHK_INTERVAL; pwrctrlpriv->pwr_state_check_cnts =3D 0; - pwrctrlpriv->bInternalAutoSuspend =3D false; pwrctrlpriv->bInSuspend =3D false; pwrctrlpriv->bkeepfwalive =3D false; =20 @@ -396,7 +395,7 @@ int _rtw_pwr_wakeup(struct adapter *padapter, u32 ips_d= effer_ms, const char *cal } =20 /* System suspend is not allowed to wakeup */ - if ((!pwrpriv->bInternalAutoSuspend) && pwrpriv->bInSuspend) { + if (pwrpriv->bInSuspend) { while (pwrpriv->bInSuspend && (rtw_get_passing_time_ms(start) <=3D 3000 || (rtw_get_passing_time_ms(start) <=3D 500))) @@ -407,12 +406,6 @@ int _rtw_pwr_wakeup(struct adapter *padapter, u32 ips_= deffer_ms, const char *cal DBG_88E("%s wait bInSuspend done\n", __func__); } =20 - /* block??? */ - if ((pwrpriv->bInternalAutoSuspend) && (padapter->net_closed)) { - ret =3D _FAIL; - goto exit; - } - /* I think this should be check in IPS, LPS, autosuspend functions... */ if (check_fwstate(pmlmepriv, _FW_LINKED)) { ret =3D _SUCCESS; diff --git a/drivers/staging/r8188eu/include/rtw_pwrctrl.h b/drivers/stagin= g/r8188eu/include/rtw_pwrctrl.h index 40032447355d..2d5298373d74 100644 --- a/drivers/staging/r8188eu/include/rtw_pwrctrl.h +++ b/drivers/staging/r8188eu/include/rtw_pwrctrl.h @@ -75,7 +75,6 @@ struct pwrctrl_priv { s32 pnp_current_pwr_state; u8 pnp_bstop_trx; =20 - u8 bInternalAutoSuspend; u8 bInSuspend; u8 bSupportRemoteWakeup; struct timer_list pwr_state_check_timer; diff --git a/drivers/staging/r8188eu/os_dep/os_intfs.c b/drivers/staging/r8= 188eu/os_dep/os_intfs.c index f81e26785d66..b65e44f97826 100644 --- a/drivers/staging/r8188eu/os_dep/os_intfs.c +++ b/drivers/staging/r8188eu/os_dep/os_intfs.c @@ -760,10 +760,6 @@ int netdev_close(struct net_device *pnetdev) struct adapter *padapter =3D (struct adapter *)rtw_netdev_priv(pnetdev); struct dvobj_priv *dvobj =3D adapter_to_dvobj(padapter); =20 - if (padapter->pwrctrlpriv.bInternalAutoSuspend) { - if (padapter->pwrctrlpriv.rf_pwrstate =3D=3D rf_off) - padapter->pwrctrlpriv.ps_flag =3D true; - } padapter->net_closed =3D true; =20 if (padapter->pwrctrlpriv.rf_pwrstate =3D=3D rf_on) { diff --git a/drivers/staging/r8188eu/os_dep/usb_intf.c b/drivers/staging/r8= 188eu/os_dep/usb_intf.c index 5c1faf01cb51..91792dfd3bbe 100644 --- a/drivers/staging/r8188eu/os_dep/usb_intf.c +++ b/drivers/staging/r8188eu/os_dep/usb_intf.c @@ -192,8 +192,7 @@ static void rtw_dev_unload(struct adapter *padapter) if (padapter->intf_stop) padapter->intf_stop(padapter); /* s4. */ - if (!padapter->pwrctrlpriv.bInternalAutoSuspend) - rtw_stop_drv_threads(padapter); + rtw_stop_drv_threads(padapter); =20 /* s5. */ if (!padapter->bSurpriseRemoved) { --=20 2.30.2 From nobody Wed Jul 1 04:15:20 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFBC8C433EF for ; Sun, 2 Jan 2022 18:00:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230288AbiABSA0 (ORCPT ); Sun, 2 Jan 2022 13:00:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230216AbiABSAV (ORCPT ); Sun, 2 Jan 2022 13:00:21 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A187BC061761 for ; Sun, 2 Jan 2022 10:00:20 -0800 (PST) Received: from dslb-188-104-058-096.188.104.pools.vodafone-ip.de ([188.104.58.96] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1n459U-0005Ye-FA; Sun, 02 Jan 2022 19:00:16 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 3/5] staging: r8188eu: fix_rate is set but not used. Date: Sun, 2 Jan 2022 18:59:30 +0100 Message-Id: <20220102175932.89127-4-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220102175932.89127-1-martin@kaiser.cx> References: <20220102175932.89127-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" fix_rate in struct adapter is set but not used. Remove the variable and the private ioctl code to set it. Signed-off-by: Martin Kaiser Acked-by: Michael Straube --- drivers/staging/r8188eu/hal/rtl8188e_dm.c | 1 - drivers/staging/r8188eu/include/drv_types.h | 2 -- drivers/staging/r8188eu/os_dep/ioctl_linux.c | 6 ------ 3 files changed, 9 deletions(-) diff --git a/drivers/staging/r8188eu/hal/rtl8188e_dm.c b/drivers/staging/r8= 188eu/hal/rtl8188e_dm.c index 685431034495..bd6eb3878060 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_dm.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_dm.c @@ -84,7 +84,6 @@ void rtl8188e_InitHalDm(struct adapter *Adapter) dm_InitGPIOSetting(Adapter); Update_ODM_ComInfo_88E(Adapter); ODM_DMInit(dm_odm); - Adapter->fix_rate =3D 0xFF; } =20 void rtl8188e_HalDmWatchDog(struct adapter *Adapter) diff --git a/drivers/staging/r8188eu/include/drv_types.h b/drivers/staging/= r8188eu/include/drv_types.h index c586a35014d8..2dd5ebaaa921 100644 --- a/drivers/staging/r8188eu/include/drv_types.h +++ b/drivers/staging/r8188eu/include/drv_types.h @@ -264,8 +264,6 @@ struct adapter { unsigned char br_ip[4]; struct br_ext_info ethBrExtInfo; =20 - u8 fix_rate; - unsigned char in_cta_test; }; =20 diff --git a/drivers/staging/r8188eu/os_dep/ioctl_linux.c b/drivers/staging= /r8188eu/os_dep/ioctl_linux.c index 9d277151a5ee..6e9a6d4db089 100644 --- a/drivers/staging/r8188eu/os_dep/ioctl_linux.c +++ b/drivers/staging/r8188eu/os_dep/ioctl_linux.c @@ -3978,12 +3978,6 @@ static int rtw_dbg_port(struct net_device *dev, DBG_88E("turn %s the bShowGetP2PState Variable\n", (extra_arg =3D=3D 1)= ? "on" : "off"); padapter->bShowGetP2PState =3D extra_arg; break; - case 0xaa: - if (extra_arg > 0x13) - extra_arg =3D 0xFF; - DBG_88E("chang data rate to :0x%02x\n", extra_arg); - padapter->fix_rate =3D extra_arg; - break; case 0xdd:/* registers dump, 0 for mac reg, 1 for bb reg, 2 for rf reg */ if (extra_arg =3D=3D 0) mac_reg_dump(padapter); --=20 2.30.2 From nobody Wed Jul 1 04:15:20 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 385FBC433F5 for ; Sun, 2 Jan 2022 18:00:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230270AbiABSAe (ORCPT ); Sun, 2 Jan 2022 13:00:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230223AbiABSAY (ORCPT ); Sun, 2 Jan 2022 13:00:24 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7648C061761 for ; Sun, 2 Jan 2022 10:00:22 -0800 (PST) Received: from dslb-188-104-058-096.188.104.pools.vodafone-ip.de ([188.104.58.96] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1n459W-0005Ye-Gf; Sun, 02 Jan 2022 19:00:18 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 4/5] staging: r8188eu: cmd_issued_cnt is set but not used Date: Sun, 2 Jan 2022 18:59:31 +0100 Message-Id: <20220102175932.89127-5-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220102175932.89127-1-martin@kaiser.cx> References: <20220102175932.89127-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" cmd_issued_cnt in struct cmd_priv is set but not used. It can be removed. Signed-off-by: Martin Kaiser Acked-by: Michael Straube --- drivers/staging/r8188eu/core/rtw_cmd.c | 3 --- drivers/staging/r8188eu/include/rtw_cmd.h | 1 - 2 files changed, 4 deletions(-) diff --git a/drivers/staging/r8188eu/core/rtw_cmd.c b/drivers/staging/r8188= eu/core/rtw_cmd.c index 6d503eb7ff26..8bfb01c2ebb5 100644 --- a/drivers/staging/r8188eu/core/rtw_cmd.c +++ b/drivers/staging/r8188eu/core/rtw_cmd.c @@ -50,7 +50,6 @@ static int _rtw_init_cmd_priv(struct cmd_priv *pcmdpriv) =20 pcmdpriv->rsp_buf =3D pcmdpriv->rsp_allocated_buf + 4 - ((size_t)(pcmdp= riv->rsp_allocated_buf) & 3); =20 - pcmdpriv->cmd_issued_cnt =3D 0; pcmdpriv->cmd_done_cnt =3D 0; pcmdpriv->rsp_cnt =3D 0; exit: @@ -269,8 +268,6 @@ int rtw_cmd_thread(void *context) goto post_process; } =20 - pcmdpriv->cmd_issued_cnt++; - pcmd->cmdsz =3D _RND4((pcmd->cmdsz));/* _RND4 */ =20 memcpy(pcmdbuf, pcmd->parmbuf, pcmd->cmdsz); diff --git a/drivers/staging/r8188eu/include/rtw_cmd.h b/drivers/staging/r8= 188eu/include/rtw_cmd.h index 47c3c80cc24a..cf0945ae11c1 100644 --- a/drivers/staging/r8188eu/include/rtw_cmd.h +++ b/drivers/staging/r8188eu/include/rtw_cmd.h @@ -42,7 +42,6 @@ struct cmd_priv { u8 *cmd_allocated_buf; u8 *rsp_buf; /* shall be non-paged, and 4 bytes aligned */ u8 *rsp_allocated_buf; - u32 cmd_issued_cnt; u32 cmd_done_cnt; u32 rsp_cnt; u8 cmdthd_running; --=20 2.30.2 From nobody Wed Jul 1 04:15:20 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16AD7C433FE for ; Sun, 2 Jan 2022 18:00:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230341AbiABSAc (ORCPT ); Sun, 2 Jan 2022 13:00:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbiABSAY (ORCPT ); Sun, 2 Jan 2022 13:00:24 -0500 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07743C061784 for ; Sun, 2 Jan 2022 10:00:23 -0800 (PST) Received: from dslb-188-104-058-096.188.104.pools.vodafone-ip.de ([188.104.58.96] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1n459X-0005Ye-Pu; Sun, 02 Jan 2022 19:00:20 +0100 From: Martin Kaiser To: Greg Kroah-Hartman Cc: Larry Finger , Phillip Potter , Michael Straube , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 5/5] staging: r8188eu: turbo scan is always off for r8188eu Date: Sun, 2 Jan 2022 18:59:32 +0100 Message-Id: <20220102175932.89127-6-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220102175932.89127-1-martin@kaiser.cx> References: <20220102175932.89127-1-martin@kaiser.cx> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Turbo scan is always disabled. Remove the TurboScanOff variable and related checks. Signed-off-by: Martin Kaiser Acked-by: Michael Straube --- drivers/staging/r8188eu/hal/rtl8188e_rf6052.c | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/drivers/staging/r8188eu/hal/rtl8188e_rf6052.c b/drivers/stagin= g/r8188eu/hal/rtl8188e_rf6052.c index 0b982cc7c86f..6e0231099986 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_rf6052.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_rf6052.c @@ -87,28 +87,21 @@ rtl8188e_PHY_RF6052SetCckTxPower( struct hal_data_8188e *pHalData =3D &Adapter->haldata; struct mlme_ext_priv *pmlmeext =3D &Adapter->mlmeextpriv; u32 TxAGC[2] =3D {0, 0}, tmpval =3D 0, pwrtrac_value; - bool TurboScanOff =3D false; u8 idx1, idx2; u8 *ptr; u8 direction; - /* FOR CE ,must disable turbo scan */ - TurboScanOff =3D true; =20 if (pmlmeext->sitesurvey_res.state =3D=3D SCAN_PROCESS) { TxAGC[RF_PATH_A] =3D 0x3f3f3f3f; TxAGC[RF_PATH_B] =3D 0x3f3f3f3f; =20 - TurboScanOff =3D true;/* disable turbo scan */ - - if (TurboScanOff) { - for (idx1 =3D RF_PATH_A; idx1 <=3D RF_PATH_B; idx1++) { - TxAGC[idx1] =3D - pPowerlevel[idx1] | (pPowerlevel[idx1] << 8) | - (pPowerlevel[idx1] << 16) | (pPowerlevel[idx1] << 24); - /* 2010/10/18 MH For external PA module. We need to limit power index= to be less than 0x20. */ - if (TxAGC[idx1] > 0x20 && pHalData->ExternalPA) - TxAGC[idx1] =3D 0x20; - } + for (idx1 =3D RF_PATH_A; idx1 <=3D RF_PATH_B; idx1++) { + TxAGC[idx1] =3D + pPowerlevel[idx1] | (pPowerlevel[idx1] << 8) | + (pPowerlevel[idx1] << 16) | (pPowerlevel[idx1] << 24); + /* 2010/10/18 MH For external PA module. We need to limit power index = to be less than 0x20. */ + if (TxAGC[idx1] > 0x20 && pHalData->ExternalPA) + TxAGC[idx1] =3D 0x20; } } else { for (idx1 =3D RF_PATH_A; idx1 <=3D RF_PATH_B; idx1++) { --=20 2.30.2