From 1f8fb96a65a6a52750bef40ff019a84df6b2a391 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 29 Dec 2013 15:24:48 -0800 Subject: [PATCH] tools: Check class of device value for 3D display --- tools/3dsp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/3dsp.c b/tools/3dsp.c index 50e60a87d..ba5b9dbdc 100644 --- a/tools/3dsp.c +++ b/tools/3dsp.c @@ -138,6 +138,10 @@ static void ext_inquiry_result(const void *data, uint8_t size, void *user_data) { const struct bt_hci_evt_ext_inquiry_result *evt = data; + if (evt->dev_class[0] != 0x3c || evt->dev_class[1] != 0x04 + || evt->dev_class[2] != 0x08) + return; + if (evt->data[0]) { struct bt_hci_cmd_truncated_page cmd;