Add APIs to set/get auto connection mode