projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
307857d
)
mwifiex: always configure firmware mac address during changing virtual interface
author
Xinming Hu
<huxm@marvell.com>
Wed, 25 Apr 2018 09:38:13 +0000
(17:38 +0800)
committer
Kalle Valo
<kvalo@codeaurora.org>
Mon, 30 Apr 2018 10:23:43 +0000
(13:23 +0300)
When interface type changed, firmware using a new connction pointer.
We need Re-configure the mac address.
Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/marvell/mwifiex/main.c
b/drivers/net/wireless/marvell/mwifiex/main.c
index 99eaff97315cb723ca9ddefe8388bd9925b296b7..40c80e38a74b24365444ff72843faca33f3d1719 100644
(file)
--- a/
drivers/net/wireless/marvell/mwifiex/main.c
+++ b/
drivers/net/wireless/marvell/mwifiex/main.c
@@
-965,9
+965,6
@@
int mwifiex_set_mac_address(struct mwifiex_private *priv,
mac_addr ^= BIT_ULL(priv->bss_type + 8);
mac_addr += priv->bss_num;
}
-
- if (mac_addr == old_mac_addr)
- goto done;
}
u64_to_ether_addr(mac_addr, priv->curr_addr);
@@
-983,7
+980,6
@@
int mwifiex_set_mac_address(struct mwifiex_private *priv,
return ret;
}
-done:
ether_addr_copy(dev->dev_addr, priv->curr_addr);
return 0;
}