Comments (2)
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.
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)
- Verify all "strings" are bytes() or bytearray().
- Go over all function arguments and verify they are API compatible. HOT 1
- Make 4096 default nl_msg padding. HOT 1
- Don't make nla_len and friends dynamic. HOT 3
- Auto-resolve bytearray_ptr for improved performance. HOT 3
- Implement linked lists.
- nl80211 in travisci HOT 1
- Test unicode SSIDs.
- Test WPA1, WPA2-Enterprise, WPS, no SSID, 5 GHz
- Complete documentation.
- KeyError exception in nl.py HOT 2
- scan trigger without sudo HOT 2
- Memory leak in scan_access_points.c
- get_vht_capa and get_vht_oper raise NotImplementedError
- incompatible to python3.6 HOT 2
- Test netlink consts/lambdas. HOT 1
- Implement and test logging. HOT 1
- Implement cache code.
- TODO catchall HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libnl.