Procedure to be able to fix the baseband or imei of the xiaomi phones:
1. We have to download the firmware to degrade the xiaomi to the version of android 6.0 or 6.0.1 and the version that corresponds miui according to model and variant of the xiaomi.
2. To degrade the firmware we can use miflash.
3. To flash, we can not use miflash, but if QFIL or another tool is professional or not, it can be flashed in edl mode.