You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
New versions of OpenWRT no longer use iwlist, and instead use iw.
iwlist can be installed on OpenWRT with the command opkg install wireless-tools. However, iwlist is not available at /sbin/iwlist as is expected by wifi, instead being available at /usr/sbin/iwlist.
As a workaround, after installing wireless-tools, I ran the following command to fix the problem:
sed -i 's+/sbin/iwlist+/usr/sbin/iwlist+g' /usr/lib/python2.7/site-packages/wifi/scan.py
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. I'm actually getting the same problem on Fedora. In addition to iwlist not being installed, ifup and ifdown are using a completely different mechanism.
I've been looking into upgrading to use the netlink kernel API directly (perhaps using pyroute2), but the going has been a little rough on that front.
As a side note, can I ask what you are doing with wifi on a OpenWRT device? I've only heard of people using it on laptops and rasberry pis.
I'm using it to detect nearby WiFi networks, and I then use that information and some input from the user to create a network bridge. All through a Python application.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
New versions of OpenWRT no longer use
iwlist
, and instead useiw
.iwlist
can be installed on OpenWRT with the commandopkg install wireless-tools
. However,iwlist
is not available at/sbin/iwlist
as is expected bywifi
, instead being available at/usr/sbin/iwlist
.As a workaround, after installing
wireless-tools
, I ran the following command to fix the problem:sed -i 's+/sbin/iwlist+/usr/sbin/iwlist+g' /usr/lib/python2.7/site-packages/wifi/scan.py
The text was updated successfully, but these errors were encountered: