diff options
author | Philipp Hortmann <philipp.g.hortmann@gmail.com> | 2022-03-05 22:32:20 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-03-14 18:32:39 +0100 |
commit | 65c873c37ec36bbecd1b7da753061d214f23474b (patch) | |
tree | 15113d073b3ec3e563e2cfc09f09a17a4df5c868 /drivers | |
parent | dd2837bdea0e92b3f0019d5db20bf753efc6d1d7 (diff) | |
download | linux-stable-65c873c37ec36bbecd1b7da753061d214f23474b.tar.gz linux-stable-65c873c37ec36bbecd1b7da753061d214f23474b.tar.bz2 linux-stable-65c873c37ec36bbecd1b7da753061d214f23474b.zip |
staging: vt6655: Remove unused byRFType in card.c
Remove byRFType that support 5GHz band.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/5554b243ae285e3274d9968575aadd1a79806b01.1646512837.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/vt6655/card.c | 56 |
1 files changed, 1 insertions, 55 deletions
diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6655/card.c index ee2d145778ed..1110366fc415 100644 --- a/drivers/staging/vt6655/card.c +++ b/drivers/staging/vt6655/card.c @@ -183,32 +183,11 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type) unsigned char bySlot = 0; unsigned char bySIFS = 0; unsigned char byDIFS = 0; - unsigned char data; int i; /* Set SIFS, DIFS, EIFS, SlotTime, CwMin */ if (bb_type == BB_TYPE_11A) { - if (priv->byRFType == RF_AIROHA7230) { - /* AL7230 use single PAPE and connect to PAPE_2.4G */ - MACvSetBBType(priv->port_offset, BB_TYPE_11G); - priv->abyBBVGA[0] = 0x20; - priv->abyBBVGA[2] = 0x10; - priv->abyBBVGA[3] = 0x10; - bb_read_embedded(priv, 0xE7, &data); - if (data == 0x1C) - bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); - - } else if (priv->byRFType == RF_UW2452) { - MACvSetBBType(priv->port_offset, BB_TYPE_11A); - priv->abyBBVGA[0] = 0x18; - bb_read_embedded(priv, 0xE7, &data); - if (data == 0x14) { - bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); - bb_write_embedded(priv, 0xE1, 0x57); - } - } else { - MACvSetBBType(priv->port_offset, BB_TYPE_11A); - } + MACvSetBBType(priv->port_offset, BB_TYPE_11A); bb_write_embedded(priv, 0x88, 0x03); bySlot = C_SLOT_SHORT; bySIFS = C_SIFS_A; @@ -216,22 +195,6 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type) byCWMaxMin = 0xA4; } else if (bb_type == BB_TYPE_11B) { MACvSetBBType(priv->port_offset, BB_TYPE_11B); - if (priv->byRFType == RF_AIROHA7230) { - priv->abyBBVGA[0] = 0x1C; - priv->abyBBVGA[2] = 0x00; - priv->abyBBVGA[3] = 0x00; - bb_read_embedded(priv, 0xE7, &data); - if (data == 0x20) - bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); - - } else if (priv->byRFType == RF_UW2452) { - priv->abyBBVGA[0] = 0x14; - bb_read_embedded(priv, 0xE7, &data); - if (data == 0x18) { - bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); - bb_write_embedded(priv, 0xE1, 0xD3); - } - } bb_write_embedded(priv, 0x88, 0x02); bySlot = C_SLOT_LONG; bySIFS = C_SIFS_BG; @@ -239,22 +202,6 @@ bool CARDbSetPhyParameter(struct vnt_private *priv, u8 bb_type) byCWMaxMin = 0xA5; } else { /* PK_TYPE_11GA & PK_TYPE_11GB */ MACvSetBBType(priv->port_offset, BB_TYPE_11G); - if (priv->byRFType == RF_AIROHA7230) { - priv->abyBBVGA[0] = 0x1C; - priv->abyBBVGA[2] = 0x00; - priv->abyBBVGA[3] = 0x00; - bb_read_embedded(priv, 0xE7, &data); - if (data == 0x20) - bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); - - } else if (priv->byRFType == RF_UW2452) { - priv->abyBBVGA[0] = 0x14; - bb_read_embedded(priv, 0xE7, &data); - if (data == 0x18) { - bb_write_embedded(priv, 0xE7, priv->abyBBVGA[0]); - bb_write_embedded(priv, 0xE1, 0xD3); - } - } bb_write_embedded(priv, 0x88, 0x08); bySIFS = C_SIFS_BG; @@ -417,7 +364,6 @@ void CARDbRadioPowerOff(struct vnt_private *priv) case RF_AIROHA: case RF_AL2230S: - case RF_AIROHA7230: MACvWordRegBitsOff(priv->port_offset, MAC_REG_SOFTPWRCTL, SOFTPWRCTL_SWPE2); MACvWordRegBitsOff(priv->port_offset, MAC_REG_SOFTPWRCTL, |