diff options
author | Marco Porsch <marco@cozybit.com> | 2013-01-07 10:04:49 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-01-16 16:40:56 -0500 |
commit | 1617bab8db81427392d424f2c7ffb5a3282c417c (patch) | |
tree | 6c94fa75f1d0d5498ab8743e6b0248de75ebae40 /net/mac80211/mesh_plink.c | |
parent | ea54fba20985b7a0cb8e1c8e2760a0865ee47763 (diff) |
mac80211: update mesh peer link counter during userspace peering
The established peer link count is indicated in mesh beacons and
used for other internal tasks. Previously it was not updated when
authenticated peering is performed in userspace.
Signed-off-by: Marco Porsch <marco@cozybit.com>
Acked-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mesh_plink.c')
-rw-r--r-- | net/mac80211/mesh_plink.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/net/mac80211/mesh_plink.c b/net/mac80211/mesh_plink.c index 4b274e9c91a5..9e0416696a83 100644 --- a/net/mac80211/mesh_plink.c +++ b/net/mac80211/mesh_plink.c | |||
@@ -41,20 +41,6 @@ static int mesh_plink_frame_tx(struct ieee80211_sub_if_data *sdata, | |||
41 | enum ieee80211_self_protected_actioncode action, | 41 | enum ieee80211_self_protected_actioncode action, |
42 | u8 *da, __le16 llid, __le16 plid, __le16 reason); | 42 | u8 *da, __le16 llid, __le16 plid, __le16 reason); |
43 | 43 | ||
44 | static inline | ||
45 | u32 mesh_plink_inc_estab_count(struct ieee80211_sub_if_data *sdata) | ||
46 | { | ||
47 | atomic_inc(&sdata->u.mesh.estab_plinks); | ||
48 | return mesh_accept_plinks_update(sdata); | ||
49 | } | ||
50 | |||
51 | static inline | ||
52 | u32 mesh_plink_dec_estab_count(struct ieee80211_sub_if_data *sdata) | ||
53 | { | ||
54 | atomic_dec(&sdata->u.mesh.estab_plinks); | ||
55 | return mesh_accept_plinks_update(sdata); | ||
56 | } | ||
57 | |||
58 | /** | 44 | /** |
59 | * mesh_plink_fsm_restart - restart a mesh peer link finite state machine | 45 | * mesh_plink_fsm_restart - restart a mesh peer link finite state machine |
60 | * | 46 | * |