How to setup wifi connection on a laptop

How do I get an IP address on the WiFi interface?

On FreeBSD I would run dhclient wlan0. Is it possible to do something like this on OpenWrt?