How to setup wifi connection on a laptop

Per your PM, here's a sample STA config:

config wifi-iface 'wifinet1' #<---may differ on yours
        option ssid 'upstrream_SSID'
        option device 'radio0' #<---may differ in name/band
        option mode 'sta'
        option key 'xxxxxxxxxxxxx' #<---may differ on yours
        option network 'wwan' #<---or use wan, since it already exist
        option encryption 'psk2+ccmp'

I noted that there should already be a wifi-device default config, and AP configs, so I hope this helps you setup. I"m not sure what you need exactly, as there should be default wan config (in network) and a default wifi-device settings (in wireless).