bcmclm: new tool for reading Broadcom's CLM data
Broadcom developed CLM format for devices vendors to provide regulatory
configuration independently of executable firmware. They contain info
about countries, channels and rates.
CLM data can be packaged with chipset info as CLM BLOB and uploaded to
FullMAC firmware for complete channel support and maximum transmission
power.
CLM binary format is a bit tricky. It consists of a lot of binary
structs with all kind of numbers and flags. In-file addresses of those
structs and then stored in parent structs.
This tool provides initial support for reading CLM data content. It
parses the root struct and follows info lower level structs.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>