Skip to content

Commit 78b33c6

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

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

drivers/staging/vt6656/card.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -369,10 +369,8 @@ int vnt_radio_power_off(struct vnt_private *priv)
369369
switch (priv->rf_type) {
370370
case RF_AL2230:
371371
case RF_AL2230S:
372-
case RF_AIROHA7230:
373372
case RF_VT3226:
374373
case RF_VT3226D0:
375-
case RF_VT3342A0:
376374
ret = vnt_mac_reg_bits_off(priv, MAC_REG_SOFTPWRCTL,
377375
(SOFTPWRCTL_SWPE2 |
378376
SOFTPWRCTL_SWPE3));
@@ -423,10 +421,8 @@ int vnt_radio_power_on(struct vnt_private *priv)
423421
switch (priv->rf_type) {
424422
case RF_AL2230:
425423
case RF_AL2230S:
426-
case RF_AIROHA7230:
427424
case RF_VT3226:
428425
case RF_VT3226D0:
429-
case RF_VT3342A0:
430426
ret = vnt_mac_reg_bits_on(priv, MAC_REG_SOFTPWRCTL,
431427
(SOFTPWRCTL_SWPE2 |
432428
SOFTPWRCTL_SWPE3));
@@ -445,9 +441,6 @@ int vnt_set_bss_mode(struct vnt_private *priv)
445441
unsigned char bb_vga_0 = 0x1c;
446442
unsigned char bb_vga_2_3 = 0x00;
447443

448-
if (priv->rf_type == RF_AIROHA7230 && priv->bb_type == BB_TYPE_11A)
449-
type = BB_TYPE_11G;
450-
451444
ret = vnt_mac_set_bb_type(priv, type);
452445
if (ret)
453446
return ret;
@@ -479,15 +472,6 @@ int vnt_set_bss_mode(struct vnt_private *priv)
479472
if (ret)
480473
return ret;
481474

482-
if (priv->rf_type == RF_AIROHA7230) {
483-
priv->bb_vga[0] = bb_vga_0;
484-
485-
ret = vnt_control_out_u8(priv, MESSAGE_REQUEST_BBREG,
486-
0xe7, priv->bb_vga[0]);
487-
if (ret)
488-
return ret;
489-
}
490-
491475
priv->bb_vga[2] = bb_vga_2_3;
492476
priv->bb_vga[3] = bb_vga_2_3;
493477

0 commit comments

Comments
 (0)