From: Klaus-Dieter Wacker Date: Mon, 5 Jan 2009 01:34:10 +0000 (-0800) Subject: qeth: HiperSockets mcl string conversion (pre z9 mach) X-Git-Tag: v2.6.29-rc1~502^2~23 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=906f1f0768c736368244ac8fe6023c2b0c31b9ea;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: Frank Blaschka Signed-off-by: David S. Miller --- diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index e783644a210..ef6c225227c 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) } /* fallthrough */ case QETH_CARD_TYPE_IQD: - if (card->info.guestlan) { + if ((card->info.guestlan) || + (card->info.mcl_level[0] & 0x80)) { card->info.mcl_level[0] = (char) _ebcasc[(__u8) card->info.mcl_level[0]]; card->info.mcl_level[1] = (char) _ebcasc[(__u8)