Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lspci: -s: Invalid bus number #84

Open
solsticedhiver opened this issue Oct 30, 2024 · 4 comments
Open

lspci: -s: Invalid bus number #84

solsticedhiver opened this issue Oct 30, 2024 · 4 comments

Comments

@solsticedhiver
Copy link

solsticedhiver commented Oct 30, 2024

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

@garywill
Copy link
Owner

Sorry for late reply.

That could be caused by that the device path is not like the script expects.

linux-router/lnxrouter

Lines 693 to 704 in e7ecf87

device_path="$(readlink -f /sys/class/net/$1)"
if [[ "$device_path" == "/sys/devices/pci"* ]]; then
local pci_path
pci_path=$device_path/../..
if [[ -d "$pci_path/driver" ]] ; then
driver=$(readlink -f "$pci_path/driver" | sed 's/\//\n/g' | tail -n 1)
fi
bus_id="$(echo "$device_path" | sed 's/\//\n/g' | tail -n 3 |sed -n 1p)"

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

What's your system and version?

@solsticedhiver
Copy link
Author

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

lnxrouter.log

@garywill
Copy link
Owner

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.

@solsticedhiver
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants