[PC] --- [ eth1 | am57x | eth0 ] --- [router]
cat /etc/sysctl.conf | grep net.ipv4.ip_forward
net.ipv4.ip_forward=1
brctl addbr br0 &&\
brctl addif br0 eth0 &&\
brctl addif br0 eth1 &&\
brctl setfd br0 0 &&\
ifconfig br0 up &&\
brctl show
#eth0 connet to router
#eth1 connet to pc and get ip
[PC] --- [ wlan1 | am57x | eth0 ] --- [router]
cat /etc/sysctl.conf | grep net.ipv4.ip_forward
net.ipv4.ip_forward=1
-----------------
cat /etc/hostapd.conf
interface=wlan1
driver=nl80211
ssid=wmu6204_1
hw_mode=g
channel=1
bridge=br0
----------------------
wmu6204
build driver with
EXTRA_CFLAGS += -DDCONFIG_IOCL_CFG80211
EXTRA_CFLAGS += -DRTW_USE_CFG80211_STA_EVENT
EXTRA_CFLAGS += -DCOnFIG_CONCURRENT_MODE
get wlan5.ko
insmod wlan5.ko and get 2 interfface
wlan0 and wlan1
wlan0 for sta mode
wlan1 for hostapd
----------------------
insmod ~/wlan5.ko rtw_drv_log_level=0 &&\
brctl addbr br0 &&\
brctl addif br0 eth0 &&\
brctl setfd br0 0 &&\
hostapd -d -B /etc/hostapd.conf &&\
ifconfig br0 up &&\
brctl show
#pc connet to AP and get ip
If the note helps you, how about buy street cats a fish can ?