Skip to content

Commit 5c4dece

Browse files
MarkWangChinesekartben
authored andcommitted
bluetooth: classic: smp: fix the wrong Responder Key Distribution
BR_SEND_KEYS_SC should be used to determine the value of Responder Key Distribution when sending pairing_response to reply smp br pairing_request. Signed-off-by: Mark Wang <yichang.wang@nxp.com>
1 parent eebd10d commit 5c4dece

File tree

1 file changed

+1
-1
lines changed
  • subsys/bluetooth/host

1 file changed

+1
-1
lines changed

subsys/bluetooth/host/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ static uint8_t smp_br_pairing_req(struct bt_smp_br *smp, struct net_buf *buf)
13581358
rsp->oob_flag = 0x00;
13591359
rsp->max_key_size = max_key_size;
13601360
rsp->init_key_dist = (req->init_key_dist & BR_RECV_KEYS_SC);
1361-
rsp->resp_key_dist = (req->resp_key_dist & BR_RECV_KEYS_SC);
1361+
rsp->resp_key_dist = (req->resp_key_dist & BR_SEND_KEYS_SC);
13621362

13631363
smp->local_dist = rsp->resp_key_dist;
13641364
smp->remote_dist = rsp->init_key_dist;

0 commit comments

Comments
 (0)