Mechanism for detecting forgery attacks based on identity in a wireless network