[PATCH 3/3] Improve the IBSS/RSN mechanism

Antonio Quartulli ordex
Thu Jun 20 12:07:16 PDT 2013


Hi,

On Wed, Jun 19, 2013 at 10:11:34PM +0200, Antonio Quartulli wrote:
> +	if (!peer &&
> +	    peer->authentication_status & IBSS_RSN_AUTH_EAPOL_BY_PEER) {

this is supposed to be " if (peer" instead of !peer...
I'll wait a bit more some some other comments, then I will send v2.

Cheers,

> +		/* A peer sent us an AUTH message even if it already started an
> +		 * EAPOL session. We should reinit state machines here, but it's
> +		 * much more complicated than just deleting and recreating the
> +		 * state machine
> +		 */
> +		wpa_printf(MSG_DEBUG, "RSN: IBSS Reinitializing station " MACSTR,
> +			   MAC2STR(addr));
> +
> +		ibss_rsn_stop(ibss_rsn, addr);
> +		peer = NULL;
> +	}
> +
> +	if (!peer) {
> +		peer = ibss_rsn_peer_init(ibss_rsn, addr);
> +		if (!peer)
> +			return;
> +
> +		wpa_printf(MSG_DEBUG, "RSN: IBSS Auth started by peer " MACSTR,
> +			   MAC2STR(addr));
> +	}
> +
> +	/* reply with an AUTH frame now, before sending an EAPOL */
> +	ibss_rsn_send_auth(ibss_rsn, addr, 2);
> +	/* no need to start another AUTH challenge in the other way.. */
> +	ibss_rsn_peer_authenticated(ibss_rsn, peer, IBSS_RSN_AUTH_EAPOL_BY_US);
> +}
> +

-- 
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.shmoo.com/pipermail/hostap/attachments/20130620/2aa3eec9/attachment.pgp>



More information about the Hostap mailing list