[PATCH 00/20] wpa_s: p2p: support nl80211 P2P_DEVICE interface

Arend van Spriel arend
Fri May 24 01:05:23 PDT 2013


On 05/23/2013 10:48 PM, Johannes Berg wrote:
>
> You really should be on IRC ;-)
>

Will give it a try.

>>> The current wireless-testing should have all the required fixes, can
>>> somebody verify that?
>>
>> I actually did and it is working with brcmfmac advertising P2P_DEVICE
>> and I would like to keep it in for 3.10, but it does not make much sense
>> if there is no user-space support (apart from iw).
>>
>> I tried getting hwsim to work with P2P_DEVICE by removing
>> 'p2p_no_group_iface=1' from the configuration files. wpa_supplicant will
>> create a P2P_GO interface but I get a failure when bringing the
>> interface up (see attached log). Creating a P2P_GO using iw and bringing
>> it up with ifconfig works fine.
>
>  From the log it seems you get -EBUSY, which is a bit odd. Are you sure
> your advertised interface combinations support what you were doing?

This log was testing with mac80211_hwsim, which has the following:

static const struct ieee80211_iface_limit hwsim_if_limits[] = {
	{ .max = 1, .types = BIT(NL80211_IFTYPE_ADHOC) },
	{ .max = 2048,  .types = BIT(NL80211_IFTYPE_STATION) |
				 BIT(NL80211_IFTYPE_P2P_CLIENT) |
#ifdef CONFIG_MAC80211_MESH
				 BIT(NL80211_IFTYPE_MESH_POINT) |
#endif
				 BIT(NL80211_IFTYPE_AP) |
				 BIT(NL80211_IFTYPE_P2P_GO) },
	{ .max = 1, .types = BIT(NL80211_IFTYPE_P2P_DEVICE) },
};

static struct ieee80211_iface_combination hwsim_if_comb = {
	.limits = hwsim_if_limits,
	.n_limits = ARRAY_SIZE(hwsim_if_limits),
	.max_interfaces = 2048,
	.num_different_channels = 1,
};

Crap. num_different_channels should probably be 2 here, right?

Gr. AvS




More information about the Hostap mailing list