mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 16:12:59 +02:00
staging: vt6656: Remove unused rf_type in baseband.c
Remove rf_type that supports 5GHz band. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/77dcff8602084484532fcbd734aafd138087c5ee.1646935331.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c933388042
commit
10c8968968
|
|
@ -255,23 +255,18 @@ int vnt_vt3184_init(struct vnt_private *priv)
|
|||
dev_dbg(&priv->usb->dev, "RF Type %d\n", priv->rf_type);
|
||||
|
||||
if ((priv->rf_type == RF_AL2230) ||
|
||||
(priv->rf_type == RF_AL2230S) ||
|
||||
(priv->rf_type == RF_AIROHA7230)) {
|
||||
(priv->rf_type == RF_AL2230S)) {
|
||||
priv->bb_rx_conf = vnt_vt3184_al2230[10];
|
||||
length = sizeof(vnt_vt3184_al2230);
|
||||
addr = vnt_vt3184_al2230;
|
||||
|
||||
if (priv->rf_type == RF_AIROHA7230)
|
||||
addr[0xd7] = 0x06;
|
||||
|
||||
priv->bb_vga[0] = 0x1c;
|
||||
priv->bb_vga[1] = 0x10;
|
||||
priv->bb_vga[2] = 0x0;
|
||||
priv->bb_vga[3] = 0x0;
|
||||
|
||||
} else if ((priv->rf_type == RF_VT3226) ||
|
||||
(priv->rf_type == RF_VT3226D0) ||
|
||||
(priv->rf_type == RF_VT3342A0)) {
|
||||
(priv->rf_type == RF_VT3226D0)) {
|
||||
priv->bb_rx_conf = vnt_vt3184_vt3226d0[10];
|
||||
length = sizeof(vnt_vt3184_vt3226d0);
|
||||
c_addr = vnt_vt3184_vt3226d0;
|
||||
|
|
@ -305,7 +300,6 @@ int vnt_vt3184_init(struct vnt_private *priv)
|
|||
goto end;
|
||||
|
||||
if ((priv->rf_type == RF_VT3226) ||
|
||||
(priv->rf_type == RF_VT3342A0) ||
|
||||
(priv->rf_type == RF_VT3226D0)) {
|
||||
data = (priv->rf_type == RF_VT3226D0) ? 0x11 : 0x23;
|
||||
|
||||
|
|
@ -446,7 +440,6 @@ int vnt_update_pre_ed_threshold(struct vnt_private *priv, int scanning)
|
|||
switch (priv->rf_type) {
|
||||
case RF_AL2230:
|
||||
case RF_AL2230S:
|
||||
case RF_AIROHA7230:
|
||||
threshold = al2230_vnt_threshold;
|
||||
length = ARRAY_SIZE(al2230_vnt_threshold);
|
||||
break;
|
||||
|
|
@ -456,11 +449,6 @@ int vnt_update_pre_ed_threshold(struct vnt_private *priv, int scanning)
|
|||
threshold = vt3226_vnt_threshold;
|
||||
length = ARRAY_SIZE(vt3226_vnt_threshold);
|
||||
break;
|
||||
|
||||
case RF_VT3342A0:
|
||||
threshold = vt3342_vnt_threshold;
|
||||
length = ARRAY_SIZE(vt3342_vnt_threshold);
|
||||
break;
|
||||
}
|
||||
|
||||
if (!threshold)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user