Ethernet works fine, but I have hard time understanding steps like where to put wpa_supplicant.conf file and what needs to be in it such that wi-fi behave like client not the server. Right now I have in /boot/wpa_supplicant.conf the following
# Red Pitaya WiFi configuration file
ctrl_interface=/var/run/wpa_supplicant
network={
ssid="myssid"
# proto=RSN
key_mgmt=WPA-PSK
# pairwise=CCMP TKIP
# group=CCMP TKIP
psk="myssidpassword"
}
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
# source-directory /etc/network/interfaces.d
source interfaces.d/eth0
source interfaces.d/wlan0
and interfaces.d/wlan0 is a link to wlan0.ap, which looks like
##############################################
# wlan0: Wireless USB adapter AP config #
##############################################
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.128.1
netmask 255.255.255.0
post-up service hostapd restart
post-up service isc-dhcp-server restart
post-up iptables-restore < /etc/iptables.ipv4.nat
pre-down iptables-restore < /etc/iptables.ipv4.nonat
pre-down service isc-dhcp-server stop
pre-down service hostapd stop
##############################################
# wlan0: Wireless USB adapter client config #
##############################################
allow-hotplug wlan0
iface wlan0 inet dhcp
pre-up service hostapd stop
pre-up service isc-dhcp-server stop
pre-up wpa_supplicant -B -D wext -i wlan0 -c /boot/wpa_supplicant.conf
post-down killall -q wpa_supplicant
udhcpc_opts -t7 -T3
which looks for user's local configuration in /boot/wpa_supplicant.conf.
Which scripts are used to create wlan0.client and to read it? Where do I tell that wlan0 is in client not the server mode?
Thanks for your time and effort
Dragan