diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-09-13 05:51:00 +0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2014-09-13 18:04:27 +0300 |
commit | d086d9565ab447722934ce750df95a45f649e4ba (patch) | |
tree | 69636e876cc614549058d9c39c1a494367de4448 /emulator/smp.c | |
parent | 5a40cdff80f193a92fe07f9d38c9374849a8ee1a (diff) | |
download | bluez-d086d9565ab447722934ce750df95a45f649e4ba.tar.gz |
emulator: Use explicit IO capability for bthost
Diffstat (limited to 'emulator/smp.c')
-rw-r--r-- | emulator/smp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/emulator/smp.c b/emulator/smp.c index 32c82e556..5a6c558e5 100644 --- a/emulator/smp.c +++ b/emulator/smp.c @@ -152,12 +152,12 @@ static void pairing_rnd(struct smp_conn *conn, const void *data, uint16_t len) bthost_send_cid(bthost, conn->handle, SMP_CID, rsp, sizeof(rsp)); } -void smp_pair(void *conn_data) +void smp_pair(void *conn_data, uint8_t io_cap) { struct smp_conn *conn = conn_data; struct bthost *bthost = conn->smp->bthost; const uint8_t smp_pair_req[] = { 0x01, /* Pairing Request */ - 0x03, /* NoInputNoOutput */ + io_cap, /* IO Capability */ 0x00, /* OOB Flag */ 0x01, /* Bonding - no MITM */ 0x10, /* Max key size */ |