Cooperation, Competition and Cognition in Wireless Networks