Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f335be12 authored by Purushottam Kushwaha's avatar Purushottam Kushwaha Committed by Sunil Ravi
Browse files

Supplicant: Add support for DPP AKM configuration and connection.



This commit adds HAL interfaces needed to facilitate DPP AKM based
configuration and connection to DPP network.

Bug: 207732665
Test: vts test
Change-Id: Ibea85c9c50b6ce7da77477c399e95f45d924fcb6
Signed-off-by: default avatarPurushottam Kushwaha <quic_pkushwah@quicinc.com>
parent 19839872
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2022 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
///////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

// This file is a snapshot of an AIDL file. Do not edit it manually. There are
// two cases:
// 1). this is a frozen version file - do not edit this in any case.
// 2). this is a 'current' file. If you make a backwards compatible change to
//     the interface (from the latest frozen version), the build system will
//     prompt you to update this file with `m <name>-update-api`.
//
// You must not make a backward incompatible change to any AIDL file built
// with the aidl_interface module type with versions property set. The module
// type is used to build AIDL files in a way that they can be used across
// independently updatable components of the system. If a device is shipped
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.wifi.supplicant;
@VintfStability
parcelable DppConnectionKeys {
  byte[] connector;
  byte[] cSign;
  byte[] netAccessKey;
}
+2 −1
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ interface ISupplicantStaIface {
  void filsHlpAddRequest(in byte[] dst_mac, in byte[] pkt);
  void filsHlpFlushRequest();
  android.hardware.wifi.supplicant.DppResponderBootstrapInfo generateDppBootstrapInfoForResponder(in byte[] macAddress, in String deviceInfo, in android.hardware.wifi.supplicant.DppCurve curve);
  void generateSelfDppConfiguration(in String ssid, in byte[] privEcKey);
  android.hardware.wifi.supplicant.ConnectionCapabilities getConnectionCapabilities();
  android.hardware.wifi.supplicant.KeyMgmtMask getKeyMgmtCapabilities();
  byte[] getMacAddress();
@@ -82,7 +83,7 @@ interface ISupplicantStaIface {
  void setWpsModelName(in String modelName);
  void setWpsModelNumber(in String modelNumber);
  void setWpsSerialNumber(in String serialNumber);
  void startDppConfiguratorInitiator(in int peerBootstrapId, in int ownBootstrapId, in String ssid, in String password, in String psk, in android.hardware.wifi.supplicant.DppNetRole netRole, in android.hardware.wifi.supplicant.DppAkm securityAkm);
  byte[] startDppConfiguratorInitiator(in int peerBootstrapId, in int ownBootstrapId, in String ssid, in String password, in String psk, in android.hardware.wifi.supplicant.DppNetRole netRole, in android.hardware.wifi.supplicant.DppAkm securityAkm, in byte[] privEcKey);
  void startDppEnrolleeInitiator(in int peerBootstrapId, in int ownBootstrapId);
  void startDppEnrolleeResponder(in int listenChannel);
  void startRxFilter();
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ interface ISupplicantStaIfaceCallback {
  oneway void onDppFailure(in android.hardware.wifi.supplicant.DppFailureCode code, in String ssid, in String channelList, in char[] bandList);
  oneway void onDppProgress(in android.hardware.wifi.supplicant.DppProgressCode code);
  oneway void onDppSuccess(in android.hardware.wifi.supplicant.DppEventType event);
  oneway void onDppSuccessConfigReceived(in byte[] ssid, in String password, in byte[] psk, in android.hardware.wifi.supplicant.DppAkm securityAkm);
  oneway void onDppSuccessConfigReceived(in byte[] ssid, in String password, in byte[] psk, in android.hardware.wifi.supplicant.DppAkm securityAkm, in android.hardware.wifi.supplicant.DppConnectionKeys dppConnectionKeys);
  oneway void onDppSuccessConfigSent();
  oneway void onEapFailure(in int errorCode);
  oneway void onExtRadioWorkStart(in int id);
+1 −0
Original line number Diff line number Diff line
@@ -87,6 +87,7 @@ interface ISupplicantStaNetwork {
  void sendNetworkEapSimUmtsAutsResponse(in byte[] auts);
  void setAuthAlg(in android.hardware.wifi.supplicant.AuthAlgMask authAlgMask);
  void setBssid(in byte[] bssid);
  void setDppKeys(in android.hardware.wifi.supplicant.DppConnectionKeys keys);
  void setEapAltSubjectMatch(in String match);
  void setEapAnonymousIdentity(in byte[] identity);
  void setEapCACert(in String path);
+36 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2022 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package android.hardware.wifi.supplicant;

/**
 * connection keys that are used for DPP network connection.
 */
@VintfStability
parcelable DppConnectionKeys {
    /**
     * DPP Connector (signedConnector)
     */
    byte[] connector;
    /**
     * C-sign-key (Configurator public key)
     */
    byte[] cSign;
    /**
     * DPP net access key (own private key)
     */
    byte[] netAccessKey;
}
Loading