Add legacy function for setWifiEnabled

Change-Id: Icb06538199d3639ad90ce007e2482eccede883e2