Well, one fix that jumps out at me is:
int d0
no encryption mode ciphers aes-ccm tkip
encryption vlan 2 mode ciphers aes-ccm tkip
IIRC, I believe a radio may go into reset mode if it has no clients on it. Try connecting on A (once you have G working properly) and see if that works.