On Sat, Oct 10, 2015 at 02:05:29PM +0100, Carlos Meralto wrote:
> Thanks for the answer Bob.
> 
> I do not quite understand the debugfs. I will explain what i want to do:
> I want to add in airtime link metric some parameters of the Android
> battery, i can access that parameters from Shell script (dumpsys bat..
> | grep . ..) or from a specific file (/sdcard/bat_log.txt). But I want
> to access these parameters in the airtime_link_metric_get function.
> How i can do this with debugfs?

For prototyping's sake, you can do something like:

while true; do grep whatever /sdcard/bat_log.txt > \
    /sys/kernel/debug/ieee80211/wlan0/mesh_params/alm_batt.txt
done

i.e. writing that file would update some state that the ALM calculation
uses.

If you want to do something more permanent, then maybe you can
directly read the battery details from some platform device, but
that will be pretty platform specific.

-- 
Bob Copeland %% http://bobcopeland.com/
_______________________________________________
Devel mailing list
[email protected]
http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel

Reply via email to