From 85179b3710b5777bb190f03be5ad11eba626d508 Mon Sep 17 00:00:00 2001 From: Gustavo Brunoro Date: Tue, 26 Jul 2022 20:04:07 -0300 Subject: [PATCH] Task: Added wpa3 constant to identify Wi-Fi authorization mode. Closes: https://github.com/espressif/esp-idf-provisioning-ios/pull/61 --- ESPProvision/Proto/wifi_constants.pb.swift | 10 ++++++++++ Example/Legacy/proto/wifi_constants.proto | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/ESPProvision/Proto/wifi_constants.pb.swift b/ESPProvision/Proto/wifi_constants.pb.swift index 70b42bd..18109bd 100644 --- a/ESPProvision/Proto/wifi_constants.pb.swift +++ b/ESPProvision/Proto/wifi_constants.pb.swift @@ -127,6 +127,8 @@ public enum Espressif_WifiAuthMode: SwiftProtobuf.Enum { case wpa2Psk // = 3 case wpaWpa2Psk // = 4 case wpa2Enterprise // = 5 + case wpa3Psk // = 6 + case wpa2Wpa3Psk // = 7 case UNRECOGNIZED(Int) public init() { @@ -141,6 +143,8 @@ public enum Espressif_WifiAuthMode: SwiftProtobuf.Enum { case 3: self = .wpa2Psk case 4: self = .wpaWpa2Psk case 5: self = .wpa2Enterprise + case 6: self = .wpa3Psk + case 7: self = .wpa2Wpa3Psk default: self = .UNRECOGNIZED(rawValue) } } @@ -153,6 +157,8 @@ public enum Espressif_WifiAuthMode: SwiftProtobuf.Enum { case .wpa2Psk: return 3 case .wpaWpa2Psk: return 4 case .wpa2Enterprise: return 5 + case .wpa3Psk: return 6 + case .wpa2Wpa3Psk: return 7 case let .UNRECOGNIZED(i): return i } } @@ -169,6 +175,8 @@ public enum Espressif_WifiAuthMode: SwiftProtobuf.Enum { .wpa2Psk, .wpaWpa2Psk, .wpa2Enterprise, + .wpa3Psk, + .wpa2Wpa3Psk, ] } @@ -222,6 +230,8 @@ extension Espressif_WifiAuthMode: SwiftProtobuf._ProtoNameProviding { 3: .same(proto: "WPA2_PSK"), 4: .same(proto: "WPA_WPA2_PSK"), 5: .same(proto: "WPA2_ENTERPRISE"), + 6: .same(proto: "WPA3_PSK"), + 7: .same(proto: "WPA2_WPA3_PSK"), ] } diff --git a/Example/Legacy/proto/wifi_constants.proto b/Example/Legacy/proto/wifi_constants.proto index a33a274..c3d724b 100644 --- a/Example/Legacy/proto/wifi_constants.proto +++ b/Example/Legacy/proto/wifi_constants.proto @@ -34,6 +34,8 @@ enum WifiAuthMode { WPA2_PSK = 3; WPA_WPA2_PSK = 4; WPA2_ENTERPRISE = 5; + WPA3_PSK = 6; + WPA2_WPA3_PSK = 7; } message WifiConnectedState { string ip4_addr = 1; @@ -42,4 +44,3 @@ message WifiConnectedState { bytes bssid = 4; int32 channel = 5; } -