If the Xiaomi device is connected to a Wi-Fi network, we can share the password so that, for example, friends can connect to the network more quickly. A QR code is created on the Xiaomi smartphone, which can then be scanned by the device to be connected.

Android 10 (MIUI 12.0)
Step 1:  Open the  Settings
Step 2:  Tap on  Wi-Fi
Step 3:  Tap the  connected   network
  1. Open the Settings
  2. Tap on Wi-Fi
  3. Tap the connected network

Xiaomi Instructions