]> granicus.if.org Git - esp-idf/commitdiff
component/bt : fix the authentication req type
authorTian Hao <tianhao@espressif.com>
Wed, 7 Dec 2016 14:08:21 +0000 (22:08 +0800)
committerTian Hao <tianhao@espressif.com>
Fri, 9 Dec 2016 06:38:21 +0000 (14:38 +0800)
components/bt/bluedroid/api/include/esp_gatt_defs.h

index 479be983b78f8e8171f6832c1b5b917f3b5b4502..5d91cca4c16c7d35cb3b5e2833e45d1c48b39208 100644 (file)
@@ -109,15 +109,11 @@ typedef struct {
  * @brief Gatt authentication request type
  */
 typedef enum {
-    AUTH_REQ_NO_SCATTERNET,         /* Device doesn't support scatternet, it might
-                                        support "role switch during connection" for
-                                        an incoming connection, when it already has
-                                        another connection in master role */
-    AUTH_REQ_PARTIAL_SCATTERNET,   /* Device supports partial scatternet. It can have
-                                        simulateous connection in Master and Slave roles
-                                        for short period of time */
-    AUTH_REQ_FULL_SCATTERNET       /* Device can have simultaneous connection in master
-                                        and slave roles */
+       ESP_GATT_AUTH_REQ_NONE                  = 0,
+       ESP_GATT_AUTH_REQ_NO_MITM               = 1,   /* unauthenticated encryption */
+       ESP_GATT_AUTH_REQ_MITM                  = 2,   /* authenticated encryption */
+       ESP_GATT_AUTH_REQ_SIGNED_NO_MITM        = 3,
+       ESP_GATT_AUTH_REQ_SIGNED_MITM           = 4,
 } esp_gatt_auth_req_t;
 
 /**