Giter Club home page Giter Club logo

Comments (7)

grrtrr avatar grrtrr commented on September 3, 2024 1

The best places to look for are

  • /proc/net/dev (this is what wavemon uses to check for wireless interfaces)
  • /proc/net/wireless (if not there or empty, it is an indication that the driver does not support Wext wireless extensions)

Alternatively, you can try running the following:

  • iwconfig - shows all (Wext-supported) wireless interfaces
  • iw dev - modern variant, also displaying all wireless interfaces

from wavemon.

joerg-krause avatar joerg-krause commented on September 3, 2024

I 'm facing the same issue with latest master branch, commit affa6d8:

# wavemon -v
wavemon 0.8.0 with ncurses 5.9.20110404 and libnl 3.2.27.
Distributed under the terms of the GPLv3.
# wavemon -i wlan0
wavemon: no supported wireless interfaces found!. Check manpage for help.
# wavemon 
wavemon: no supported wireless interfaces found!. Check manpage for help.
# cat /proc/net/dev
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:  265711    2899    0    0    0     0          0         0   265711    2899    0    0    0     0       0          0
  eth0:       0       0    0    0    0     0          0         0        0       0    0    0    0     0       0          0
 wlan0:   41185     259    0    0    0     0          0        78    46411     210    0    0    0     0       0          0

from wavemon.

grrtrr avatar grrtrr commented on September 3, 2024

The interface name wlan0 appears in /proc/net/dev; the error that is produced by wavemon is caused by the SIOGIWNAME (an ioctl specific to wireless extensions) to fail on every interface in /proc/net/dev, including wlan0.

I am reopening this issue; my guess is that your wlan0 interface does not (or not fully) support wireless extensions (can be verified by running iwlist or cat /proc/net/wireless).

I will therefore work on a different solution and get back shortly.

from wavemon.

joerg-krause avatar joerg-krause commented on September 3, 2024

You're right! I have not enabled wireless extensions for this test, but had the last time.

from wavemon.

grrtrr avatar grrtrr commented on September 3, 2024

@joerg-krause - there is still some dependency of wavemon on wireless extensions; those calls would fail if this test ignores wirless extensions.

The reason I stuck with this choice so long is that wireless extensions and libnl80211 do not offer the same set of features. Some features that wext provides are not in libnl80211.

from wavemon.

joerg-krause avatar joerg-krause commented on September 3, 2024

I see! However, I will re-run the test of the master branch with wext enabled later this week.

from wavemon.

grrtrr avatar grrtrr commented on September 3, 2024

I have looked into this and decided to keep the check. The reason is that there is too much code which still depends on the wireless extensions. These calls would fail if the check were not done here. Deactivating calls that depend on wireless extensions would mean that only a part functions.

from wavemon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.