Searched refs:gw_mode (Results 1 – 4 of 4) 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()
203 int gw_mode; in batadv_interface_tx() local275 gw_mode = atomic_read(&bat_priv->gw.mode); in batadv_interface_tx()278 if (gw_mode == BATADV_GW_MODE_OFF) { in batadv_interface_tx()299 else if ((gw_mode == BATADV_GW_MODE_SERVER) && in batadv_interface_tx()
520 u8 gw_mode; in batadv_netlink_set_mesh() local523 gw_mode = nla_get_u8(attr); in batadv_netlink_set_mesh()525 if (gw_mode <= BATADV_GW_MODE_SERVER) { in batadv_netlink_set_mesh()543 atomic_set(&bat_priv->gw.mode, gw_mode); in batadv_netlink_set_mesh()
737 static BATADV_ATTR(gw_mode, 0644, batadv_show_gw_mode, batadv_store_gw_mode);