aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-06-10 02:16:43 +0200
committerSven Gothel <[email protected]>2020-06-10 02:16:43 +0200
commitd739e6d861e2080c44750412fadbb393fd1a52f0 (patch)
treec3b8f09a77e21edbee0ef3a964c0ee3e7237ec46 /src
parent1692dadb50fbd5a8659680efa40ad67fa76c7ab5 (diff)
HCIHandler: Remove unused method sendWithReply(..)
Diffstat (limited to 'src')
-rw-r--r--src/direct_bt/HCIHandler.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/direct_bt/HCIHandler.cpp b/src/direct_bt/HCIHandler.cpp
index e7355a41..1ea6592a 100644
--- a/src/direct_bt/HCIHandler.cpp
+++ b/src/direct_bt/HCIHandler.cpp
@@ -154,32 +154,6 @@ std::shared_ptr<HCIEvent> HCIHandler::getNextReply(HCICommand &req, int & retryC
return nullptr;
}
-std::shared_ptr<HCIEvent> HCIHandler::sendWithReply(HCICommand &req) {
- if( pass_replies_only_filter ) {
- hci_ufilter filter = filter_mask;
- HCIComm::filter_set_opcode(number(req.getOpcode()), &filter);
- if (setsockopt(comm.dd(), SOL_HCI, HCI_FILTER, &filter, sizeof(filter)) < 0) {
- ERR_PRINT("HCIHandler::sendWithReply.0: setsockopt");
- return nullptr;
- }
- }
- int retryCount = 0;
- std::shared_ptr<HCIEvent> ev = nullptr;
-
- if( !sendCommand(req) ) {
- goto exit;
- }
- ev = getNextReply(req, retryCount);
-
-exit:
- if( pass_replies_only_filter ) {
- if (setsockopt(comm.dd(), SOL_HCI, HCI_FILTER, &filter_mask, sizeof(filter_mask)) < 0) {
- ERR_PRINT("HCIHandler::sendWithReply.X: setsockopt");
- }
- }
- return ev;
-}
-
std::shared_ptr<HCIEvent> HCIHandler::sendWithCmdCompleteReply(HCICommand &req, HCICommandCompleteEvent **res) {
*res = nullptr;