mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 21:54:33 +08:00
monitor: Check that manufacturer part of address is set
This commit is contained in:
parent
2441a9b9c5
commit
4bc39b2b34
@ -86,6 +86,9 @@ bool hwdb_get_company(const uint8_t *bdaddr, char **company)
|
|||||||
char modalias[11];
|
char modalias[11];
|
||||||
bool result;
|
bool result;
|
||||||
|
|
||||||
|
if (!bdaddr[2] && !bdaddr[1] && !bdaddr[0])
|
||||||
|
return false;
|
||||||
|
|
||||||
sprintf(modalias, "OUI:%2.2X%2.2X%2.2X",
|
sprintf(modalias, "OUI:%2.2X%2.2X%2.2X",
|
||||||
bdaddr[5], bdaddr[4], bdaddr[3]);
|
bdaddr[5], bdaddr[4], bdaddr[3]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user