On 06/02/2011 02:08 AM, RafaÅ MiÅecki wrote:
In case of BCMA cards SPROM is located in the ChipCommon core, it is not mapped as separated host window. So far we have met only SPROMs rev 8. SPROM layout seems to be the same as for SSB buses, so we decided to share SPROM struct and some defines. For now we extract MAC address only, this can be improved of course. Signed-off-by: RafaÅ MiÅecki<zajec5@xxxxxxxxx> +/************************************************** + * Validation. + **************************************************/ + +static inline u8 bcma_crc8(u8 crc, u8 data) +{
Somehow this crc8 looks quite familiar to me ;-) I send out a patch to John providing a crc8 as library module so you could consider using that. It will probably end up in wireless-testing before this patch (if accepted that is).
Gr. AvS -- Almost nobody dances sober, unless they happen to be insane. -- H.P. Lovecraft -- -- 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