Commit 906f1f07 authored by Klaus-Dieter Wacker's avatar Klaus-Dieter Wacker Committed by David S. Miller

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: default avatarKlaus-Dieter Wacker <kdwacker@de.ibm.com>
Signed-off-by: default avatarFrank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6e5c172c
...@@ -2250,7 +2250,8 @@ void qeth_print_status_message(struct qeth_card *card) ...@@ -2250,7 +2250,8 @@ void qeth_print_status_message(struct qeth_card *card)
} }
/* fallthrough */ /* fallthrough */
case QETH_CARD_TYPE_IQD: 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] = (char) _ebcasc[(__u8)
card->info.mcl_level[0]]; card->info.mcl_level[0]];
card->info.mcl_level[1] = (char) _ebcasc[(__u8) card->info.mcl_level[1] = (char) _ebcasc[(__u8)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment