Skip to content

Commit

Permalink
Update common.proto
Browse files Browse the repository at this point in the history
Ensures consistency between the BLE and SoftAp protobuf schemas allowing reuse.
  • Loading branch information
roshanrajaratnam authored Apr 16, 2024
1 parent 2fea720 commit a2cdb71
Showing 1 changed file with 20 additions and 25 deletions.
45 changes: 20 additions & 25 deletions subsys/net/lib/wifi_provision/proto/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,34 @@ syntax = "proto3";

enum Band {
BAND_UNSPECIFIED = 0;
BAND_2_4_GHZ = 1;
BAND_5_GHZ = 2;
BAND_6_GHZ = 3;
BAND_2_4_GHZ = 1;
BAND_5_GHZ = 2;
BAND_6_GHZ = 3;
}

enum AuthMode {
AUTH_MODE_UNSPECIFIED = 0;
OPEN = 1;
WEP = 2;
WPA_PSK = 3;
WPA2_PSK = 4;
WPA_WPA2_PSK = 5;
WPA2_ENTERPRISE = 6;
WPA3_PSK = 7;
OPEN = 0;
WEP = 1;
WPA_PSK = 2;
WPA2_PSK = 3;
WPA_WPA2_PSK = 4;
WPA2_ENTERPRISE = 5;
WPA3_PSK = 6;
}

message WifiScanResult {
string ssid = 1;
string bssid = 2;
Band band = 3;
uint32 channel = 4;
AuthMode authMode = 5;
int32 rssi = 6;
message ScanRecord {
optional WifiInfo wifi = 1;
optional int32 rssi = 2;
}

message ScanResults {
repeated WifiScanResult results = 1;
repeated ScanRecord results = 1;
}

message WifiConfig {
string ssid = 1;
string passphrase = 2;
Band band = 3;
uint32 channel = 4;
AuthMode authMode = 5;
message WifiInfo {
string ssid = 1;
string passphrase = 2;
Band band = 3;
uint32 channel = 4;
AuthMode authMode = 5;
}

0 comments on commit a2cdb71

Please sign in to comment.