1. Reset Yun to factory default by:


( backup your own data )

2. Setup WIFI STA mode:

STA for managed (client) mode

3. SSH to wifi ip address:

nano setwanstaticip.sh
uci set network.wan.proto=static
uci set network.wan.ipaddr=
uci set network.wan.netmask=
uci commit network
/etc/init.d/network restart
root@Arduino:~# /bin/ash setwanstaticip.sh
Successfully initialized wpa_supplicant

4.Setup at PC


5.Entering goto firewall setting edit both zone.

Make sure lan to wan, wan to lan  forwardings and masquerading enabled.