網路城邦
上一篇 回創作列表 下一篇   字體:
am57x wmu6204/rtl8822bu bridge
2022/01/25 15:48:46瀏覽96|回應0|推薦0

[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 ?

( 不分類不分類 )
回應 列印 加入我的文摘
上一篇 回創作列表 下一篇

引用
引用網址:https://classic-blog.udn.com/article/trackback.jsp?uid=greatcat&aid=171425266