I think I have the beginnings of an idea. Do not set WPA in rc.conf, only DHCP, and use 'script "script_name";' in /etc/dhclient.conf. Then have that script do the configuration. Has anyone used dhclient.conf with a custom script?