summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-08-15 15:32:42 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-08-15 16:28:13 -0700
commitc47730b2d563fee4837a5b758f35b6aa3d35bff7 (patch)
treeb9365687a200c2c476a6568fdb25a5354c74a45a /src/device.c
parent9c3f35d6fd126ab843dff47ff27ad59cf1529a90 (diff)
downloadbluez-c47730b2d563fee4837a5b758f35b6aa3d35bff7.tar.gz
adapter: Check flags are supported
This makes sure the flags are supported before attempting to set it.
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index bc9942022..698c668b5 100644
--- a/src/device.c
+++ b/src/device.c
@@ -6821,6 +6821,11 @@ uint32_t btd_device_get_current_flags(struct btd_device *dev)
return dev->current_flags;
}
+uint32_t btd_device_get_supported_flags(struct btd_device *dev)
+{
+ return dev->supported_flags;
+}
+
/* This event is sent immediately after add device on all mgmt sockets.
* Afterwards, it is only sent to mgmt sockets other than the one which called
* set_device_flags.