[PATCH 3/3] mesh: Fill Number of Peerings field in Mesh Formation Info

Bob Copeland me at bobcopeland.com
Fri Dec 19 10:10:36 EST 2014


On Fri, Dec 19, 2014 at 02:59:54PM +0900, Masashi Honma wrote:
>  		wpabuf_put_u8(buf, conf->mesh_sp_id);
>  		wpabuf_put_u8(buf, conf->mesh_auth_id);
> -		/* TODO: formation info */
> -		wpabuf_put_u8(buf, 0);
> +		/* TODO: Add Connected to Mesh Gate/AS bit*/
> +		wpabuf_put_u8(buf,
> +			(bss->num_plinks > 63 ? 63 : bss->num_plinks) << 1);

ACK, just a note for anyone else reading that I looked up what the std
had to say about max number of peerings being 8 bits while only having 6
bits here, and 8.4.2.100.7 says to do exactly the above.

AS bit will always be zero until someone implements 802.1X for mesh,
so it's only the mesh gate bit that's really missing.  I'm not sure
the best way we might export that from the kernel.

-- 
Bob Copeland %% http://bobcopeland.com/


More information about the HostAP mailing list