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.2k stars 296 forks source link

create_ap hangs on networkmanager_wait_until_unmanaged #220

Open butla opened 2 years ago

butla commented 2 years ago

Describe the bug I'm trying to use create_ap to create a hotspot (so nothing too fancy), but the tool appears to hang in the networkmanager_wait_until_unmanaged function.

I know the tool works in general, but maybe it doesn't handle something about my setup, or I don't know about some necessary step. I have the same behavior on two different laptops with Manjaro.

To Reproduce

  1. Run create_ap, e.g. sudo create_ap wlp62s0 wlp62s0 the_hotspot blablabla

Expected behavior A virtual WiFi interface gets created and I can attach to the hotspot.

Desktop (please complete the following information):

Additional context The output I'm seeing:

Config dir: /tmp/create_ap.wlp62s0.conf.WoNTeuvk
PID: 41531
Network Manager found, set ap0 as unmanaged device... DONE
wlp62s0 is already associated with channel 104 (5520 MHz)
multiple channels supported
Creating a virtual WiFi interface...

When it's hanging, networkctl shows this report (ap0 is there):

IDX LINK            TYPE     OPERATIONAL SETUP
  1 lo              loopback carrier     unmanaged
  2 enp61s0         ether    no-carrier  unmanaged
  3 wlp62s0         wlan     routable    unmanaged
  4 enp0s20f0u4u1i5 ether    no-carrier  unmanaged
  5 docker0         bridge   no-carrier  unmanaged
  8 ap0             wlan     no-carrier  unmanaged