atheros: Remove redundant l2_packet_get_own_addr call
Commit deca6eff74
added a redundant call
to l2_packet_get_own_addr. Use the information we already have in
atheros_init.
Signed-hostap: Baruch Siach <baruch@tkos.co.il>
This commit is contained in:
parent
58fd49c05d
commit
b49019dd3d
1 changed files with 1 additions and 2 deletions
|
@ -976,8 +976,6 @@ static int atheros_receive_pkt(struct atheros_driver_data *drv)
|
||||||
if (drv->sock_raw == NULL)
|
if (drv->sock_raw == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
#endif /* CONFIG_WPS || CONFIG_IEEE80211R */
|
#endif /* CONFIG_WPS || CONFIG_IEEE80211R */
|
||||||
if (l2_packet_get_own_addr(drv->sock_xmit, drv->own_addr))
|
|
||||||
return -1;
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1656,6 +1654,7 @@ atheros_init(struct hostapd_data *hapd, struct wpa_init_params *params)
|
||||||
goto bad;
|
goto bad;
|
||||||
if (l2_packet_get_own_addr(drv->sock_xmit, params->own_addr))
|
if (l2_packet_get_own_addr(drv->sock_xmit, params->own_addr))
|
||||||
goto bad;
|
goto bad;
|
||||||
|
os_memcpy(drv->own_addr, params->own_addr, ETH_ALEN);
|
||||||
if (params->bridge[0]) {
|
if (params->bridge[0]) {
|
||||||
wpa_printf(MSG_DEBUG, "Configure bridge %s for EAPOL traffic.",
|
wpa_printf(MSG_DEBUG, "Configure bridge %s for EAPOL traffic.",
|
||||||
params->bridge[0]);
|
params->bridge[0]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue