Enhancing Wireless Mesh Network Performance Using Cognitive Radio With Smart Antennas