OSDN Git Service

tools: btmgmt: Fix return value to return request id
authorTimo Mueller <timo.mueller@bmw-carit.de>
Wed, 20 Feb 2013 16:26:34 +0000 (17:26 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 20 Feb 2013 18:15:24 +0000 (20:15 +0200)
commit9278cee741211c602678d007eae867c6bfebd6ea
tree3f82ffcced545bc9c5591cec282b98c338aae37d
parent17f5f61f6700b048ec58c6892e599ea031cc1ec0
tools: btmgmt: Fix return value to return request id

Commit 947a7477d2a2ab6a61e5a7de44fd5b7cd2ab8d9c introduced the method
send_cmd which returned the index of the adapter instead of the
request id. As a result no mgmt command could be sent to hci0, as 0
marks an invalid request id.
tools/btmgmt.c