]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: mesh: separate plid and aid concepts
authorBob Copeland <me@bobcopeland.com>
Tue, 14 Jul 2015 12:31:58 +0000 (08:31 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 17 Jul 2015 13:47:11 +0000 (15:47 +0200)
commitfd8d1f6970cbc591802525a97eb5465f59f8c66c
treeb5081e7acefb264b2b1272f26dcdc47df6fe9133
parent630ff6a4a5bf12b9f03df80bc6e80bab716735a0
mac80211: mesh: separate plid and aid concepts

According to 802.11-2012 13.3.1, a mesh STA should assign an AID
upon receipt of a mesh peering open frame rather than using the link
id of the peer.  Using the peer link id has two potential issues:
it may not be unique among the peers, and by its nature it is random,
so the TIM may not compress well.

In preparation for allocating it properly, use sta->sta.aid, but keep
the existing behavior of using the plid in the aid we send.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_plink.c
net/mac80211/mesh_ps.c
net/mac80211/sta_info.c
net/mac80211/sta_info.h