[PATCH] Retreive shared frequency when a singly "phy" is shared between multiple interfaces
johannes at sipsolutions.net
Thu Nov 10 03:08:13 EST 2011
On Wed, 2011-11-09 at 23:34 -0800, Jithu Jance wrote:
> This patch implements shared_freq handler for driver_nl80211.c If a "p2p_group_add" happens after legacy STA association, then this
> patch will help to start the GO on the same frequency. This is useful when supplicant is started on multiple interface running over
> a singly "PHY".
> For e.g wpa_supplicant -iwlan0 .. -N -iwlan1 ...
Why are you doing that? wpa_supplicant should be creating p2p interfaces
by itself and in that case it knows already.
> +static int wpa_driver_nl80211_shared_freq(void *priv)
> + struct i802_bss *bss = priv;
> + struct wpa_driver_nl80211_data *drv = bss->drv;
> + struct nl80211_global *global = drv->global;
> + struct wpa_driver_nl80211_data *driver = NULL;
> + int freq = 0;
This patch is completely whitespace damaged.
More information about the HostAP