Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

How to bring up AP+AP mode on RSDB modules

How to bring up AP+AP mode on RSDB modules

Infineon_Team
Employee
Employee
50 replies posted 25 likes received 25 replies posted
RSDB stands for ""Real Simultaneous Dual Band"". RSDB provides two simultaneous connections on two different bands, to two networks from a single WLAN chip.

Each connection is maintained in two different bands, using two different hardware chains.

In RSDB mode, to operate 2 (1x1) SISO links, one each in one band as follows:
 
Step1: Create the virtual interface using iw and assign the mac address:
 
sudo iw dev wlan0 interface add wlan1 type __ap
sleep 2
sudo ifconfig wlan0 down
sleep 2
sudo ifconfig wlan1 down
sleep 2
sudo ./wl_tool_arm64_latest mbss
wl mbss 1
sleep 1
sudo ifconfig wlan0 hw ether 98:58:1F:XX:XX:XX
sleep 1
sudo ifconfig wlan1 hw ether  7A:4A:A2:XX:XX:XX
sleep 1

Step 2 : Assign the IP and set the default gateway:

 

sudo ifconfig wlan0 up 192.144.116.1 netmask 255.255.255.0
sudo route add -net 192.144.116.0 netmask 255.255.255.0 gw 192.144.116.1

sudo ifconfig wlan1 up 192.122.117.1 netmask 255.255.255.0
sudo route add -net 192.122.117.0 netmask 255.255.255.0 gw 192.122.117.1

Run the DHCP server to assign the IPs to the clients connecting to it.

Step 3: Run the hostapd scripts 2 GHzghz and 5 GHzghz on each interfaces:

sudo hostapd -iwlan0 /home/ifx/hostapd2ghz.conf &

sleep 2
sudo hostapd -iwlan1 /home/ifx/hostapd5ghz.conf &

The hostapd config files for both 2.4-GHz and 5-GHz band are shown below:

hostapd2ghz.conf

interface=wlan0
driver=nl80211
ssid=wifi2.4
#country_code=JP
channel=1
hw_mode=g
supported_rates=110
auth_algs=1
wpa=2

wpa_key_mgmt=WPA-PSK
wpa_passphrase=123456789
rsn_pairwise=CCMP
wpa_pairwise=CCMP

hostapd 5ghz.conf

interface=wlan1
driver=nl80211
ieee80211n=1
wmm_enabled=1ssid=MYAP
wpa_passphrase=12345678
channel=36
hw_mode=a
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_pairwise=CCMP

 

0 Likes
108 Views
Contributors