Commit 15e830e9 authored by Mao Wenan's avatar Mao Wenan Committed by Kalle Valo

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: default avatarMao Wenan <maowenan@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent b43d6c8e
...@@ -731,7 +731,6 @@ mwifiex_construct_tdls_action_frame(struct mwifiex_private *priv, ...@@ -731,7 +731,6 @@ mwifiex_construct_tdls_action_frame(struct mwifiex_private *priv,
u16 status_code, struct sk_buff *skb) u16 status_code, struct sk_buff *skb)
{ {
struct ieee80211_mgmt *mgmt; struct ieee80211_mgmt *mgmt;
u8 bc_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
int ret; int ret;
u16 capab; u16 capab;
struct ieee80211_ht_cap *ht_cap; struct ieee80211_ht_cap *ht_cap;
...@@ -765,7 +764,7 @@ mwifiex_construct_tdls_action_frame(struct mwifiex_private *priv, ...@@ -765,7 +764,7 @@ mwifiex_construct_tdls_action_frame(struct mwifiex_private *priv,
memmove(pos + ETH_ALEN, &mgmt->u.action.category, memmove(pos + ETH_ALEN, &mgmt->u.action.category,
sizeof(mgmt->u.action.u.tdls_discover_resp)); sizeof(mgmt->u.action.u.tdls_discover_resp));
/* init address 4 */ /* init address 4 */
memcpy(pos, bc_addr, ETH_ALEN); eth_broadcast_addr(pos);
ret = mwifiex_tdls_append_rates_ie(priv, skb); ret = mwifiex_tdls_append_rates_ie(priv, skb);
if (ret) { if (ret) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment