Merge branch 'bugfix/btdm_blufi' into 'master'

component/bt : fix blufi bug of sec_mode reset

fix BLUFI cannot be reconnected by phone without re-init.

See merge request !598
This commit is contained in:
Ivan Grokhotkov 2017-03-21 17:54:19 +08:00
commit fbaeb55c15

View file

@ -268,6 +268,7 @@ static void blufi_profile_cb(tBTA_GATTS_EVT event, tBTA_GATTS *p_data)
blufi_env.conn_id = p_data->conn.conn_id; blufi_env.conn_id = p_data->conn.conn_id;
blufi_env.is_connected = false; blufi_env.is_connected = false;
blufi_env.recv_seq = blufi_env.send_seq = 0; blufi_env.recv_seq = blufi_env.send_seq = 0;
blufi_env.sec_mode = 0x0;
msg.sig = BTC_SIG_API_CB; msg.sig = BTC_SIG_API_CB;
msg.pid = BTC_PID_BLUFI; msg.pid = BTC_PID_BLUFI;