[RFC] hostapd: allow bssid config on default interface

Johannes Berg johannes
Wed Nov 28 05:55:36 PST 2007


> -	hapd->drv_priv = hostapd_driver_init(hapd);
> +	if (b[0] | b[1] | b[2] | b[3] | b[4] | b[5]) {
> +		hapd->drv_priv = hostapd_driver_init_bssid(hapd, b);
> +	} else {
> +		hapd->drv_priv = hostapd_driver_init(hapd);
> +	}

Ok this is obviously wrong. Either the driver has to provide both
routines (which I'm tending towards right now) and then the driver patch
is wrong, or we pass a NULL bssid in the other case.

johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20071128/9aa8055d/attachment.pgp 



More information about the Hostap mailing list