Android 12 has not yet rolled out. In the Android 12, Google has added the new wifi password sharing feature. This feature allows users to share wifi passwords with everybody sitting along with you or in a nearby area. Currently, users with Android 10 and above can share wifi passwords by simply scanning the QR code.
But, after the new update, users will not have to do that too. Users can share passwords with anyone, with the help of this new feature. This feature will show the nearby devices, you just have to pair the device share the passwords. However, both devices should be running on Android 12. However, the whole protocol is not public yet.