/* start or restart provision and advertise and get scan list  */
at_ble_status_t provision_start(void)
/* start or restart provision and advertise and get scan list  */
at_ble_status_t provision_start(void)
{
	at_ble_status_t st=AT_BLE_SUCCESS;
	wifi_connection_state = WIFI_CONNECTION_STATE_NOTSTARTED;
	if (BLE_IS_NOT_CONNECTED==ble_is_connected())
	{
		st=prepare_advertisement();
		if (st== AT_BLE_SUCCESS)
			st=start_advertise();
	}
	if (st== AT_BLE_SUCCESS)
		wifi_provision_set_state(WIFI_PROVISION_STATE_REQUESTING_SCAN);
	else
		wifi_provision_set_state(WIFI_PROVISION_STATE_IDLE);
	return st;
}