Skip to contentSkip to conversation

staging: rtl8188eu: use eth_broadcast_addr() in place of memset

PATCH New Gujulan Elango, Hari Prasath (H.) 1 participant 1 message Jan 20, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8188eu: use eth_broadcast_addr() in place of memset

From: Hari Prasath Gujulan Elango

Replace the memset of array to broadcast address 0xFF by using the eth_broadcast_addr() API

---
 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c +1 -1
index a076ede..aec20bb 100644
@@ -1907,7 +1907,7 @@ static int rtw_wx_set_enc_ext(struct net_device *dev,
 	memset(param, 0, param_len);
 
 	param->cmd = IEEE_CMD_SET_ENCRYPTION;
-	memset(param->sta_addr, 0xff, ETH_ALEN);
+	eth_broadcast_addr(param->sta_addr);
 
 	switch (pext->alg) {
 	case IW_ENCODE_ALG_NONE:
Signature · 1 line
1.9.1