summaryrefslogtreecommitdiff
path: root/emulator/smp.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2015-02-16 12:50:49 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2015-02-16 12:51:08 +0200
commitc2610013f97ed19a569b13cd7ab5c4f313ab05f7 (patch)
tree853d1db50ab06e14c58e7fa93a07125557d3d052 /emulator/smp.c
parent82a19daa377d0aed0b85188ee71f48e1fe1eb64e (diff)
downloadbluez-c2610013f97ed19a569b13cd7ab5c4f313ab05f7.tar.gz
emulator/smp: Fix sending BR/EDR SMP Pairing Request as slave
Diffstat (limited to 'emulator/smp.c')
-rw-r--r--emulator/smp.c3
1 files changed, 3 insertions, 0 deletions
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;