Git Product home page Git Product logo

Comments (2)

Robpol86 avatar Robpol86 commented on September 26, 2024

Usually when items in tb evaluate to None it means that the kernel/driver did not have that data to populate the dictionary with.

This library is really designed for people already familiar with the C libnl library, or more specifically, I wrote this library so I could use existing (though rare) examples of the C libnl library out on the internet.

What I would do in this case is first check if iw shows your wireless adapter does in fact support AP mode (I'm sure there's a command line option for it, been a while since I worked on this library). If it does, then I would look into its source code and try and figure out what command is sent to the kernel that produces the data you're looking for. It's possible NL80211_CMD_GET_INTERFACE doesn't cause the kernel to give you this information, maybe there's another command? Unfortunately there is no way around having to go through iw's code ;)

Sorry I can't be of much help, I haven't worked with libnl for a few months since starting my new job. I'm hoping to resume working on/with it but I'm not sure when that will be.

from libnl.

mrled avatar mrled commented on September 26, 2024

Ah, sorry, probably should have included that - iw does show the adapter as supporting AP mode.

    Supported interface modes:
             * IBSS
             * managed
             * AP
             * AP/VLAN
             * WDS
             * monitor
             * mesh point

Based on my understanding of nl80211 though, I thought NL80211_ATTR_SUPPORTED_IFTYPES would return the modes it does support, even if AP mode isn't one of them? I'll keep digging in iw's source as I have the time though. Thanks for the reply.

from libnl.

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.