1
0
mirror of https://github.com/morrownr/8821cu-20210916.git synced 2024-11-01 01:05:25 +00:00
8821cu-20210916/docs/Concurrent_Mode.md

95 lines
2.5 KiB
Markdown
Raw Normal View History

2022-12-27 03:57:44 +00:00
2022-12-27
2022-11-28 20:27:59 +00:00
What is Concurrent Mode?
Concurrent Mode creates 2 wireless network interfaces (wlan0, wlan1) and those
two interfaces share the same WiFi adapter.
This feature allows performing 2 separate wireless tasks at the same time with a
single WiFi adapter.
For example:
2022-12-27 03:57:44 +00:00
Use station mode (also called managed or client mode) to connect with an
2022-11-28 20:27:59 +00:00
AP to access the internet at the same time as it also performs as an AP
to allow other devices to connect to the second interface.
Note: Only supports 3 combinations
1. Station mode + Station mode
2. Station mode + AP mode
3. Station mode + P2P mode
2022-12-27 03:57:44 +00:00
Note: Monitor mode is not supported.
2022-11-28 20:27:59 +00:00
-----
How do I Enable Concurrent Mode?
2022-12-27 03:57:44 +00:00
Edit the `Makefile` with a text editor:
```
${EDITOR} Makefile
2022-12-27 03:57:44 +00:00
```
Change the following line:
```
#EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
```
to
```
EXTRA_CFLAGS += -DCONFIG_CONCURRENT_MODE
```
and then install the driver per the installation steps. If
the driver is already installed, run the following first:
```
sudo ./remove-driver.sh
```
and then reinstall the driver with:
2022-11-28 20:27:59 +00:00
```
2022-12-27 03:57:44 +00:00
sudo ./install-driver.sh
2022-11-28 20:27:59 +00:00
```
Once the driver is fully installed and you have rebooted the system, you
2022-12-27 03:57:44 +00:00
can verify that this works by typing the “iw dev” command. You should
see two wireless interfaces, and the MAC address of the secondary interface
2022-11-28 20:27:59 +00:00
is nearly the same as the first except for one digit.
-----
FAQ:
Q: Which wireless interface can run in station mode? Which
wireless interface can run in AP mode?
A: It is recommended to run station mode in wlan0 and AP or P2P mode in
wlan1.
Q: How is the throughput with 2 wireless interfaces in concurrent mode?
A: Because there is only one physical hardware device, the two wireless
interfaces (wlan0, wlan1) will share the transmit bandwidth.
For example:
Assume the throughput limitation of current environment is 85Mb/s,
then the throughput of wlan0 + the throughput of wlan1 is basically
equal or smaller than 85Mb/s.
Q: Everything is fine when I only start hostapd, but when I start running
station mode in the other interface at the same time, hostapd will disconnect
for a moment then will reconnect again, however ,the channel is differ from
before. Is something wrong?
A: Dont worry, it is fine! As mentioned before, those two wireless interfaces
share the same physical hardware device. That means those 2 wireless interfaces
must use the same channel. The AP/P2P interface should use the same channel as
the station interface. If both interfaces are running in station mode, the
connected APs MUST be on same channel.