Exported config depends on packages installed and builds on defaults. But also includes some of default config.
So best chance to apply config from export is to start from no config on “recipient” … and likely there will still be lines which will fail. And if they fail, you’ll have to analyze causes, fix them and proceed from that line forward. Perhaps it’s best to work with blocks of config, spanning single configuration tree branch …
Are you sure your original device was hAP ax2 snd not hAP ac2? With event of ax devices ROS now includes new wifi driver and config is under /interface/wifi. Older devices ran wireless driver (with config under /interface/wireless) and some ac devices could run either of drivers (with default being old wireless).
Note that configuration of new wifi drivers is completely different than of old wireless … and there were never any attempts to create “config converter” … you have to do it from scratch (and don’t even try to transplant settings between them, they have different feature sets so learn the new one and configure it as if you never had the old one).