How do I disable AP mode and enable client mode using DHCP?

Answer

AP mode can be changed in the sdc_cli with the following command:

sdc# “iface set hostapd wl off”

 

DCHP mode is then set with the following command:

sdc# “iface set method wl dhcp”

 

The interface must be re-initialized to implement these changes. Enter the following command at the normal shell prompt:

# “ifrc wlan0 restart”

 

(Commands in quotes (“ “) for clarity. The sdc_cli prompt = “sdc#”.  The shell prompt = “#”.)

 

Syntax for these messages is the following:

iface set [property] [interface] [value]

 

[property] listing: (ie “iface set method wl dhcp”)

 

auto [interface] [on/off]

method [interface] [dhcp/static/manual]

address [interface] [xxx.xxx.xxx.xxx]

netmask [interface] [xxx.xxx.xxx.xxx]

gateway [interface] [xxx.xxx.xxx.xxx]

nameserver [interface] [xxx.xxx.xxx.xxx]

broadcast [interface] [xxx.xxx.xxx.xxx]

state [interface] [on/off]

bridge_ports [interface] [port1] [port2]

hostapd [interface] [on/off]