[PATCH] hostapd: Inherit correct MAC address for AP VLAN interfaces

Helmut Schaa helmut.schaa
Thu Feb 24 08:11:49 PST 2011


On Thu, Feb 24, 2011 at 5:09 PM, Helmut Schaa
<helmut.schaa at googlemail.com> wrote:
> diff --git a/src/ap/ap_drv_ops.c b/src/ap/ap_drv_ops.c
> index 7f9522a..c42fac2 100644
> --- a/src/ap/ap_drv_ops.c
> +++ b/src/ap/ap_drv_ops.c
> @@ -280,7 +280,7 @@ int hostapd_vlan_if_add(struct hostapd_data *hapd, const char *ifname)
> ?{
> ? ? ? ?char force_ifname[IFNAMSIZ];
> ? ? ? ?u8 if_addr[ETH_ALEN];
> - ? ? ? return hostapd_if_add(hapd, WPA_IF_AP_VLAN, ifname, NULL, NULL, NULL,
> + ? ? ? return hostapd_if_add(hapd, WPA_IF_AP_VLAN, ifname, hapd->own_addr, NULL, NULL,
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?force_ifname, if_addr);
> ?}

Sorry, line>80 chars. I'll resend in a minute ...



More information about the Hostap mailing list