Commit a5f7d653 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: ks7010: use ether_addr_copy in get_ap_information function

This commit make use of ether_addr_copy to copy ethernet
address instead of copy it using memcpy.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6663f11b
...@@ -200,7 +200,7 @@ int get_ap_information(struct ks_wlan_private *priv, struct ap_info *ap_info, ...@@ -200,7 +200,7 @@ int get_ap_information(struct ks_wlan_private *priv, struct ap_info *ap_info,
memset(ap, 0, sizeof(struct local_ap)); memset(ap, 0, sizeof(struct local_ap));
memcpy(ap->bssid, ap_info->bssid, ETH_ALEN); ether_addr_copy(ap->bssid, ap_info->bssid);
ap->rssi = ap_info->rssi; ap->rssi = ap_info->rssi;
ap->sq = ap_info->sq; ap->sq = ap_info->sq;
ap->noise = ap_info->noise; ap->noise = ap_info->noise;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment