Method and system for controlling a modal antenna