Searched refs:gw_mode (Results 1 – 3 of 3) sorted by relevance
138 char gw_mode; in batadv_gw_tvlv_container_update() local140 gw_mode = atomic_read(&bat_priv->gw.mode); in batadv_gw_tvlv_container_update()142 switch (gw_mode) { in batadv_gw_tvlv_container_update()
198 int gw_mode; in batadv_interface_tx() local270 gw_mode = atomic_read(&bat_priv->gw.mode); in batadv_interface_tx()273 if (gw_mode == BATADV_GW_MODE_OFF) { in batadv_interface_tx()294 else if ((gw_mode == BATADV_GW_MODE_SERVER) && in batadv_interface_tx()
516 u8 gw_mode; in batadv_netlink_set_mesh() local519 gw_mode = nla_get_u8(attr); in batadv_netlink_set_mesh()521 if (gw_mode <= BATADV_GW_MODE_SERVER) { in batadv_netlink_set_mesh()539 atomic_set(&bat_priv->gw.mode, gw_mode); in batadv_netlink_set_mesh()