Text this: Smart antenna design based on direction of arrival (DOA) and beamforming optimization