If the AP is in same L2 domain as controller, it will find controller by bcast/mcast methods. If controller is across/another L2 network, use DHCP option 43 to adopt. If you cant do DHCP options, login to webgui to set controller IP with static method.
HTH
Thanks
Karthik.
Thanks
Karthik.