Thanks for the response. Actually it always worked across all the Android phones I had, I had a Samsung after my Huawei and the wifi passwords got transferred automatically via the Google Backup and Restore.
I believe my new Xiaomi is not doing that because Google Play is not natively installed...