Problems with wifi, BT, rotation sensor we have the solution with the included software
You only need to download the firmware according to the version of android or miui that you have installed in the xiaomi and now you just have to follow the steps to detailed steps in a txt document included in the rar file, with the necessary software to do this operation.