lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.37k stars 311 forks source link

Doesn't work with rtl8822be. #175

Open oneironaut2209 opened 3 years ago

oneironaut2209 commented 3 years ago

Describe the bug Doesn't work with rtl8822be chipset but hotspot works on windows. Console output : ERROR: Your adapter can not be a station (i.e. be connected) and an AP at the same time

To Reproduce Steps to reproduce the behavior:

sudo systemctl start create_ap sudo create_ap wlan0 wlan0 laptop

Expected behavior

Hotspot should start

Desktop (please complete the following information):

Additional context https://github.com/torvalds/linux/commit/e3037485c68ec1a299ff41160d8fedbd4abc29b9

oneironaut2209 commented 2 years ago

Got a new laptop laptop with Realtek RTL8822CE. Same issue with it as stated above.

BackMountainDevil commented 2 years ago

what is the output after sudo create_ap wlan0 wlan0 laptop??

I meet such things before at [Ask for RTL8822CE AP and Station mixed mode](https://forum.manjaro.org/t/ask-for-rtl8822ce-ap-and-station-mixed-mode/100216)

I test RTL8822ce could work at mixed mode(ST+AP). Here is video

oneironaut2209 commented 2 years ago

what is the output after sudo create_ap wlan0 wlan0 laptop??

sudo create_ap wlo1 wlo1 laptop --> ERROR: Your adapter can not be a station (i.e. be connected) and an AP at the same time And yes the hotspot works on windows for me but not on linux.

jdactal commented 1 year ago

I'm having this issue as well with Realtek RTL8822CE

BackMountainDevil commented 1 year ago

now it can work a little. I use it create an ap when I am connecting a wifi. But the ap can not connect to the Internet

$ sudo create_ap wlan0 lo MyAccessPoint
Config dir: /tmp/create_ap.wlan0.conf.HQmR52Bj
PID: 4155
Network Manager found, set ap0 as unmanaged device... DONE
wlan0 is already associated with channel 157 (5785 GHz)
multiple channels not supported,

fallback to channel 157
Creating a virtual WiFi interface... ap0 created.
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan0.conf.HQmR52Bj/hostapd_ctrl
ap0: interface state UNINITIALIZED->ENABLED
ap0: AP-ENABLED 
Low entropy detected, starting haveged
haveged: command socket is listening at fd 4
ap0: STA 2e:d2:c2:5x:12:01 IEEE 802.11: authenticated
ap0: STA 2e:d2:c2:5x:12:01 IEEE 802.11: associated (aid 1)
ap0: AP-STA-CONNECTED 2e:d2:c2:5x:12:01
ap0: STA 2e:d2:c2:5x:12:01 RADIUS: starting accounting session 23D638927494DC7E

vs other way, more detail: https://backmountaindevil.github.io/#/os/linux/wifiAp