monitor: Check that manufacturer part of address is set

This commit is contained in:
Marcel Holtmann 2013-12-23 17:24:49 -08:00
parent 2441a9b9c5
commit 4bc39b2b34

View File

@ -86,6 +86,9 @@ bool hwdb_get_company(const uint8_t *bdaddr, char **company)
char modalias[11];
bool result;
if (!bdaddr[2] && !bdaddr[1] && !bdaddr[0])
return false;
sprintf(modalias, "OUI:%2.2X%2.2X%2.2X",
bdaddr[5], bdaddr[4], bdaddr[3]);