Use of beamforming in cross-layer design for wireless communication systems