summaryrefslogtreecommitdiff
path: root/net/wireless/pmsr.c
diff options
context:
space:
mode:
authorMao Wenan <maowenan@huawei.com>2019-02-16 12:47:10 +0300
committerJohannes Berg <johannes.berg@intel.com>2019-02-22 15:34:30 +0300
commit767637416e218d2d3ba7e1697b8a72a375797866 (patch)
tree11361707043ef76728068ddbae91cc7101dedc2f /net/wireless/pmsr.c
parentf440b125450dfc65ce0386eb231da2f663c45ca0 (diff)
downloadlinux-767637416e218d2d3ba7e1697b8a72a375797866.tar.xz
cfg80211: pmsr: use eth_broadcast_addr() to assign broadcast address
This patch is to use eth_broadcast_addr() to assign broadcast address insetad of memset(). Signed-off-by: Mao Wenan <maowenan@huawei.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/pmsr.c')
-rw-r--r--net/wireless/pmsr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/pmsr.c b/net/wireless/pmsr.c
index de9286703280..21139b82749f 100644
--- a/net/wireless/pmsr.c
+++ b/net/wireless/pmsr.c
@@ -258,7 +258,7 @@ int nl80211_pmsr_start(struct sk_buff *skb, struct genl_info *info)
} else {
memcpy(req->mac_addr, nla_data(info->attrs[NL80211_ATTR_MAC]),
ETH_ALEN);
- memset(req->mac_addr_mask, 0xff, ETH_ALEN);
+ eth_broadcast_addr(req->mac_addr_mask);
}
idx = 0;