|
@@ -1610,7 +1610,7 @@ int hci_get_dev_info(void __user *arg)
|
|
|
|
|
|
strcpy(di.name, hdev->name);
|
|
|
di.bdaddr = hdev->bdaddr;
|
|
|
- di.type = (hdev->bus & 0x0f) | (hdev->dev_type << 4);
|
|
|
+ di.type = (hdev->bus & 0x0f) | ((hdev->dev_type & 0x03) << 4);
|
|
|
di.flags = hdev->flags;
|
|
|
di.pkt_type = hdev->pkt_type;
|
|
|
if (lmp_bredr_capable(hdev)) {
|