Cross-layer Analysis of a Smart Antenna for Wireless Mesh Networks