On 2011-12-19 8:17 AM, Daniel Golle wrote: > Hi! Various devices got signal strength indicator LEDs connected to > the SoCs GPIO PINs. Obviously it's easy to control them with a > polling process using libiwinfo, but that's far from a perfect > solution (it's ugly, it's an additional process, it's far from > real-time, it takes too much CPU). So I was thinking about how RSSI > LED triggers can be integrated into mac80211, ideally the threshold > levels could even be user-defined (I had a look on how ledtrig-usb > works, as that allows the user to freely create LED-triggers for > any USB device). Surely somebody must have had some thoughts about > this before and I hope you are willing to share on how an > implementation could look like according to your personal > perfectionism before I get started. I'm actually considering handling RSSI LED in user space. It doesn't integrate well with the normal trigger <-> LED model, handling it properly would need lots of extra configurability that is better done in user space, and also, a process doing an update every 250 or 500 ms is usually cheaper than adding yet another hook to something that's called from the rx path. For the initial version I was thinking of a simple program that uses nl80211 directly to poll the signal strength (no need for libiwinfo abstraction, since I have no intention of supporting non-cfg80211 drivers with this). It can take a list of LEDs and the signal strength threshold for each LED from the command line.
- Felix _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel