xref: /aosp_15_r20/external/wmediumd/wmediumd_server/wmediumd.proto (revision 621120a22a0cd8ba80b131fe8bcb37c86ff453e3)
1// Copyright (C) 2023 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15syntax = "proto3";
16
17package wmediumdserver;
18
19option java_package = "com.android.wmediumd";
20
21import "google/protobuf/empty.proto";
22
23service WmediumdService {
24  rpc ListStations(google.protobuf.Empty) returns (ListStationsResponse) {}
25  rpc LoadConfig(LoadConfigRequest) returns (google.protobuf.Empty) {}
26  rpc ReloadConfig(google.protobuf.Empty) returns (google.protobuf.Empty) {}
27  rpc SetCivicloc(SetCiviclocRequest) returns (google.protobuf.Empty) {}
28  rpc SetLci(SetLciRequest) returns (google.protobuf.Empty) {}
29  rpc SetPosition(SetPositionRequest) returns (google.protobuf.Empty) {}
30  rpc SetSnr(SetSnrRequest) returns (google.protobuf.Empty) {}
31  rpc SetTxpower(SetTxpowerRequest) returns (google.protobuf.Empty) {}
32  rpc StartPcap(StartPcapRequest) returns (google.protobuf.Empty) {}
33  rpc StopPcap(google.protobuf.Empty) returns (google.protobuf.Empty) {}
34}
35
36message StationInfo {
37  string mac_address = 1;
38  string mac_hw_address = 2;
39  double x_pos = 3;
40  double y_pos = 4;
41  int32 tx_power = 5;
42  string lci = 6;
43  string civicloc = 7;
44}
45
46message ListStationsResponse {
47  int32 station_count = 1;
48  repeated StationInfo stations = 2;
49}
50
51message LoadConfigRequest {
52  string path = 1;
53}
54
55message SetCiviclocRequest {
56  string mac_address = 1;
57  string civicloc = 2;
58}
59
60message SetLciRequest {
61  string mac_address = 1;
62  string lci = 2;
63}
64
65message SetPositionRequest {
66  string mac_address = 1;
67  double x_pos = 2;
68  double y_pos = 3;
69}
70
71message SetSnrRequest {
72  string mac_address_1 = 1;
73  string mac_address_2 = 2;
74  int32 snr = 3;
75}
76
77message SetTxpowerRequest {
78  string mac_address = 1;
79  int32 tx_power = 2;
80}
81
82message StartPcapRequest {
83  string path = 1;
84}
85