Преглед изворни кода

component/bt: fix incorrect encryption flag setting

xiewenxiang пре 5 година
родитељ
комит
0740090682
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      components/bt/host/bluedroid/stack/btm/btm_sec.c

+ 1 - 1
components/bt/host/bluedroid/stack/btm/btm_sec.c

@@ -4079,7 +4079,7 @@ void btm_sec_encrypt_change (UINT16 handle, UINT8 status, UINT8 encr_enable)
                 p_dev_rec->sec_flags |= BTM_SEC_16_DIGIT_PIN_AUTHED;
             }
         } else {
-            p_dev_rec->sec_flags |= (BTM_SEC_LE_AUTHENTICATED | BTM_SEC_LE_ENCRYPTED);
+            p_dev_rec->sec_flags |= BTM_SEC_LE_ENCRYPTED;
         }
     }