how to script cloning my password from wpa to wpa2
this is my simple script but not working
/interface wireless security-profiles set "default" wpa-pre-shared-key=wpa2-pre-shared-key
:do {/interface wireless security-profiles
set default wpa2-pre-shared-key=[get default wpa-pre-shared-key];
set default authentication-types=wpa-psk,wpa2-psk unicast-ciphers=aes-ccm group-ciphers=aes-ccm
} on-error={:log error message="operation failed..."}