AFAIK you can't set the frequency to random value with current wireless driver. I tested this using iwconfig - any frequency parameter which did not match one of the valid channel frequencies was rejected:
iwconfig eth2 freq 2.418G
Error for wireless request "Set Frequency" (8B04) :
SET failed on device eth2 ; Operation not permitted.