Hi bobmarss, and welcome to daemonforums.org!
You are half-way there.
You've established a link-level connection to the WAP, but to get an IP address you'll probably want to use
dhclient(9). This uses the DHCP protocol to attempt to get an IP address from the AP, etc. Usually the AP is set up to support this.