File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -2214,7 +2214,7 @@ static u8 smp_cmd_pairing_random(struct l2cap_conn *conn, struct sk_buff *skb)
2214
2214
if (err )
2215
2215
return SMP_UNSPECIFIED ;
2216
2216
2217
- if (smp -> method == JUST_WORKS || smp -> method == REQ_OOB ) {
2217
+ if (smp -> method == REQ_OOB ) {
2218
2218
if (hcon -> out ) {
2219
2219
sc_dhkey_check (smp );
2220
2220
SMP_ALLOW_CMD (smp , SMP_CMD_DHKEY_CHECK );
@@ -2229,6 +2229,9 @@ static u8 smp_cmd_pairing_random(struct l2cap_conn *conn, struct sk_buff *skb)
2229
2229
confirm_hint = 0 ;
2230
2230
2231
2231
confirm :
2232
+ if (smp -> method == JUST_WORKS )
2233
+ confirm_hint = 1 ;
2234
+
2232
2235
err = mgmt_user_confirm_request (hcon -> hdev , & hcon -> dst , hcon -> type ,
2233
2236
hcon -> dst_type , passkey , confirm_hint );
2234
2237
if (err )
You can’t perform that action at this time.
0 commit comments