Add to the command manager the connection accept and reject commands
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26451 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -22,6 +22,8 @@ void* buildInquiry(uint32 lap, uint8 length, uint8 num_rsp, size_t* outsize);
|
|||||||
void* buildInquiryCancel(size_t* outsize);
|
void* buildInquiryCancel(size_t* outsize);
|
||||||
void* buildPinCodeRequestReply(bdaddr_t bdaddr, uint8 length, char pincode[16], size_t* outsize);
|
void* buildPinCodeRequestReply(bdaddr_t bdaddr, uint8 length, char pincode[16], size_t* outsize);
|
||||||
void* buildPinCodeRequestNegativeReply(bdaddr_t bdaddr, size_t* outsize);
|
void* buildPinCodeRequestNegativeReply(bdaddr_t bdaddr, size_t* outsize);
|
||||||
|
void* buildAcceptConnectionRequest(bdaddr_t bdaddr, uint8 role, size_t* outsize);
|
||||||
|
void* buildRejectConnectionRequest(bdaddr_t bdaddr, size_t* outsize);
|
||||||
|
|
||||||
/* OGF_INFORMATIONAL_PARAM */
|
/* OGF_INFORMATIONAL_PARAM */
|
||||||
void* buildReadBufferSize(size_t* outsize);
|
void* buildReadBufferSize(size_t* outsize);
|
||||||
|
|||||||
@@ -99,6 +99,7 @@ void* buildAuthEnable(uint8 auth, size_t* outsize)
|
|||||||
#pragma mark - LINK CONTROL -
|
#pragma mark - LINK CONTROL -
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void* buildCreateConnection(bdaddr_t bdaddr)
|
void* buildCreateConnection(bdaddr_t bdaddr)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@@ -157,6 +158,7 @@ void* buildInquiry(uint32 lap, uint8 length, uint8 num_rsp, size_t* outsize)
|
|||||||
return command;
|
return command;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void* buildInquiryCancel(size_t* outsize)
|
void* buildInquiryCancel(size_t* outsize)
|
||||||
{
|
{
|
||||||
|
|
||||||
@@ -205,6 +207,37 @@ void* buildPinCodeRequestNegativeReply(bdaddr_t bdaddr, size_t* outsize)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void* buildAcceptConnectionRequest(bdaddr_t bdaddr, uint8 role, size_t* outsize)
|
||||||
|
{
|
||||||
|
struct hci_cp_accept_conn_req* param;
|
||||||
|
|
||||||
|
void* command = buildCommand(OGF_LINK_CONTROL, OCF_ACCEPT_CONN_REQ,
|
||||||
|
(void**) ¶m, sizeof(struct hci_cp_accept_conn_req), outsize);
|
||||||
|
|
||||||
|
if (command != NULL) {
|
||||||
|
param->bdaddr = bdaddr;
|
||||||
|
param->role = role;
|
||||||
|
}
|
||||||
|
|
||||||
|
return command;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void* buildRejectConnectionRequest(bdaddr_t bdaddr, size_t* outsize)
|
||||||
|
{
|
||||||
|
struct hci_cp_reject_conn_req* param;
|
||||||
|
|
||||||
|
void *command = buildCommand(OGF_LINK_CONTROL, OCF_REJECT_CONN_REQ,
|
||||||
|
(void**) ¶m, sizeof(struct hci_cp_reject_conn_req), outsize);
|
||||||
|
|
||||||
|
if (command != NULL) {
|
||||||
|
param->bdaddr = bdaddr;
|
||||||
|
}
|
||||||
|
|
||||||
|
return command;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
#pragma mark - INFORMATIONAL_PARAM -
|
#pragma mark - INFORMATIONAL_PARAM -
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user