mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 22:23:55 +00:00
staging: vt6656: Remove unused rf_type in card.c
Remove rf_type that supports 5GHz band. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/e768dbb116e79349aa083747729213d2d1ca7af9.1646935331.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8b0f74a8cf
commit
78b33c6004
@ -369,10 +369,8 @@ int vnt_radio_power_off(struct vnt_private *priv)
|
||||
switch (priv->rf_type) {
|
||||
case RF_AL2230:
|
||||
case RF_AL2230S:
|
||||
case RF_AIROHA7230:
|
||||
case RF_VT3226:
|
||||
case RF_VT3226D0:
|
||||
case RF_VT3342A0:
|
||||
ret = vnt_mac_reg_bits_off(priv, MAC_REG_SOFTPWRCTL,
|
||||
(SOFTPWRCTL_SWPE2 |
|
||||
SOFTPWRCTL_SWPE3));
|
||||
@ -423,10 +421,8 @@ int vnt_radio_power_on(struct vnt_private *priv)
|
||||
switch (priv->rf_type) {
|
||||
case RF_AL2230:
|
||||
case RF_AL2230S:
|
||||
case RF_AIROHA7230:
|
||||
case RF_VT3226:
|
||||
case RF_VT3226D0:
|
||||
case RF_VT3342A0:
|
||||
ret = vnt_mac_reg_bits_on(priv, MAC_REG_SOFTPWRCTL,
|
||||
(SOFTPWRCTL_SWPE2 |
|
||||
SOFTPWRCTL_SWPE3));
|
||||
@ -445,9 +441,6 @@ int vnt_set_bss_mode(struct vnt_private *priv)
|
||||
unsigned char bb_vga_0 = 0x1c;
|
||||
unsigned char bb_vga_2_3 = 0x00;
|
||||
|
||||
if (priv->rf_type == RF_AIROHA7230 && priv->bb_type == BB_TYPE_11A)
|
||||
type = BB_TYPE_11G;
|
||||
|
||||
ret = vnt_mac_set_bb_type(priv, type);
|
||||
if (ret)
|
||||
return ret;
|
||||
@ -479,15 +472,6 @@ int vnt_set_bss_mode(struct vnt_private *priv)
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (priv->rf_type == RF_AIROHA7230) {
|
||||
priv->bb_vga[0] = bb_vga_0;
|
||||
|
||||
ret = vnt_control_out_u8(priv, MESSAGE_REQUEST_BBREG,
|
||||
0xe7, priv->bb_vga[0]);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
priv->bb_vga[2] = bb_vga_2_3;
|
||||
priv->bb_vga[3] = bb_vga_2_3;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user