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.26k stars 301 forks source link

Doesn't see my adapter as Wi-fi interface #319

Closed Kopetan4egX closed 1 year ago

Kopetan4egX commented 1 year ago

I have a tp-link tl-wn722n wi-fi adapter. According to "iw list" command it supports creating an AP. But Wifi-hotspot doesn't recognize adapter as wi-fi interface, only as internet interface, so i can't create access point using it.

image

lakinduakash commented 1 year ago

Can you list the output of iw dev

Kopetan4egX commented 1 year ago

Can you list the output of iw dev

Deleted addr

phy#0 Interface wlx14ebb6191a69 ifindex 3 wdev 0x1 addr type managed txpower -100.00 dBm

amit112amit commented 1 year ago

I have a similar issue on Debian Testing. When I launch the GUI as a regular user, the Wi-Fi adapter dropdown is empty but when I launch it as the root user using the terminal, my WiFi adapter is listed in the dropdown. Can you try launching the GUI with sudo?

Kopetan4egX commented 1 year ago

I have a similar issue on Debian Testing. When I launch the GUI as a regular user, the Wi-Fi adapter dropdown is empty but when I launch it as the root user using the terminal, my WiFi adapter is listed in the dropdown. Can you try launching the GUI with sudo?

Thanks, it works with sudo. I can't connect to the AP with my phone, but that's another question.

amit112amit commented 1 year ago

Related to this issue on Debian: When I run wihotspot from the terminal without sudo, I see a message saying iw not found. So I created a symlink using sudo ln -s /usr/sbin/iw /usr/bin/iw. After this, I am able to run wihotspot without sudo and the hotspot is getting created.

Kopetan4egX commented 1 year ago

Related to this issue on Debian: When I run wihotspot from the terminal without sudo, I see a message saying iw not found. So I created a symlink using sudo ln -s /usr/sbin/iw /usr/bin/iw. After this, I am able to run wihotspot without sudo and the hotspot is getting created.

Thank you! It works. It's strange still, because when i earlier ran wihotspot from the terminal without sudo it still asked twice for superuser password before actually opening the application, and entering password didn't help. Also now my phone connects without any problem, it couldn't do so for some reasons when i was running app as superuser for some reasons, as I mentioned before.