Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to enable the mesh point mode? #1223

Open
huster-jingwen opened this issue Feb 26, 2025 · 0 comments
Open

How to enable the mesh point mode? #1223

huster-jingwen opened this issue Feb 26, 2025 · 0 comments

Comments

@huster-jingwen
Copy link

I enabled CONFIG_AP_MODE and CONFIG_RTW_MESH in makefile, made and made install this driver for RTL8812AU.
For RTL8812AU network interface card, I set as follows:

root@hjw-virtual-machine:/home/hjw/Documents/rtl8812au-5.6.4.2# iw dev wlan0 interface add mesh0 type mp
command failed: Operation not supported (-95)
root@hjw-virtual-machine:/home/hjw/Documents/rtl8812au-5.6.4.2# iw dev wlan0 set type mp
root@hjw-virtual-machine:/home/hjw/Documents/rtl8812au-5.6.4.2# iw wlan0 info
Interface wlan0
	ifindex 6
	wdev 0x200000001
	addr 54:c9:ff:02:de:bf
	type mesh point
	wiphy 2
	channel 1 (2412 MHz), width: 20 MHz, center1: 2412 MHz
root@hjw-virtual-machine:/home/hjw/Documents/rtl8812au-5.6.4.2# ifconfig wlan0 192.168.13.10 up
root@hjw-virtual-machine:/home/hjw/Documents/rtl8812au-5.6.4.2# iw dev wlan0 mesh join mymesh freq 2437
root@hjw-virtual-machine:/home/hjw/Documents/rtl8812au-5.6.4.2# iw wlan0 info
Interface wlan0
	ifindex 6
	wdev 0x200000001
	addr 54:c9:ff:02:de:bf
	type mesh point
	wiphy 2
	channel 149 (5745 MHz), width: 20 MHz, center1: 5745 MHz
root@hjw-virtual-machine:/home/hjw/Documents/rtl8812au-5.6.4.2# iw wlan0 info
Interface wlan0
	ifindex 6
	wdev 0x200000001
	addr 54:c9:ff:02:de:bf
	type mesh point
	wiphy 2
	channel 6 (2437 MHz), width: 20 MHz, center1: 2437 MHz

For another mesh network interface card, I set like this:

root@hjw-virtual-machine:/home/hjw# iw dev wlan1 set type mp
root@hjw-virtual-machine:/home/hjw# iw wlan1 info
Interface wlan1
	ifindex 7
	wdev 0x300000001
	addr e0:b9:4d:11:01:d8
	type mesh point
	wiphy 3
root@hjw-virtual-machine:/home/hjw# ifconfig wlan1 192.168.13.20 up
root@hjw-virtual-machine:/home/hjw# iw wlan1 info
Interface wlan1
	ifindex 7
	wdev 0x300000001
	addr e0:b9:4d:11:01:d8
	type mesh point
	wiphy 3
root@hjw-virtual-machine:/home/hjw# iw dev wlan1 mesh join mymesh freq 2437

And I get the result:

root@hjw-virtual-machine:/home/hjw# iw dev wlan1 station dump
Station 54:c9:ff:02:de:bf (on wlan1)
	inactive time:	1120 ms
	rx bytes:	674
	rx packets:	20
	tx bytes:	1374
	tx packets:	21
	tx retries:	0
	tx failed:	0
	signal:  	-44 dBm
	signal avg:	-41 dBm
	Toffset:	246218065 us
	tx bitrate:	1.0 MBit/s
	mesh llid:	0
	mesh plid:	0
	mesh plink:	LISTEN
	mesh local PS mode:	UNKNOWN
	mesh peer PS mode:	UNKNOWN
	mesh non-peer PS mode:	ACTIVE
	authorized:	yes
	authenticated:	yes
	preamble:	long
	WMM/WME:	yes
	MFP:		no
	TDLS peer:	no

However, I can' t get similar result at RTL8812AU network interface card, like this:

root@hjw-virtual-machine:/home/hjw/Documents/rtl8812au-5.6.4.2# iw dev wlan0 station dump
root@hjw-virtual-machine:/home/hjw/Documents/rtl8812au-5.6.4.2# iw dev wlan0 station dump
root@hjw-virtual-machine:/home/hjw/Documents/rtl8812au-5.6.4.2# iw dev wlan0 station dump
root@hjw-virtual-machine:/home/hjw/Documents/rtl8812au-5.6.4.2# iw wlan0 info
Interface wlan0
	ifindex 6
	wdev 0x200000001
	addr 54:c9:ff:02:de:bf
	type mesh point
	wiphy 2
	channel 6 (2437 MHz), width: 20 MHz, center1: 2437 MHz
root@hjw-virtual-machine:/home/hjw/Documents/rtl8812au-5.6.4.2# iwconfig wlan0
wlan0     IEEE 802.11bg  ESSID:""  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency:2.437 GHz  Access Point: 54:C9:FF:02:DE:BF   
          Bit Rate:54 Mb/s   Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

And I can't ping another network interface card successfully.
So, how can I enable the mesh point mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant