Bug 1005775 - [Wifi] [Follow up of Bug 999388]Refactor wifi when send terminate command to wpa_supplicant. r=chulee, a=1.4+