OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f440b12
)
cfg80211: pmsr: use eth_broadcast_addr() to assign broadcast address
author
Mao Wenan
<maowenan@huawei.com>
Sat, 16 Feb 2019 09:47:10 +0000
(17:47 +0800)
committer
Johannes Berg
<johannes.berg@intel.com>
Fri, 22 Feb 2019 12:34:30 +0000
(13:34 +0100)
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>
net/wireless/pmsr.c
patch
|
blob
|
history
diff --git
a/net/wireless/pmsr.c
b/net/wireless/pmsr.c
index
de92867
..
21139b8
100644
(file)
--- 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;