mac80211: don't re-init rate control when receiving mesh beacon
authorChun-Yeow Yeoh <yeohchunyeow@gmail.com>
Tue, 24 Jul 2012 03:52:35 +0000 (11:52 +0800)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 31 Jul 2012 14:10:55 +0000 (16:10 +0200)
commitbae35d92b6a1b6fd8c699415ab90aeeea2a56bc3
treedbdc9b9626dfce07340530051fa123f2eb6cdd99
parent173f8654746c138a08f51a8a0db7747763a896a2
mac80211: don't re-init rate control when receiving mesh beacon

Rate control is re-initialized whenever a beacon from a mesh
peer received, breaking the algorithms and resulting in low
performance. Return early from mesh_peer_init if we already
established a link with this peer to avoid this.

Signed-off-by: Chun-Yeow Yeoh <yeohchunyeow@gmail.com>
[clarify commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_plink.c