Bug 973466 - [settings] refactor wifi panel with AMD pattern

This patch is still under WIP.
It seems we will call to this function in `_updateWifi`, maybe we can remove this line?