File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -357,10 +357,6 @@ class PrivacyPeripheral : public PrivacyDevice {
357
357
{
358
358
GapAdvertisingData advertising_data;
359
359
360
- /* add advertising flags */
361
- advertising_data.addFlags (GapAdvertisingData::LE_GENERAL_DISCOVERABLE
362
- | GapAdvertisingData::BREDR_NOT_SUPPORTED);
363
-
364
360
/* add device name */
365
361
advertising_data.addData (
366
362
GapAdvertisingData::COMPLETE_LOCAL_NAME,
@@ -479,11 +475,6 @@ class PrivacyCentral : public PrivacyDevice {
479
475
480
476
if (record_length < 2 ) {
481
477
/* malformed record */
482
- } else if ((type == GapAdvertisingData::FLAGS)) {
483
- /* connect to discoverable devices only */
484
- if (!(*value & GapAdvertisingData::LE_GENERAL_DISCOVERABLE)) {
485
- return ;
486
- }
487
478
} else if (type == GapAdvertisingData::COMPLETE_LOCAL_NAME) {
488
479
/* connect based on the name of the device */
489
480
if (memcmp ((const char *)DEVICE_NAME, (const char *)value, record_length - 1 ) == 0 ) {
You can’t perform that action at this time.
0 commit comments