Skip to content

Commit b7711a8

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: vt6655: Remove unused byRFType in baseband.c
Remove byRFType that support 5GHz band. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/198341a249ea67acbf1be00b6465aa6a4eaef6e1.1646512837.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1ffba35 commit b7711a8

1 file changed

Lines changed: 0 additions & 80 deletions

File tree

drivers/staging/vt6655/baseband.c

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -2065,54 +2065,6 @@ bool bb_vt3253_init(struct vnt_private *priv)
20652065
priv->dbm_threshold[1] = -50;
20662066
priv->dbm_threshold[2] = 0;
20672067
priv->dbm_threshold[3] = 0;
2068-
} else if (by_rf_type == RF_UW2452) {
2069-
for (ii = 0; ii < CB_VT3253B0_INIT_FOR_UW2451; ii++)
2070-
result &= bb_write_embedded(priv,
2071-
byVT3253B0_UW2451[ii][0],
2072-
byVT3253B0_UW2451[ii][1]);
2073-
2074-
/* Init ANT B select,
2075-
* TX Config CR09 = 0x61->0x45,
2076-
* 0x45->0x41(VC1/VC2 define, make the ANT_A, ANT_B inverted)
2077-
*/
2078-
2079-
/*bResult &= bb_write_embedded(iobase,0x09,0x41);*/
2080-
2081-
/* Init ANT B select,
2082-
* RX Config CR10 = 0x28->0x2A,
2083-
* 0x2A->0x28(VC1/VC2 define,
2084-
* make the ANT_A, ANT_B inverted)
2085-
*/
2086-
2087-
/*bResult &= bb_write_embedded(iobase,0x0a,0x28);*/
2088-
/* Select VC1/VC2, CR215 = 0x02->0x06 */
2089-
result &= bb_write_embedded(priv, 0xd7, 0x06);
2090-
2091-
/* {{RobertYu:20050125, request by Jack */
2092-
result &= bb_write_embedded(priv, 0x90, 0x20);
2093-
result &= bb_write_embedded(priv, 0x97, 0xeb);
2094-
/* }} */
2095-
2096-
/* {{RobertYu:20050221, request by Jack */
2097-
result &= bb_write_embedded(priv, 0xa6, 0x00);
2098-
result &= bb_write_embedded(priv, 0xa8, 0x30);
2099-
/* }} */
2100-
result &= bb_write_embedded(priv, 0xb0, 0x58);
2101-
2102-
for (ii = 0; ii < CB_VT3253B0_AGC; ii++)
2103-
result &= bb_write_embedded(priv,
2104-
byVT3253B0_AGC[ii][0], byVT3253B0_AGC[ii][1]);
2105-
2106-
priv->abyBBVGA[0] = 0x14;
2107-
priv->abyBBVGA[1] = 0x0A;
2108-
priv->abyBBVGA[2] = 0x0;
2109-
priv->abyBBVGA[3] = 0x0;
2110-
priv->dbm_threshold[0] = -60;
2111-
priv->dbm_threshold[1] = -50;
2112-
priv->dbm_threshold[2] = 0;
2113-
priv->dbm_threshold[3] = 0;
2114-
/* }} RobertYu */
2115-
21162068
} else if (by_rf_type == RF_VT3226) {
21172069
for (ii = 0; ii < CB_VT3253B0_INIT_FOR_AIROHA2230; ii++)
21182070
result &= bb_write_embedded(priv,
@@ -2134,38 +2086,6 @@ bool bb_vt3253_init(struct vnt_private *priv)
21342086
/* Fix VT3226 DFC system timing issue */
21352087
MACvSetRFLE_LatchBase(iobase);
21362088
/* {{ RobertYu: 20050104 */
2137-
} else if (by_rf_type == RF_AIROHA7230) {
2138-
for (ii = 0; ii < CB_VT3253B0_INIT_FOR_AIROHA2230; ii++)
2139-
result &= bb_write_embedded(priv,
2140-
byVT3253B0_AIROHA2230[ii][0],
2141-
byVT3253B0_AIROHA2230[ii][1]);
2142-
2143-
/* {{ RobertYu:20050223, request by JerryChung */
2144-
/* Init ANT B select,TX Config CR09 = 0x61->0x45,
2145-
* 0x45->0x41(VC1/VC2 define, make the ANT_A, ANT_B inverted)
2146-
*/
2147-
/* bResult &= bb_write_embedded(iobase,0x09,0x41);*/
2148-
/* Init ANT B select,RX Config CR10 = 0x28->0x2A,
2149-
* 0x2A->0x28(VC1/VC2 define, make the ANT_A, ANT_B inverted)
2150-
*/
2151-
/* bResult &= BBbWriteEmbedded(iobase,0x0a,0x28);*/
2152-
/* Select VC1/VC2, CR215 = 0x02->0x06 */
2153-
result &= bb_write_embedded(priv, 0xd7, 0x06);
2154-
/* }} */
2155-
2156-
for (ii = 0; ii < CB_VT3253B0_AGC; ii++)
2157-
result &= bb_write_embedded(priv,
2158-
byVT3253B0_AGC[ii][0], byVT3253B0_AGC[ii][1]);
2159-
2160-
priv->abyBBVGA[0] = 0x1C;
2161-
priv->abyBBVGA[1] = 0x10;
2162-
priv->abyBBVGA[2] = 0x0;
2163-
priv->abyBBVGA[3] = 0x0;
2164-
priv->dbm_threshold[0] = -70;
2165-
priv->dbm_threshold[1] = -48;
2166-
priv->dbm_threshold[2] = 0;
2167-
priv->dbm_threshold[3] = 0;
2168-
/* }} RobertYu */
21692089
} else {
21702090
/* No VGA Table now */
21712091
priv->bUpdateBBVGA = false;

0 commit comments

Comments
 (0)