Adversary detection for cognitive radio networks.