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

Commit ab16b319 authored by Roshan Pius's avatar Roshan Pius Committed by Gerrit Code Review
Browse files

Merge "wifi: Add capabilitiy flag for ND offload"

parents 34265813 656f8205
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -80,14 +80,18 @@ interface IWifiStaIface extends IWifiIface {
     * Support for Tunneled Direct Link Setup off channel.
     */
    TDLS_OFFCHANNEL = 1 << 11,
    /**
     * Support for neighbour discovery offload.
     */
    ND_OFFLOAD = 1 << 12,
    /**
     * Support for keep alive packet offload.
     */
    KEEP_ALIVE = 1 << 12,
    KEEP_ALIVE = 1 << 13,
    /**
     * Support for tracking connection packets' fate.
     */
    DEBUG_PACKET_FATE = 1 << 13
    DEBUG_PACKET_FATE = 1 << 14
  };

  /**
+3 −0
Original line number Diff line number Diff line
@@ -82,6 +82,8 @@ convertLegacyFeatureToHidlStaIfaceCapability(uint32_t feature) {
      return HidlStaIfaceCaps::TDLS;
    case WIFI_FEATURE_TDLS_OFFCHANNEL:
      return HidlStaIfaceCaps::TDLS_OFFCHANNEL;
    case WIFI_FEATURE_CONFIG_NDO:
      return HidlStaIfaceCaps::ND_OFFLOAD;
    case WIFI_FEATURE_MKEEP_ALIVE:
      return HidlStaIfaceCaps::KEEP_ALIVE;
  };
@@ -242,6 +244,7 @@ bool convertLegacyFeaturesToHidlStaCapabilities(
                             WIFI_FEATURE_PNO,
                             WIFI_FEATURE_TDLS,
                             WIFI_FEATURE_TDLS_OFFCHANNEL,
                             WIFI_FEATURE_CONFIG_NDO,
                             WIFI_FEATURE_MKEEP_ALIVE}) {
    if (feature & legacy_feature_set) {
      *hidl_caps |= convertLegacyFeatureToHidlStaIfaceCapability(feature);