diff options
author | Marco Porsch <marco@cozybit.com> | 2013-01-07 16:04:49 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-01-16 22:40:56 +0100 |
commit | 1617bab8db81427392d424f2c7ffb5a3282c417c (patch) | |
tree | 6c94fa75f1d0d5498ab8743e6b0248de75ebae40 /net/mac80211/mesh.h | |
parent | ea54fba20985b7a0cb8e1c8e2760a0865ee47763 (diff) | |
download | linux-1617bab8db81427392d424f2c7ffb5a3282c417c.tar.gz linux-1617bab8db81427392d424f2c7ffb5a3282c417c.tar.bz2 linux-1617bab8db81427392d424f2c7ffb5a3282c417c.zip |
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.h')
-rw-r--r-- | net/mac80211/mesh.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/mac80211/mesh.h b/net/mac80211/mesh.h index 84c28c6101cd..c07f6fc63dc6 100644 --- a/net/mac80211/mesh.h +++ b/net/mac80211/mesh.h @@ -307,6 +307,20 @@ extern int mesh_paths_generation; #ifdef CONFIG_MAC80211_MESH extern int mesh_allocated; +static inline +u32 mesh_plink_inc_estab_count(struct ieee80211_sub_if_data *sdata) +{ + atomic_inc(&sdata->u.mesh.estab_plinks); + return mesh_accept_plinks_update(sdata); +} + +static inline +u32 mesh_plink_dec_estab_count(struct ieee80211_sub_if_data *sdata) +{ + atomic_dec(&sdata->u.mesh.estab_plinks); + return mesh_accept_plinks_update(sdata); +} + static inline int mesh_plink_free_count(struct ieee80211_sub_if_data *sdata) { return sdata->u.mesh.mshcfg.dot11MeshMaxPeerLinks - |