From: Carsten Otte Date: Thu, 22 Jul 2010 23:15:04 +0000 (+0000) Subject: qeth: Clear mac_bits field when switching between Layer 2 and Layer 3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75e0de13631e115768a97131a2d7f5259217512d;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git qeth: Clear mac_bits field when switching between Layer 2 and Layer 3 This patch fixes a problem that occurs when switching from layer 3 to layer 2 mode. Resetting this mac_bits makes sure that we retrieve our mac address from the card, otherwise the interface simply would'nt work. Signed-off-by: Carsten Otte Signed-off-by: Frank Blaschka Signed-off-by: David S. Miller --- diff --git a/drivers/s390/net/qeth_core_sys.c b/drivers/s390/net/qeth_core_sys.c index 2eb022ff2610..6b7fd88e8e4d 100644 --- a/drivers/s390/net/qeth_core_sys.c +++ b/drivers/s390/net/qeth_core_sys.c @@ -433,6 +433,7 @@ static ssize_t qeth_dev_layer2_store(struct device *dev, if (card->options.layer2 == newdis) goto out; else { + card->info.mac_bits = 0; if (card->discipline.ccwgdriver) { card->discipline.ccwgdriver->remove(card->gdev); qeth_core_free_discipline(card);