On Sunday, November 6, 2016 10:37:38 AM CET Sven Eckelmann wrote:
From: Jean-Jacques Sarton jj.sarton@t-online.de
alfred is checking the status of the mesh interface before it starts. The mesh interface has to have accessible debugfs files "transtable_global" and "originators" before alfred will accept it.
batman-adv will not create debugfs entries for network namespaces. Thus this check has to be modified to first check via netlink if the interface is providing the same information without debugfs. If it does then no check for the debugfs files is necessary anymore.
Signed-off-by: Jean-Jacques Sarton jj.sarton@t-online.de [sven@narfation.org: fixed commit message, mark debugfs function static, fix whitespaces, fix unused init of variable, only fallback to debugfs on EOPNOTSUPP, rewritten batadv_interface_check_netlink, fix return of batadv_interface_check] Signed-off-by: Sven Eckelmann sven@narfation.org
Applied in 2310c47.
Thanks! Simon