[B.A.T.M.A.N.] How to detect gateway mode in openwrt?