wireless: Use eth_<foo>_addr instead of memset
Use the built-in function instead of memset. Miscellanea: Add #include <linux/etherdevice.h> where appropriate Use ETH_ALEN instead of 6 Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
519983b129
commit
93803b3385
@@ -168,7 +168,7 @@ static int orinoco_ioctl_setwap(struct net_device *dev,
|
||||
if (is_zero_ether_addr(ap_addr->sa_data) ||
|
||||
is_broadcast_ether_addr(ap_addr->sa_data)) {
|
||||
priv->bssid_fixed = 0;
|
||||
memset(priv->desired_bssid, 0, ETH_ALEN);
|
||||
eth_zero_addr(priv->desired_bssid);
|
||||
|
||||
/* "off" means keep existing connection */
|
||||
if (ap_addr->sa_data[0] == 0) {
|
||||
|
Reference in New Issue
Block a user