[PATCHv2] wpa_supplicant: support IBSS RSN STA authorization

Jouni Malinen j at w1.fi
Sun Jan 29 12:52:31 EST 2012

On Sun, Jan 29, 2012 at 05:10:35PM +0100, Antonio Quartulli wrote:
> In IBSS RSN cfg80211/mac80211 now waits for userspace to authorize new stations.
> This patch makes wpa_supplicant notify the driver when a station can be
> considered authorised.

> - If the kernel has not been patched already with the corresponding
> "cfg80211/mac80211: userspace peer authorization in IBSS" patch, the
> set_station message will simply return EINVAL and wpa_s will continue to work
> as usual.

I prefer to wait with this until the kernel patch gets approved and
pushed into wireless-testing.git.

> diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
> @@ -6427,6 +6427,9 @@ retry:
>  		NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, params->bssid);
>  	}
> +	if (params->key_mgmt_suite == KEY_MGMT_802_1X)

Could you please explain what this is trying to do? It does not look
correct taking into account that I would assume similar control port
behavior to be used with KEY_MGMT_802_1X, KEY_MGMT_PSK,
KEY_MGMT_802_1X_SHA256, and KEY_MGMT_PSK_SHA256.

Jouni Malinen                                            PGP id EFC895FA

More information about the HostAP mailing list