SACRAMENTO — A split Ninth Circuit panel on Wednesday upheld the conviction of a Lodi farmworker accused of providing material support to Pakistan-based terrorists.

Hamid Hayat, now 29, was sentenced to 24 years in prison in 2006 after a jury convicted him — in part on the testimony of an FBI informant — of training at a terrorist camp in Pakistan and returning to his Central Valley home to await orders to attack, presumably in the United States.