ATAS (Active Scan) always gives ERROR

The command will report Error if the module is already associated with an Access point. You may need to issue the NR command first in order to use the AS command.