Diff between 01a1e34cd9231d0dbaf17437a17a72bdafd590da and 0decc9df119be638c537f6c792146a22251fda82

Changed Files

File Additions Deletions Status
emulator/smp.c +2 -2 modified

Full Patch

diff --git a/emulator/smp.c b/emulator/smp.c
index 9b08d50..6cb9f3b 100644
--- a/emulator/smp.c
+++ b/emulator/smp.c
@@ -106,8 +106,8 @@ static void pairing_req(struct smp_conn *conn, const void *data, uint16_t len)
 	rsp[2] = 0x00;				/* OOB Flag */
 	rsp[3] = bthost_get_auth_req(bthost);
 	rsp[4] = 0x10;				/* Max key size */
-	rsp[5] = 0x00;				/* Init. key dist. */
-	rsp[6] = conn->preq[6] & 0x01;		/* Rsp. key dist. */
+	rsp[5] = conn->preq[5] & 0x01;		/* Init. key dist. */
+	rsp[6] = 0x00;				/* Rsp. key dist. */
 
 	memcpy(conn->prsp, rsp, sizeof(rsp));