linux-router icon indicating copy to clipboard operation
linux-router copied to clipboard

lspci: -s: Invalid bus number (USB adapter)

Open solsticedhiver opened this issue 1 year ago • 4 comments

When just running lnxrouter --ap wlan0 Test -p TestTestTest -c 6 -n,I got

Released under LGPL, with no warranty. Use on your own risk.

PID: 217668
Target interface is wlan0 (a2:b5:33:83:00:d0) 
lspci: -s: Invalid bus number
PCI: 1-11.2:1.0
System-already-loaded driver: ath9k_htc

and no ap up Edit: no ap up is because of issue #75

solsticedhiver avatar Oct 30 '24 20:10 solsticedhiver

Sorry for late reply.

That could be caused by that the device path is not like the script expects. https://github.com/garywill/linux-router/blob/e7ecf8707d04cfcf5d9bb8363b9e3f717f58889f/lnxrouter#L693-L704

Please use sudo bash -x ./lnxrouter ...... to run and get the debug log.

What's your system and version?

garywill avatar Nov 16 '24 03:11 garywill

the system is archlinux (up to date) with a tp-link usb wifi card (722N)

lnxrouter.log

solsticedhiver avatar Nov 16 '24 12:11 solsticedhiver

Warning: Extension comment revision 0 not supported, missing kernel module?

That may be the reason you couldn't get ap up. Try this:

env NETFILTER_XT_MATCH_COMMENT=0 ./lnxrouter --ap ........

You're using usb card. lspci only does with pci devices. That could be the reason that it showed Invalid bus number. That's not important.

garywill avatar Nov 16 '24 13:11 garywill

yes, it works with your last command.

I have compiled my own old kernel too, 6.1.117-1-lts61, and not module have been compiled

solsticedhiver avatar Nov 16 '24 14:11 solsticedhiver