ATmega162 fuses to select external clock 12Mhz?
All you have to do is select one of the 8MHz external clocks SUT_CKSEL fuse depending on your external clock type (your datasheet explains how to select the setting depending on the clock type) and make sure to unselect the CKDIV8.

This is from Atmel Studio 6.1