- Remove size output parameter creating commands
- Add support for reading the size of internals buffers of the bt chips - Add support for Resetting the Device - Add broadcom vendor command fro writting the bdaddr - clean up the debug output git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29669 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -20,7 +20,7 @@ template <typename Type = void, int paramSize = 0, int HeaderSize = HCI_COMMAND_
|
||||
class BluetoothCommand {
|
||||
|
||||
public:
|
||||
BluetoothCommand(uint8 ogf, uint8 ocf, size_t* outsize)
|
||||
BluetoothCommand(uint8 ogf, uint8 ocf)
|
||||
{
|
||||
fHeader = (struct hci_command_header*) fBuffer;
|
||||
|
||||
@@ -31,8 +31,6 @@ public:
|
||||
|
||||
fHeader->opcode = B_HOST_TO_LENDIAN_INT16(PACK_OPCODE(ogf, ocf));
|
||||
fHeader->clen = paramSize;
|
||||
|
||||
*outsize = HeaderSize + paramSize;
|
||||
}
|
||||
|
||||
Type*
|
||||
@@ -47,6 +45,11 @@ public:
|
||||
return (void*)fBuffer;
|
||||
}
|
||||
|
||||
size_t Size() const
|
||||
{
|
||||
return HeaderSize + paramSize;
|
||||
}
|
||||
|
||||
private:
|
||||
char fBuffer[paramSize + HeaderSize];
|
||||
Type* fContent;
|
||||
|
||||
Reference in New Issue
Block a user