aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlaus-Dieter Wacker <kdwacker@de.ibm.com>2009-01-04 20:34:10 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-04 20:34:10 -0500
commit906f1f0768c736368244ac8fe6023c2b0c31b9ea (patch)
treed5c4bc6f15c6a4bf64dc0fccbd715855a8286dd9
parent6e5c172cf7ca1ab878cc6a6a4c1d52fef60f3ee0 (diff)
qeth: HiperSockets mcl string conversion (pre z9 mach)
The pre z9 machines provide an mcl string in EBCDIC format, z9 or later provide string in ASCII format. Signed-off-by: Klaus-Dieter Wacker <kdwacker@de.ibm.com> Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/s390/net/qeth_core_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c
index e783644a2105..ef6c225227cb 100644
--- a/drivers/s390/net/qeth_core_main.c
+++ b/drivers/s390/net/qeth_core_main.c
@@ -2250,7 +2250,8 @@ void qeth_print_status_message(struct qeth_card *card)
2250 } 2250 }
2251 /* fallthrough */ 2251 /* fallthrough */
2252 case QETH_CARD_TYPE_IQD: 2252 case QETH_CARD_TYPE_IQD:
2253 if (card->info.guestlan) { 2253 if ((card->info.guestlan) ||
2254 (card->info.mcl_level[0] & 0x80)) {
2254 card->info.mcl_level[0] = (char) _ebcasc[(__u8) 2255 card->info.mcl_level[0] = (char) _ebcasc[(__u8)
2255 card->info.mcl_level[0]]; 2256 card->info.mcl_level[0]];
2256 card->info.mcl_level[1] = (char) _ebcasc[(__u8) 2257 card->info.mcl_level[1] = (char) _ebcasc[(__u8)