projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b43d6c8
)
mwifiex: use eth_broadcast_addr() to assign broadcast address
author
Mao Wenan
<maowenan@huawei.com>
Wed, 24 Jul 2019 06:25:45 +0000
(14:25 +0800)
committer
Kalle Valo
<kvalo@codeaurora.org>
Wed, 24 Jul 2019 11:55:28 +0000
(14:55 +0300)
This patch is to use eth_broadcast_addr() to assign broadcast address
insetad of memcpy().
Signed-off-by: Mao Wenan <maowenan@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/tdls.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/marvell/mwifiex/tdls.c
b/drivers/net/wireless/marvell/mwifiex/tdls.c
index
18e654d
..
0931304
100644
(file)
--- a/
drivers/net/wireless/marvell/mwifiex/tdls.c
+++ b/
drivers/net/wireless/marvell/mwifiex/tdls.c
@@
-731,7
+731,6
@@
mwifiex_construct_tdls_action_frame(struct mwifiex_private *priv,
u16 status_code, struct sk_buff *skb)
{
struct ieee80211_mgmt *mgmt;
- u8 bc_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
int ret;
u16 capab;
struct ieee80211_ht_cap *ht_cap;
@@
-765,7
+764,7
@@
mwifiex_construct_tdls_action_frame(struct mwifiex_private *priv,
memmove(pos + ETH_ALEN, &mgmt->u.action.category,
sizeof(mgmt->u.action.u.tdls_discover_resp));
/* init address 4 */
-
memcpy(pos, bc_addr, ETH_ALEN
);
+
eth_broadcast_addr(pos
);
ret = mwifiex_tdls_append_rates_ie(priv, skb);
if (ret) {