Lines Matching refs:next_gw
201 struct batadv_gw_node *next_gw = NULL;
221 next_gw = bat_priv->algo_ops->gw.get_best_gw_node(bat_priv);
223 if (curr_gw == next_gw)
226 if (next_gw) {
227 sprintf(gw_addr, "%pM", next_gw->orig_node->orig);
229 router = batadv_orig_router_get(next_gw->orig_node,
244 if (curr_gw && !next_gw) {
249 } else if (!curr_gw && next_gw) {
252 next_gw->orig_node->orig,
253 next_gw->bandwidth_down / 10,
254 next_gw->bandwidth_down % 10,
255 next_gw->bandwidth_up / 10,
256 next_gw->bandwidth_up % 10,
263 next_gw->orig_node->orig,
264 next_gw->bandwidth_down / 10,
265 next_gw->bandwidth_down % 10,
266 next_gw->bandwidth_up / 10,
267 next_gw->bandwidth_up % 10,
273 batadv_gw_select(bat_priv, next_gw);
277 batadv_gw_node_put(next_gw);