aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_mesh.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-09-01 21:19:14 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-09-01 21:19:14 +0000
commit662c13053f4bf2d6245ba7e2b66c10d1cd5c1fb9 (patch)
tree5cffe4473640975abc443ef4b8047b34cdb4a039 /sys/net80211/ieee80211_mesh.c
parent586ee69f09c5060621486b34722a4a806581f93d (diff)
downloadsrc-662c13053f4bf2d6245ba7e2b66c10d1cd5c1fb9.tar.gz
src-662c13053f4bf2d6245ba7e2b66c10d1cd5c1fb9.zip
net: clean up empty lines in .c and .h files
Notes
Notes: svn path=/head/; revision=365071
Diffstat (limited to 'sys/net80211/ieee80211_mesh.c')
-rw-r--r--sys/net80211/ieee80211_mesh.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/sys/net80211/ieee80211_mesh.c b/sys/net80211/ieee80211_mesh.c
index d56bc4230c92..fdb84a2acb3d 100644
--- a/sys/net80211/ieee80211_mesh.c
+++ b/sys/net80211/ieee80211_mesh.c
@@ -895,7 +895,6 @@ ieee80211_mesh_mark_gate(struct ieee80211vap *vap, const uint8_t *addr,
return gr;
}
-
/*
* Helper function to note the Mesh Peer Link FSM change.
*/
@@ -951,7 +950,7 @@ static void
mesh_checkid(void *arg, struct ieee80211_node *ni)
{
uint16_t *r = arg;
-
+
if (*r == ni->ni_mllid)
*(uint16_t *)arg = 0;
}
@@ -2186,7 +2185,7 @@ mesh_parse_meshpeering_action(struct ieee80211_node *ni,
return NULL;
}
}
-
+
/*
* Close frames are accepted if meshid is the same.
* Verify the other two types.
@@ -2231,7 +2230,7 @@ mesh_parse_meshpeering_action(struct ieee80211_node *ni,
}
return NULL;
}
-
+
return (const struct ieee80211_meshpeer_ie *) mp;
}
@@ -2510,7 +2509,7 @@ mesh_recv_action_meshlmetric(struct ieee80211_node *ni,
(const struct ieee80211_meshlmetric_ie *)
(frm+2); /* action + code */
struct ieee80211_meshlmetric_ie lm_rep;
-
+
if (ie->lm_flags & IEEE80211_MESH_LMETRIC_FLAGS_REQ) {
lm_rep.lm_flags = 0;
lm_rep.lm_metric = mesh_airtime_calc(ni);
@@ -2606,7 +2605,6 @@ mesh_recv_action_meshgate(struct ieee80211_node *ni,
/* corresponding mesh gate found & GANN accepted */
found = 1;
break;
-
}
if (found == 0) {
/* this GANN is from a new mesh Gate add it to known table. */
@@ -3005,7 +3003,7 @@ static void
mesh_peer_timeout_backoff(struct ieee80211_node *ni)
{
uint32_t r;
-
+
r = arc4random();
ni->ni_mltval += r % ni->ni_mltval;
callout_reset(&ni->ni_mltimer, ni->ni_mltval, mesh_peer_timeout_cb,
@@ -3039,7 +3037,7 @@ mesh_peer_timeout_cb(void *arg)
IEEE80211_NOTE(ni->ni_vap, IEEE80211_MSG_MESH,
ni, "mesh link timeout, state %d, retry counter %d",
ni->ni_mlstate, ni->ni_mlrcnt);
-
+
switch (ni->ni_mlstate) {
case IEEE80211_NODE_MESH_IDLE:
case IEEE80211_NODE_MESH_ESTABLISHED: