Jimmy Chen | 0cb0aed | 2019-07-04 14:51:22 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2019 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package android.hardware.wifi.supplicant@1.3; |
| 18 | |
| 19 | import @1.0::SupplicantStatus; |
| 20 | import @1.2::ISupplicantStaNetwork; |
| 21 | |
| 22 | /** |
| 23 | * Interface exposed by the supplicant for each station mode network |
| 24 | * configuration it controls. |
| 25 | */ |
| 26 | interface ISupplicantStaNetwork extends @1.2::ISupplicantStaNetwork { |
| 27 | /** |
| 28 | * Set OCSP (Online Certificate Status Protocol) type for this network. |
| 29 | * |
| 30 | * @param ocspType value to set. |
| 31 | * @return status Status of the operation. |
| 32 | * Possible status codes: |
| 33 | * |SupplicantStatusCode.SUCCESS|, |
| 34 | * |SupplicantStatusCode.FAILURE_ARGS_INVALID|, |
| 35 | * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| |
| 36 | */ |
| 37 | setOcsp(OcspType ocspType) generates (SupplicantStatus status); |
| 38 | |
| 39 | /** |
| 40 | * Get OCSP (Online Certificate Status Protocol) type for this network. |
| 41 | * |
| 42 | * @return status Status of the operation. |
| 43 | * Possible status codes: |
| 44 | * |SupplicantStatusCode.SUCCESS|, |
| 45 | * |SupplicantStatusCode.FAILURE_ARGS_INVALID|, |
| 46 | * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| |
| 47 | * @return ocspType ocsp type. |
| 48 | */ |
| 49 | getOcsp() generates (SupplicantStatus status, OcspType ocspType); |
Jimmy Chen | 1eb8236 | 2019-08-28 17:54:29 +0800 | [diff] [blame] | 50 | |
| 51 | /** |
| 52 | * Add a PMK into supplicant PMK cache. |
| 53 | * |
| 54 | * @param serializedEntry is serialized PMK cache entry, the content is |
| 55 | * opaque for the framework and depends on the native implementation. |
| 56 | * @return status Status of the operation |
| 57 | * Possible status codes: |
| 58 | * |SupplicantStatusCode.SUCCESS|, |
| 59 | * |SupplicantStatusCode.FAILURE_ARGS_INVALID|, |
| 60 | * |SupplicantStatusCode.FAILURE_UNKNOWN|, |
| 61 | * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| |
| 62 | */ |
Ahmed ElArabawy | e56767d | 2019-09-30 09:35:03 -0700 | [diff] [blame^] | 63 | setPmkCache(vec<uint8_t> serializedEntry) generates (SupplicantStatus status); |
Jimmy Chen | 0cb0aed | 2019-07-04 14:51:22 +0800 | [diff] [blame] | 64 | }; |