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

Commit acb2617c authored by Roshan Pius's avatar Roshan Pius Committed by android-build-merger
Browse files

supplicant(interface): Add support for DRIVER commands am: 3f050c1a

am: 2255fd62

Change-Id: If60341a5b1193d81d30785da5c35d1d2810f7fe9
parents 8723856c 2255fd62
Loading
Loading
Loading
Loading
+28 −0
Original line number Diff line number Diff line
@@ -59,6 +59,22 @@ interface ISupplicantP2pIface extends ISupplicantIface {
      uint32_t max;
  };

  /**
   * Enum describing the modes of Miracast supported
   * via driver commands.
   */
  enum MiracastMode : uint8_t {
    DISABLED = 0,
    /**
     * Operating as source.
     */
    SOURCE = 1,
    /**
     * Operating as sink.
     */
    SINK = 2
  };

  /**
   * Register for callbacks from this interface.
   *
@@ -511,4 +527,16 @@ interface ISupplicantP2pIface extends ISupplicantIface {
   */
  cancelServiceDiscovery(uint64_t identifier)
      generates (SupplicantStatus status);

  /**
   * Send driver command to set Miracast mode.
   *
   * @param mode Mode of Miracast.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|
   */
  setMiracastMode(MiracastMode mode)
      generates (SupplicantStatus status);
};
+129 −3
Original line number Diff line number Diff line
@@ -48,6 +48,25 @@ interface ISupplicantStaIface extends ISupplicantIface {
    OSU_PROVIDERS_LIST = 8,
  };

  /**
   * Enum describing the types of RX filter supported
   * via driver commands.
   */
  enum RxFilterType : uint8_t {
    V4_MULTICAST = 0,
    V6_MULTICAST = 1
  };

  /**
   * Enum describing the modes of BT coexistence supported
   * via driver commands.
   */
  enum BtCoexistenceMode : uint8_t {
    ENABLED = 0,
    DISABLED = 1,
    SENSE = 2
  };

  /**
   * Register for callbacks from this interface.
   *
@@ -120,7 +139,7 @@ interface ISupplicantStaIface extends ISupplicantIface {
  setPowerSave(bool enable) generates (SupplicantStatus status);

  /**
   * Initiate TDLS discover with the provided peer mac address.
   * Initiate TDLS discover with the provided peer MAC address.
   *
   * @param macAddress MAC address of the peer.
   * @return status Status of the operation.
@@ -133,7 +152,7 @@ interface ISupplicantStaIface extends ISupplicantIface {
      generates (SupplicantStatus status);

  /**
   * Initiate TDLS setup with the provided peer mac address.
   * Initiate TDLS setup with the provided peer MAC address.
   *
   * @param macAddress MAC address of the peer.
   * @return status Status of the operation.
@@ -146,7 +165,7 @@ interface ISupplicantStaIface extends ISupplicantIface {
      generates (SupplicantStatus status);

  /**
   * Initiate TDLS teardown with the provided peer mac address.
   * Initiate TDLS teardown with the provided peer MAC address.
   *
   * @param macAddress MAC address of the peer.
   * @return status Status of the operation.
@@ -193,4 +212,111 @@ interface ISupplicantStaIface extends ISupplicantIface {
   */
  initiateHs20IconQuery(MacAddress macAddress, string fileName)
      generates (SupplicantStatus status);

  /**
   * Send driver command to get MAC address of the device.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|
   * @return macAddr MAC address of the device.
   */
  getMacAddress()
      generates (SupplicantStatus status, MacAddress macAddr);

  /**
   * Send driver command to start RX filter.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|
   */
  startRxFilter() generates (SupplicantStatus status);

  /**
   * Send driver command to stop RX filter.
   *
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|
   */
  stopRxFilter() generates (SupplicantStatus status);

  /**
   * Send driver command to add the specified RX filter.
   *
   * @param type Type of filter.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|
   */
  addRxFilter(RxFilterType type)
      generates (SupplicantStatus status);

  /**
   * Send driver command to remove the specified RX filter.
   *
   * @param type Type of filter.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|
   */
  removeRxFilter(RxFilterType type)
      generates (SupplicantStatus status);

  /**
   * Send driver command to set Bluetooth coexistence mode.
   *
   * @param mode Mode of Bluetooth coexistence.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|
   */
  setBtCoexistenceMode(BtCoexistenceMode mode)
      generates (SupplicantStatus status);

  /**
   * Send driver command to set Bluetooth coexistence scan mode.
   * When this mode is on, some of the low-level scan parameters
   * used by the driver are changed to reduce interference
   * with A2DP streaming.
   *
   * @param enable true to enable, false to disable.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|
   */
  setBtCoexistenceScanModeEnabled(bool enable)
      generates (SupplicantStatus status);

  /**
   * Send driver command to set suspend optimizations for power save.
   *
   * @param enable true to enable, false to disable.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|
   */
  setSuspendModeEnabled(bool enable)
      generates (SupplicantStatus status);

  /**
   * Send driver command to set country code.
   *
   * @param code 2 byte country code (as defined in ISO 3166) to set.
   * @return status Status of the operation.
   *         Possible status codes:
   *         |SupplicantStatusCode.SUCCESS|,
   *         |SupplicantStatusCode.FAILURE_UNKNOWN|
   */
  setCountryCode(int8_t[2] code)
      generates (SupplicantStatus status);
};
+8 −8

File changed.

Contains only whitespace changes.