aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Biren <gbiren@google.com>2023-12-01 21:00:32 +0000
committerGabriel Biren <gbiren@google.com>2023-12-01 22:25:06 +0000
commite8c0328f942105ccf1a63742e2de419db934325a (patch)
tree3d19cbaa41afdae995e72fb13391f51a09025fd5
parent0dd195094cd39bbd711dd2a974ba07bec506bb4d (diff)
downloadwpa_supplicant_8-e8c0328f942105ccf1a63742e2de419db934325a.tar.gz
Add skeleton implementation to supplicant
for the MSCS configuration APIs. Bug: 300870302 Test: m Change-Id: I72cdfa84bfd20ad7e6fa5edd1223f604d5590f1a
-rw-r--r--wpa_supplicant/aidl/sta_iface.cpp20
-rw-r--r--wpa_supplicant/aidl/sta_iface.h4
2 files changed, 24 insertions, 0 deletions
diff --git a/wpa_supplicant/aidl/sta_iface.cpp b/wpa_supplicant/aidl/sta_iface.cpp
index fb3ebcd5..78e6cd3c 100644
--- a/wpa_supplicant/aidl/sta_iface.cpp
+++ b/wpa_supplicant/aidl/sta_iface.cpp
@@ -843,6 +843,18 @@ bool StaIface::isValid()
&StaIface::removeQosPolicyForScsInternal, _aidl_return, in_scsPolicyIds);
}
+::ndk::ScopedAStatus StaIface::configureMscs(const MscsParams& in_params) {
+ return validateAndCall(
+ this, SupplicantStatusCode::FAILURE_UNKNOWN,
+ &StaIface::configureMscsInternal, in_params);
+}
+
+::ndk::ScopedAStatus StaIface::disableMscs() {
+ return validateAndCall(
+ this, SupplicantStatusCode::FAILURE_UNKNOWN,
+ &StaIface::disableMscsInternal);
+}
+
std::pair<std::string, ndk::ScopedAStatus> StaIface::getNameInternal()
{
return {ifname_, ndk::ScopedAStatus::ok()};
@@ -2427,6 +2439,14 @@ StaIface::removeQosPolicyForScsInternal(const std::vector<uint8_t>& scsPolicyIds
ndk::ScopedAStatus::ok()};
}
+::ndk::ScopedAStatus StaIface::configureMscsInternal(const MscsParams& params) {
+ return createStatus(SupplicantStatusCode::FAILURE_UNSUPPORTED);
+}
+
+::ndk::ScopedAStatus StaIface::disableMscsInternal() {
+ return createStatus(SupplicantStatusCode::FAILURE_UNSUPPORTED);
+}
+
/**
* Retrieve the underlying |wpa_supplicant| struct
* pointer for this iface.
diff --git a/wpa_supplicant/aidl/sta_iface.h b/wpa_supplicant/aidl/sta_iface.h
index db914452..b52c6b0c 100644
--- a/wpa_supplicant/aidl/sta_iface.h
+++ b/wpa_supplicant/aidl/sta_iface.h
@@ -165,6 +165,8 @@ public:
::ndk::ScopedAStatus removeQosPolicyForScs(
const std::vector<uint8_t>& in_scsPolicyIds,
std::vector<QosPolicyScsRequestStatus>* _aidl_return) override;
+ ::ndk::ScopedAStatus configureMscs(const MscsParams& in_params) override;
+ ::ndk::ScopedAStatus disableMscs() override;
private:
// Corresponding worker functions for the AIDL methods.
@@ -277,6 +279,8 @@ private:
std::pair<std::vector<QosPolicyScsRequestStatus>, ndk::ScopedAStatus>
removeQosPolicyForScsInternal(
const std::vector<uint8_t>& scsPolicyIds);
+ ::ndk::ScopedAStatus configureMscsInternal(const MscsParams& params);
+ ::ndk::ScopedAStatus disableMscsInternal();
struct wpa_supplicant* retrieveIfacePtr();