Просмотр исходного кода

squesh the commit.

component/bt: Change the idf test KnownIssues file.

component/bt: Fixed the bug of gattc mutilple read.
yulong 8 лет назад
Родитель
Сommit
09a3e4fd58

+ 3 - 0
components/bt/bluedroid/api/esp_gattc_api.c

@@ -348,6 +348,9 @@ esp_err_t esp_ble_gattc_read_multiple(esp_gatt_if_t gattc_if,
     msg.pid = BTC_PID_GATTC;
     msg.pid = BTC_PID_GATTC;
     msg.act = BTC_GATTC_ACT_READ_MULTIPLE_CHAR;
     msg.act = BTC_GATTC_ACT_READ_MULTIPLE_CHAR;
     arg.read_multiple.conn_id = BTC_GATT_CREATE_CONN_ID(gattc_if, conn_id);
     arg.read_multiple.conn_id = BTC_GATT_CREATE_CONN_ID(gattc_if, conn_id);
+    arg.read_multiple.num_attr = read_multi->num_attr;
+    arg.read_multiple.auth_req = auth_req;
+
     if (read_multi->num_attr > 0) {
     if (read_multi->num_attr > 0) {
         memcpy(arg.read_multiple.handles, read_multi->handles, sizeof(uint16_t)*read_multi->num_attr);
         memcpy(arg.read_multiple.handles, read_multi->handles, sizeof(uint16_t)*read_multi->num_attr);
     } else {
     } else {

+ 15 - 0
components/idf_test/integration_test/KnownIssues

@@ -220,6 +220,21 @@ BTSTK_GAP_06003
 # GATT
 # GATT
 BTSTK_GATT_21005
 BTSTK_GATT_21005
 BTSTK_GATT_25013
 BTSTK_GATT_25013
+BTSTK_GATT_25001
+BTSTK_GATT_25002
+BTSTK_GATT_25003
+BTSTK_GATT_25004
+BTSTK_GATT_25005
+BTSTK_GATT_25006
+BTSTK_GATT_25007
+BTSTK_GATT_25008
+BTSTK_GATT_25009
+BTSTK_GATT_25010
+BTSTK_GATT_25011
+BTSTK_GATT_25012
+BTSTK_GATT_25013
+BTSTK_GATT_25014
+BTSTK_GATT_20002
 
 
 # BT cases that might fail
 # BT cases that might fail
 BTSTK_GAP_01003
 BTSTK_GAP_01003