wcnss_qmi: Generate a fixed random mac address if the NV doesn't provide one

If the NV is corrupted or blanked out, QMI won't return a MAC address
and prima will fallback to a fixed one. If the board defines a
TARGET_WCNSS_MAC_PREFIX value (2 to 4 hex values), use that prefix
to generate a random (and persistent) hwaddr instead.

For "TARGET_WCNSS_MAC_PREFIX := 0a0b0c0d", the last 2 bytes will be
pseudo-randomized, and the final address will be in the
"0a:0b:0c:0d:XX:YY" format.

Change-Id: Ie38cb5d3724223b2ec1ae45e6a9a4f2285229731
2 files changed
tree: 15d1b9295eb38d42ad12bd670da48306bfff3ab9
  1. cld80211-lib/
  2. qcwcn/
  3. wcnss-service/
  4. Android.mk