From c2610013f97ed19a569b13cd7ab5c4f313ab05f7 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 16 Feb 2015 12:50:49 +0200 Subject: [PATCH] emulator/smp: Fix sending BR/EDR SMP Pairing Request as slave --- emulator/smp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/emulator/smp.c b/emulator/smp.c index b6c5c7971..e94114152 100644 --- a/emulator/smp.c +++ b/emulator/smp.c @@ -809,6 +809,9 @@ static void smp_conn_bredr(struct smp_conn *conn, uint8_t encrypt) conn->sc = true; + if (!conn->out) + return; + fixed_chan = bthost_conn_get_fixed_chan(smp->bthost, conn->handle); if (!(fixed_chan & L2CAP_FC_SMP_BREDR)) return; -- 2.47.3