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).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wifi Interface blocked from choosing interface

NoamReuveni opened this issue · comments

Describe the bug
I follow the guidlines and tried to create a hotspot.
Once running as sudo the app I couldn't choose a wifi interface (see screenshot to see difference of color between Wifi Interface and Internet interface).
I then thought there is just one wifi interface to choose from and it does by default but when trying to create hotspot I got the following text:

Please select Wifi and Internet interfaces
pkexec --user root create_ap wlan0 eth0 'MyAccessPoint' '12345678' --mkconfig /etc/create_ap.conf --freq-band 2.4 --mac -g XXX.XXX.XX.X
Config options written to '/etc/create_ap.conf'
ERROR: 'wlan0' is not a WiFi interface
Command not found or exited with error status

To Reproduce
Steps to reproduce the behavior:

  1. Follow installation guide (including compiling and building)
  2. Run sudo wihotspot from terminal
  3. Chosse Internet interface
  4. Click Create Hotspot and look at terminal where it is run

Expected behavior
I wold expect to be able to choose the wifi interface and be able to create a hotspot

Screenshots
image

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version 22.04

Additional context
I tried running the app not as sudo from terminal and from the gui app that was created and all of the options led to the same bug

Make sure you have iw installed. That was the problem for me.

@NoamReuveni did you check whether all the dependencies are installed as in the README? Please check iw also.