P2P: Fix copying of secondary device types for P2P group client am: 7382285854 am: 4260a0d92d

Original change: https://googleplex-android-review.googlesource.com/c/platform/external/wpa_supplicant_8/+/13066761

Change-Id: I17e0ef55afe3f0a612a4d16e4080d1c9528094aa