Hi Frederic, On Thu, May 31, 2012 at 3:09 PM, Dalleau, Frederic <frederic.dalleau@xxxxxxxxx> wrote: > Luiz, > > On Thu, May 31, 2012 at 12:38 PM, Luiz Augusto von Dentz > <luiz.dentz@xxxxxxxxx> wrote: >> Hi Frédéric, >> Perhaps you can have a macro for getting just the header type without >> the extension bit e.g. BNEP_HEADER(type) ((type) & ~BNEP_EXT_HEADER) >> > > Why not, but in this case, it would make sense to also define a macro > for reading the extension bit > Something like : #define BNEP_EXTENDED(type) ((type) & BNEP_EXT_HEADER) Yep, anything that makes it more obvious what it is doing is a good idea to have. -- Luiz Augusto von Dentz -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html