diff options
Diffstat (limited to 'drivers/net/skfp/smt.c')
-rw-r--r-- | drivers/net/skfp/smt.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/net/skfp/smt.c b/drivers/net/skfp/smt.c index 99a776a51fb5..fe847800acdc 100644 --- a/drivers/net/skfp/smt.c +++ b/drivers/net/skfp/smt.c | |||
@@ -18,6 +18,7 @@ | |||
18 | #include "h/fddi.h" | 18 | #include "h/fddi.h" |
19 | #include "h/smc.h" | 19 | #include "h/smc.h" |
20 | #include "h/smt_p.h" | 20 | #include "h/smt_p.h" |
21 | #include <linux/bitrev.h> | ||
21 | 22 | ||
22 | #define KERNEL | 23 | #define KERNEL |
23 | #include "h/smtstate.h" | 24 | #include "h/smtstate.h" |
@@ -26,8 +27,6 @@ | |||
26 | static const char ID_sccs[] = "@(#)smt.c 2.43 98/11/23 (C) SK " ; | 27 | static const char ID_sccs[] = "@(#)smt.c 2.43 98/11/23 (C) SK " ; |
27 | #endif | 28 | #endif |
28 | 29 | ||
29 | extern const u_char canonical[256] ; | ||
30 | |||
31 | /* | 30 | /* |
32 | * FC in SMbuf | 31 | * FC in SMbuf |
33 | */ | 32 | */ |
@@ -180,7 +179,7 @@ void smt_agent_init(struct s_smc *smc) | |||
180 | driver_get_bia(smc,&smc->mib.fddiSMTStationId.sid_node) ; | 179 | driver_get_bia(smc,&smc->mib.fddiSMTStationId.sid_node) ; |
181 | for (i = 0 ; i < 6 ; i ++) { | 180 | for (i = 0 ; i < 6 ; i ++) { |
182 | smc->mib.fddiSMTStationId.sid_node.a[i] = | 181 | smc->mib.fddiSMTStationId.sid_node.a[i] = |
183 | canonical[smc->mib.fddiSMTStationId.sid_node.a[i]] ; | 182 | bitrev8(smc->mib.fddiSMTStationId.sid_node.a[i]); |
184 | } | 183 | } |
185 | smc->mib.fddiSMTManufacturerData[0] = | 184 | smc->mib.fddiSMTManufacturerData[0] = |
186 | smc->mib.fddiSMTStationId.sid_node.a[0] ; | 185 | smc->mib.fddiSMTStationId.sid_node.a[0] ; |
@@ -2049,9 +2048,8 @@ static void hwm_conv_can(struct s_smc *smc, char *data, int len) | |||
2049 | 2048 | ||
2050 | SK_UNUSED(smc) ; | 2049 | SK_UNUSED(smc) ; |
2051 | 2050 | ||
2052 | for (i = len; i ; i--, data++) { | 2051 | for (i = len; i ; i--, data++) |
2053 | *data = canonical[*(u_char *)data] ; | 2052 | *data = bitrev8(*data); |
2054 | } | ||
2055 | } | 2053 | } |
2056 | #endif | 2054 | #endif |
2057 | 2055 | ||