Interface to access /sys/kernel/debug/ieee80211

Bug #1679295 reported by Lance
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Medium
Unassigned

Bug Description

There are some useful entries in the /sys filesystem that are not covered by any of the existing interfaces, notably the "/sys/kernel/debug/ieee80211" tree.

Our motivating application uses the ath9k spectral analysis feature to provide detailed insight into what's going on in the Wi-Fi spectrum and infer sources of poor performance such as microwave ovens. In order to use this hardware capability, our application needs minimally write access to "/sys/kernel/debug/ieee80211/*/*/spectral_scan_ctl" and read access to "/sys/kernel/debug/ieee80211/*/*/spectral_scan0". Here is some documentation explaining how that works: https://wireless.wiki.kernel.org/en/users/drivers/ath9k/spectral_scan.

Conceivably, advanced networking applications may want access to other files in the "/sys/kernel/debug/ieee80211/" tree, so it may make sense to lump them together into some sort of "advanced-wireless" interface.

This request is made more pressing because, although devmode enables the functionality we need, it comes with a huge performance penalty. In devmode, our application's access to the spectral scan feature results in many thousands of system log messages (apparmor audit messages) that causes unacceptable CPU usage.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Note that in devmode you can (and should!) connect your interfaces to reduce the number of logged (but allowed) policy violations.

Revision history for this message
Lance (lhartung) wrote :

Thank you for the suggestion. That is a good point, and we will keep it in mind. Just to be clear, we tried connecting all of the currently available interfaces and still have problems.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

The bug title is very general while the bug description is specific. I'm going to change the bug title to reflect debug/ieee80211. In that light, I think we can just add those accesses to network-control.

summary: - Interface to access /sys filesystem
+ Interface to access /sys/kernel/debug/ieee80211
Changed in snappy:
assignee: nobody → Jamie Strandboge (jdstrand)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Lance (lhartung) wrote :

That sounds good. Thank you!

Changed in snappy:
status: Triaged → In Progress
Revision history for this message
Jamie Strandboge (jdstrand) wrote :
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This bug reported several issues and I was working on the network-control parts. All that remains is an interface for debug/ieee80211, which needs research. I'm not actively working on this, so marking back to Triaged and unassigning myself. Anyone interested in this interface should feel free to send a pull request to upstream snapd if you need this sooner than later. Thanks!

Changed in snappy:
assignee: Jamie Strandboge (jdstrand) → nobody
status: In Progress → Triaged
Michael Vogt (mvo)
affects: snappy → snapd
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.