[PATCH 12/13] [PATCH 12/13] driver_nl80211: subscribe to spurious class3 frame

Johannes Berg johannes
Fri Oct 14 08:24:27 PDT 2011


> 
> +static void nl80211_spurious_class3_frame(struct i802_bss *bss,
> +					  struct nlattr **tb)
> +{
> +	struct wpa_driver_nl80211_data *drv = bss->drv;
> +	union wpa_event_data event;
> +	u8 bssid[ETH_ALEN];
> +
> +	if (!tb[NL80211_ATTR_MAC])
> +		return;
> +
> +	if (linux_get_ifhwaddr(drv->ioctl_sock, bss->ifname, bssid) < 0)
> +		return;

FWIW, I consider this a hack -- we should know the bssid in the i802_bss
struct, but I didn't wrap my head around how to do that yet.

johannes




More information about the Hostap mailing list