Commit ca5508bd authored by Ivan Safonov's avatar Ivan Safonov Committed by Greg Kroah-Hartman

staging:r8188eu: remove unused HW_VAR_RF_TYPE parameter of HT_caps_handler

rtw_hal_get_hwreg() does not used with HW_VAR_RF_TYPE parameter.
Remove HW_VAR_RF_TYPE switch case in rtw_hal_get_hwreg and definition.
Signed-off-by: default avatarIvan Safonov <insafonov@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 19a6e10e
...@@ -1745,9 +1745,6 @@ void rtw_hal_get_hwreg(struct adapter *Adapter, u8 variable, u8 *val) ...@@ -1745,9 +1745,6 @@ void rtw_hal_get_hwreg(struct adapter *Adapter, u8 variable, u8 *val)
/* BCN_VALID, BIT16 of REG_TDECTRL = BIT0 of REG_TDECTRL+2 */ /* BCN_VALID, BIT16 of REG_TDECTRL = BIT0 of REG_TDECTRL+2 */
val[0] = (BIT(0) & usb_read8(Adapter, REG_TDECTRL+2)) ? true : false; val[0] = (BIT(0) & usb_read8(Adapter, REG_TDECTRL+2)) ? true : false;
break; break;
case HW_VAR_RF_TYPE:
val[0] = RF_1T1R;
break;
case HW_VAR_FWLPS_RF_ON: case HW_VAR_FWLPS_RF_ON:
{ {
/* When we halt NIC, we should check if FW LPS is leave. */ /* When we halt NIC, we should check if FW LPS is leave. */
......
...@@ -57,7 +57,6 @@ enum hw_variables { ...@@ -57,7 +57,6 @@ enum hw_variables {
HW_VAR_ACK_PREAMBLE, HW_VAR_ACK_PREAMBLE,
HW_VAR_SEC_CFG, HW_VAR_SEC_CFG,
HW_VAR_BCN_VALID, HW_VAR_BCN_VALID,
HW_VAR_RF_TYPE,
HW_VAR_DM_FUNC_OP, HW_VAR_DM_FUNC_OP,
HW_VAR_DM_FUNC_SET, HW_VAR_DM_FUNC_SET,
HW_VAR_DM_FUNC_CLR, HW_VAR_DM_FUNC_CLR,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment