Use your original script (or write a proper /etc/wpa_supplicant.conf and use a proper /etc/rc.conf) but prefix your key with 0x. Without that, it's not being treated as a hex key, and the key set on your NIC will not be the same as the key in your router.
|