diff options
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_main.c')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index 8f9f3e9fbfce..01de1a3bf94e 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c | |||
@@ -224,7 +224,7 @@ int prism2_wds_del(local_info_t *local, u8 *remote_addr, | |||
224 | 224 | ||
225 | if (selected) { | 225 | if (selected) { |
226 | if (do_not_remove) | 226 | if (do_not_remove) |
227 | memset(selected->u.wds.remote_addr, 0, ETH_ALEN); | 227 | eth_zero_addr(selected->u.wds.remote_addr); |
228 | else { | 228 | else { |
229 | hostap_remove_interface(selected->dev, rtnl_locked, 0); | 229 | hostap_remove_interface(selected->dev, rtnl_locked, 0); |
230 | local->wds_connections--; | 230 | local->wds_connections--; |
@@ -1087,7 +1087,7 @@ int prism2_sta_deauth(local_info_t *local, u16 reason) | |||
1087 | 1087 | ||
1088 | ret = prism2_sta_send_mgmt(local, local->bssid, IEEE80211_STYPE_DEAUTH, | 1088 | ret = prism2_sta_send_mgmt(local, local->bssid, IEEE80211_STYPE_DEAUTH, |
1089 | (u8 *) &val, 2); | 1089 | (u8 *) &val, 2); |
1090 | memset(wrqu.ap_addr.sa_data, 0, ETH_ALEN); | 1090 | eth_zero_addr(wrqu.ap_addr.sa_data); |
1091 | wireless_send_event(local->dev, SIOCGIWAP, &wrqu, NULL); | 1091 | wireless_send_event(local->dev, SIOCGIWAP, &wrqu, NULL); |
1092 | return ret; | 1092 | return ret; |
1093 | } | 1093 | } |