aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-02-05 19:52:59 -0800
committerMarcel Holtmann <marcel@holtmann.org>2010-02-05 19:52:59 -0800
commitc886503a79c720b5953fe06108c0ac86e9c17b69 (patch)
tree8eb549b0ac2c9c330116fc37c45ce8a64e8e196d /lib
parent78e00df33790e9bec2579df1d30aef133cc62457 (diff)
downloadbluez-c886503a79c720b5953fe06108c0ac86e9c17b69.tar.gz
Fix another fallout from Inquiry Response Transmit Power Level typo
Diffstat (limited to 'lib')
-rw-r--r--lib/hci.c8
-rw-r--r--lib/hci.h6
-rw-r--r--lib/hci_lib.h2
3 files changed, 8 insertions, 8 deletions
diff --git a/lib/hci.c b/lib/hci.c
index 131f8fb6..8f1c36e2 100644
--- a/lib/hci.c
+++ b/lib/hci.c
@@ -2246,16 +2246,16 @@ int hci_read_local_oob_data(int dd, uint8_t *hash, uint8_t *randomizer, int to)
return 0;
}
-int hci_read_inquiry_transmit_power_level(int dd, int8_t *level, int to)
+int hci_read_inq_response_tx_power_level(int dd, int8_t *level, int to)
{
- read_inquiry_transmit_power_level_rp rp;
+ read_inq_response_tx_power_level_rp rp;
struct hci_request rq;
memset(&rq, 0, sizeof(rq));
rq.ogf = OGF_HOST_CTL;
- rq.ocf = OCF_READ_INQUIRY_TRANSMIT_POWER_LEVEL;
+ rq.ocf = OCF_READ_INQ_RESPONSE_TX_POWER_LEVEL;
rq.rparam = &rp;
- rq.rlen = READ_INQUIRY_TRANSMIT_POWER_LEVEL_RP_SIZE;
+ rq.rlen = READ_INQ_RESPONSE_TX_POWER_LEVEL_RP_SIZE;
if (hci_send_req(dd, &rq, to) < 0)
return -1;
diff --git a/lib/hci.h b/lib/hci.h
index 2e4f8f22..409895cf 100644
--- a/lib/hci.h
+++ b/lib/hci.h
@@ -1057,12 +1057,12 @@ typedef struct {
} __attribute__ ((packed)) read_local_oob_data_rp;
#define READ_LOCAL_OOB_DATA_RP_SIZE 33
-#define OCF_READ_INQUIRY_TRANSMIT_POWER_LEVEL 0x0058
+#define OCF_READ_INQ_RESPONSE_TX_POWER_LEVEL 0x0058
typedef struct {
uint8_t status;
int8_t level;
-} __attribute__ ((packed)) read_inquiry_transmit_power_level_rp;
-#define READ_INQUIRY_TRANSMIT_POWER_LEVEL_RP_SIZE 2
+} __attribute__ ((packed)) read_inq_response_tx_power_level_rp;
+#define READ_INQ_RESPONSE_TX_POWER_LEVEL_RP_SIZE 2
#define OCF_WRITE_INQUIRY_TRANSMIT_POWER_LEVEL 0x0059
typedef struct {
diff --git a/lib/hci_lib.h b/lib/hci_lib.h
index d9718161..77d902a2 100644
--- a/lib/hci_lib.h
+++ b/lib/hci_lib.h
@@ -101,7 +101,7 @@ int hci_write_ext_inquiry_response(int dd, uint8_t fec, uint8_t *data, int to);
int hci_read_simple_pairing_mode(int dd, uint8_t *mode, int to);
int hci_write_simple_pairing_mode(int dd, uint8_t mode, int to);
int hci_read_local_oob_data(int dd, uint8_t *hash, uint8_t *randomizer, int to);
-int hci_read_inquiry_transmit_power_level(int dd, int8_t *level, int to);
+int hci_read_inq_response_tx_power_level(int dd, int8_t *level, int to);
int hci_write_inquiry_transmit_power_level(int dd, int8_t level, int to);
int hci_read_transmit_power_level(int dd, uint16_t handle, uint8_t type, int8_t *level, int to);
int hci_read_link_policy(int dd, uint16_t handle, uint16_t *policy, int to);