svpcom / wfb-ng

WFB-NG - the next generation of long-range packet radio link based on raw WiFi radio
https://docs.px4.io/main/en/tutorials/video_streaming_wifi_broadcast.html
GNU General Public License v3.0
1k stars 238 forks source link

wfbng@gs fails to start as "ip link set" command returns No such device (-19) #344

Closed parijip closed 5 months ago

parijip commented 5 months ago

I am trying to bring up wfb-ng on my laptop (gs) after the interface name got changed.

I modified the /etc/NetworkManager/NetworkManager.conf and /etc/default/wifibroadcast to the new interface name.

Post that, when I check syslog, I see that nmcli show is able to access the interface, but ip link set command returns failure.

May 14 17:13:44 ubuntu wfb-server[334315]: 2024-05-14 17:13:44+0530 [-] # iw reg set BO May 14 17:13:44 ubuntu wfb-server[334315]: 2024-05-14 17:13:44+0530 [-] # nmcli device show enp2s0 May 14 17:13:44 ubuntu wfb-server[334315]: 2024-05-14 17:13:44+0530 [-] # ip link set enp2s0 down May 14 17:13:44 ubuntu wfb-server[334315]: 2024-05-14 17:13:44+0530 [-] command failed: No such device (-19) May 14 17:13:44 ubuntu wfb-server[334315]: 2024-05-14 17:13:44+0530 [-] Stopping reactor due to fatal error: RC 237: iw dev enp2s0 set monitor otherbss

This is what I saw in syslog, when I first changed the interface name in the above mentioned 2 files:

May 14 17:13:44 ubuntu wfb-server[334315]: 2024-05-14 17:13:44+0530 [-] # iw reg set BO May 14 17:13:44 ubuntu wfb-server[334315]: 2024-05-14 17:13:44+0530 [-] # nmcli device show enp2s0 May 14 17:13:44 ubuntu wfb-server[334315]: 2024-05-14 17:13:44+0530 [-] # ip link set enp2s0 down May 14 17:13:44 ubuntu wfb-server[334315]: 2024-05-14 17:13:44+0530 [-] command failed: No such device (-19) May 14 17:13:44 ubuntu wfb-server[334315]: 2024-05-14 17:13:44+0530 [-] Stopping reactor due to fatal error: RC 237: iw dev enp2s0 set monitor otherbss

I am unable to understand what I messed up.

Thanks for all your help, -Arijit

parijip commented 5 months ago

The issue was due to the rtl8812au kernel module not getting loaded properly. I dkms-remove.sh-d the driver, dmks-install,sh-d it again and I have the correct (old) interface name back. I am able to get the wifibroadcast@gs working with this, now.