mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 23:25:54 +00:00
mwifiex: use eth_broadcast_addr() to assign broadcast address
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>
This commit is contained in:
parent
b43d6c8e8d
commit
15e830e90f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user