Closed Cabbache closed 1 year ago
I've confirmed that it works when I make the name of the virtual interface shorter instead of 2 characters added to the original interface name.
Hi, thank you for reporting the issue and sending PR!
I think it is better to defaultly name the new interface name after the original interface name. People may create more than 1 virtual interface based on different wifi adapters simutaneously.
So adding an option to rename the new interface (e.g. --virt-name
) would be better.
Also, the script should warn user if the original interface has a long name.
I'm considering that
v_iface_name="$VIRT_PREFIX$i"
is not 100% preditable interface name
It is better to do it a preditable way
v_iface_name="$VIRT_NAME"
Let user decide the exact interface name
Currently the alloc_new_vface_name
function seems to increment $i
until $VIRT_PREFIX$i
is not the name of an existing interface. If we change it to v_iface_name="$VIRT_NAME"
, then should the script exit with an error if the interface already exists?
Yes. User should receive an error if the interface name already exist.
On ubuntu, When trying to serve a hotspot on the same interface that has internet, the script is failing.
sudo ./lnxrouter --ap <wireless interface with internet> hotspot -p password
.If I add --no-virt it works but no internet is served on the hotspot. I had no trouble doing this with the original create_ap script.
The problem is coming from this line.
I even tried manually running the command iw dev ...etc but it returns the same error:
In case it is related to this, the name of the interface I have with internet is 15 characters long, and the variable VWIFI_IFACE has a length of 17 characters.