Hi Marek,
Thank you very much for your help.
When modem at gateway (for WAN uplink) is down and loses internet connection (but batman-adv connections with clients are good and dhcp server works good), can batman-adv clients know that internet
connection is
lost and "roam" to another gateway with good internet connection?
Seems you are looking for this: https://www.open-mesh.org/projects/batman-adv/wiki/Gateways
Yes, batman-adv gateway is what I am using.
Do I need to write or find a daemon at gateway to sense internet connection, once internet connection is lost (and does not recover within like 2-5 minutes) then advertise batman-adv mesh network by "batctl gw_mode client" to turn this node to be a client?
Thanks. Xuebing Wang