summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e
diff options
context:
space:
mode:
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>2016-02-08 04:44:13 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-02-11 20:05:35 -0800
commit686f0c2301a762cf0fc73bd0cfaf62473ddc76d6 (patch)
tree776b1b3a7b93b625b25c6f334a5cfbbb6dbc855b /drivers/staging/rtl8192e
parentd9b36d5225d8e9b1f055c328283632773858dd7f (diff)
downloadtalos-obmc-linux-686f0c2301a762cf0fc73bd0cfaf62473ddc76d6.tar.gz
talos-obmc-linux-686f0c2301a762cf0fc73bd0cfaf62473ddc76d6.zip
staging: rtl8192e: prefer using eth_broadcast_addr()
Prefer using the eth_broadcast_addr() instead of memset to broadcast address 0xFF to the array. Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e')
-rw-r--r--drivers/staging/rtl8192e/rtllib_softmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c
index acccf9b44b98..19c3bffef73c 100644
--- a/drivers/staging/rtl8192e/rtllib_softmac.c
+++ b/drivers/staging/rtl8192e/rtllib_softmac.c
@@ -355,9 +355,9 @@ static inline struct sk_buff *rtllib_probe_req(struct rtllib_device *ieee)
req->header.frame_ctl = cpu_to_le16(RTLLIB_STYPE_PROBE_REQ);
req->header.duration_id = 0;
- memset(req->header.addr1, 0xff, ETH_ALEN);
+ eth_broadcast_addr(req->header.addr1);
ether_addr_copy(req->header.addr2, ieee->dev->dev_addr);
- memset(req->header.addr3, 0xff, ETH_ALEN);
+ eth_broadcast_addr(req->header.addr3);
tag = (u8 *) skb_put(skb, len + 2 + rate_len);
OpenPOWER on IntegriCloud