On Thu, 2008-02-07 at 02:05 +0100, Johannes Berg wrote: > > +int ieee80211_get_mesh_hdrlen(struct ieee80211s_hdr *meshhdr) > > +{ > > + int ae = meshhdr->flags & IEEE80211S_FLAGS_AE; > > + /* 7.1.3.5a.2 */ > > + switch (ae) { > > + case 0: > > + return 5; > > + case 1: > > + return 11; > > + case 2: > > + return 17; > > + case 3: > > + return 23; > > + default: > > + return 5; > > + } > > +} > > What the hell? This is utterly horrible! Can that be changed in the spec > so the header is always a multiple of four bytes? :) Well it actually can be changed as it is still a draft... Guess you just need to convince a few hardware manufacturers that the change is in their interest.. -- Luis Carlos Cobo Rus GnuPG ID: 44019B60 cozybit Inc. -- Luis Carlos Cobo Rus GnuPG ID: 44019B60 cozybit Inc. - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html