Skip to content

Commit 10c8968

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: vt6656: Remove unused rf_type in baseband.c
Remove rf_type that supports 5GHz band. Signed-off-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/77dcff8602084484532fcbd734aafd138087c5ee.1646935331.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent c933388 commit 10c8968

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

drivers/staging/vt6656/baseband.c

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -255,23 +255,18 @@ int vnt_vt3184_init(struct vnt_private *priv)
255255
dev_dbg(&priv->usb->dev, "RF Type %d\n", priv->rf_type);
256256

257257
if ((priv->rf_type == RF_AL2230) ||
258-
(priv->rf_type == RF_AL2230S) ||
259-
(priv->rf_type == RF_AIROHA7230)) {
258+
(priv->rf_type == RF_AL2230S)) {
260259
priv->bb_rx_conf = vnt_vt3184_al2230[10];
261260
length = sizeof(vnt_vt3184_al2230);
262261
addr = vnt_vt3184_al2230;
263262

264-
if (priv->rf_type == RF_AIROHA7230)
265-
addr[0xd7] = 0x06;
266-
267263
priv->bb_vga[0] = 0x1c;
268264
priv->bb_vga[1] = 0x10;
269265
priv->bb_vga[2] = 0x0;
270266
priv->bb_vga[3] = 0x0;
271267

272268
} else if ((priv->rf_type == RF_VT3226) ||
273-
(priv->rf_type == RF_VT3226D0) ||
274-
(priv->rf_type == RF_VT3342A0)) {
269+
(priv->rf_type == RF_VT3226D0)) {
275270
priv->bb_rx_conf = vnt_vt3184_vt3226d0[10];
276271
length = sizeof(vnt_vt3184_vt3226d0);
277272
c_addr = vnt_vt3184_vt3226d0;
@@ -305,7 +300,6 @@ int vnt_vt3184_init(struct vnt_private *priv)
305300
goto end;
306301

307302
if ((priv->rf_type == RF_VT3226) ||
308-
(priv->rf_type == RF_VT3342A0) ||
309303
(priv->rf_type == RF_VT3226D0)) {
310304
data = (priv->rf_type == RF_VT3226D0) ? 0x11 : 0x23;
311305

@@ -446,7 +440,6 @@ int vnt_update_pre_ed_threshold(struct vnt_private *priv, int scanning)
446440
switch (priv->rf_type) {
447441
case RF_AL2230:
448442
case RF_AL2230S:
449-
case RF_AIROHA7230:
450443
threshold = al2230_vnt_threshold;
451444
length = ARRAY_SIZE(al2230_vnt_threshold);
452445
break;
@@ -456,11 +449,6 @@ int vnt_update_pre_ed_threshold(struct vnt_private *priv, int scanning)
456449
threshold = vt3226_vnt_threshold;
457450
length = ARRAY_SIZE(vt3226_vnt_threshold);
458451
break;
459-
460-
case RF_VT3342A0:
461-
threshold = vt3342_vnt_threshold;
462-
length = ARRAY_SIZE(vt3342_vnt_threshold);
463-
break;
464452
}
465453

466454
if (!threshold)

0 commit comments

Comments
 (0)