qeth: HiperSockets mcl string conversion (pre z9 mach)
authorKlaus-Dieter Wacker <kdwacker@de.ibm.com>
Mon, 5 Jan 2009 01:34:10 +0000 (17:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Jan 2009 01:34:10 +0000 (17:34 -0800)
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>
drivers/s390/net/qeth_core_main.c

index e783644a2105b41d7b45e2fda6318f72badae3da..ef6c225227cbc939dbf56b709f83a778f05f8dae 100644 (file)
@@ -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)