mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Signed-off-by: Frank Blaschka <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
6298263ac0
commit
75e0de1363
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue