Skip to contentSkip to conversation

staging: r8188eu: remove the HW_VAR_CHECK_TXBUF "hal variable"

PATCH In review Martin Kaiser 2 participants 2 messages Sep 18, 2021 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: r8188eu: remove the HW_VAR_CHECK_TXBUF "hal variable"

Setting HW_VAR_CHECK_TXBUF is an empty operation.

---
 drivers/staging/r8188eu/core/rtw_mlme_ext.c | 1 -
 drivers/staging/r8188eu/hal/usb_halinit.c   | 2 --
 drivers/staging/r8188eu/include/hal_intf.h  | 1 -
 3 files changed, 4 deletions(-)
drivers/staging/r8188eu/core/rtw_mlme_ext.c +0 -1
index 26e14e91a42c..38ab1ab18872 100644
@@ -7785,7 +7785,6 @@ u8 sitesurvey_cmd_hdl(struct adapter *padapter, u8 *pbuf)
 
 	if (pmlmeext->sitesurvey_res.state == SCAN_DISABLE) {
 		/* for first time sitesurvey_cmd */
-		rtw_hal_set_hwreg(padapter, HW_VAR_CHECK_TXBUF, NULL);
 
 		pmlmeext->sitesurvey_res.state = SCAN_START;
 		pmlmeext->sitesurvey_res.bss_cnt = 0;
drivers/staging/r8188eu/hal/usb_halinit.c +0 -2
index 5133d533674f..8bb2466d71a2 100644
@@ -1813,8 +1813,6 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
 			}
 		}
 		break;
-	case HW_VAR_CHECK_TXBUF:
-		break;
 	case HW_VAR_APFM_ON_MAC:
 		haldata->bMacPwrCtrlOn = *val;
 		DBG_88E("%s: bMacPwrCtrlOn=%d\n", __func__, haldata->bMacPwrCtrlOn);
drivers/staging/r8188eu/include/hal_intf.h +0 -1
index cc8db98cd200..f1ebb6a2395d 100644
@@ -84,7 +84,6 @@ enum hw_variables {
 	HW_VAR_EFUSE_BT_USAGE,
 	HW_VAR_EFUSE_BT_BYTES,
 	HW_VAR_FIFO_CLEARN_UP,
-	HW_VAR_CHECK_TXBUF,
 	HW_VAR_APFM_ON_MAC, /* Auto FSM to Turn On, include clock, isolation,
 			     * power control for MAC only */
 	/*  The valid upper nav range for the HW updating, if the true value is
Signature · 1 line
2.20.1
Acked-by on v1 1/1
#1 lore raw
Quoted 40 lines · Martin Kaiser

Setting HW_VAR_CHECK_TXBUF is an empty operation.

---
  drivers/staging/r8188eu/core/rtw_mlme_ext.c | 1 -
  drivers/staging/r8188eu/hal/usb_halinit.c   | 2 --
  drivers/staging/r8188eu/include/hal_intf.h  | 1 -
  3 files changed, 4 deletions(-)
drivers/staging/r8188eu/core/rtw_mlme_ext.c +0 -1
index 26e14e91a42c..38ab1ab18872 100644
@@ -7785,7 +7785,6 @@ u8 sitesurvey_cmd_hdl(struct adapter *padapter, u8 *pbuf)
 
  	if (pmlmeext->sitesurvey_res.state == SCAN_DISABLE) {
  		/* for first time sitesurvey_cmd */
-		rtw_hal_set_hwreg(padapter, HW_VAR_CHECK_TXBUF, NULL);
 
  		pmlmeext->sitesurvey_res.state = SCAN_START;
  		pmlmeext->sitesurvey_res.bss_cnt = 0;
drivers/staging/r8188eu/hal/usb_halinit.c +0 -2
index 5133d533674f..8bb2466d71a2 100644
@@ -1813,8 +1813,6 @@ static void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val)
  			}
  		}
  		break;
-	case HW_VAR_CHECK_TXBUF:
-		break;
  	case HW_VAR_APFM_ON_MAC:
  		haldata->bMacPwrCtrlOn = *val;
  		DBG_88E("%s: bMacPwrCtrlOn=%d\n", __func__, haldata->bMacPwrCtrlOn);
drivers/staging/r8188eu/include/hal_intf.h +0 -0
index cc8db98cd200..f1ebb6a2395d 100644

drivers/staging/r8188eu/include/hal_intf.h enum hw_variables { · line 89

Quoted 7 lines
drivers/staging/r8188eu/include/hal_intf.h +0 -1
@@ -84,7 +84,6 @@ enum hw_variables {
  	HW_VAR_EFUSE_BT_USAGE,
  	HW_VAR_EFUSE_BT_BYTES,
  	HW_VAR_FIFO_CLEARN_UP,
-	HW_VAR_CHECK_TXBUF,
  	HW_VAR_APFM_ON_MAC, /* Auto FSM to Turn On, include clock, isolation,
  			     * power control for MAC only */
  	/*  The valid upper nav range for the HW updating, if the true value is

Looks good to me.

Thanks,
Michael