Merge "Avoid casting the configMethods bitmask to WpsConfigMethods." into main
diff --git a/wpa_supplicant/aidl/aidl_manager.cpp b/wpa_supplicant/aidl/aidl_manager.cpp
index cac9ddb..d0b3ae2 100644
--- a/wpa_supplicant/aidl/aidl_manager.cpp
+++ b/wpa_supplicant/aidl/aidl_manager.cpp
@@ -1611,7 +1611,7 @@
params.p2pDeviceAddress = macAddrToArray(dev_addr);
params.isRequest = aidl_is_request;
params.status = static_cast<P2pProvDiscStatusCode>(status);
- params.configMethods = static_cast<WpsConfigMethods>(config_methods);
+ params.configMethods = config_methods;
params.generatedPin = aidl_generated_pin;
if (group_ifname != NULL) {
params.groupInterfaceName = misc_utils::charBufToString(group_ifname);