mgmt.c (441ad2d04123eecb06d7c14948a0e7b07bf75aa5) mgmt.c (6acd7db41dc2b6bc91b930edf21fbfd8654cbb68)
1/*
2 BlueZ - Bluetooth protocol stack for Linux
3
4 Copyright (C) 2010 Nokia Corporation
5 Copyright (C) 2011-2012 Intel Corporation
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as

--- 710 unchanged lines hidden (view full) ---

719
720 if (test_bit(HCI_SERVICE_CACHE, &hdev->dev_flags))
721 return;
722
723 cod[0] = hdev->minor_class;
724 cod[1] = hdev->major_class;
725 cod[2] = get_service_classes(hdev);
726
1/*
2 BlueZ - Bluetooth protocol stack for Linux
3
4 Copyright (C) 2010 Nokia Corporation
5 Copyright (C) 2011-2012 Intel Corporation
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as

--- 710 unchanged lines hidden (view full) ---

719
720 if (test_bit(HCI_SERVICE_CACHE, &hdev->dev_flags))
721 return;
722
723 cod[0] = hdev->minor_class;
724 cod[1] = hdev->major_class;
725 cod[2] = get_service_classes(hdev);
726
727 if (test_bit(HCI_LIMITED_DISCOVERABLE, &hdev->dev_flags))
728 cod[1] |= 0x20;
729
727 if (memcmp(cod, hdev->dev_class, 3) == 0)
728 return;
729
730 hci_req_add(req, HCI_OP_WRITE_CLASS_OF_DEV, sizeof(cod), cod);
731}
732
733static void service_cache_off(struct work_struct *work)
734{

--- 4220 unchanged lines hidden ---
730 if (memcmp(cod, hdev->dev_class, 3) == 0)
731 return;
732
733 hci_req_add(req, HCI_OP_WRITE_CLASS_OF_DEV, sizeof(cod), cod);
734}
735
736static void service_cache_off(struct work_struct *work)
737{

--- 4220 unchanged lines hidden ---