mac80211: insert mesh peer after init
authorThomas Pedersen <thomas@cozybit.com>
Thu, 26 Apr 2012 22:01:06 +0000 (15:01 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 May 2012 01:53:42 +0000 (21:53 -0400)
commite87278e730b11e9852fe0fe967908ef5a4e6e6a0
tree8dc6693f34ae940e2b399a0c313fca9b4bd3dc0f
parent2e4c14a5582addd655e53277861b7ad853bfd6c3
mac80211: insert mesh peer after init

Drivers need the station rate info when inserting a new sta_info. The
patch "mac80211: refactor mesh peer initialization" wrongly assumed the
rate info could be applied after insertion. After further review, this
is clearly not the case.

This fixes a regression where HT parameters were not applied before
inserting the sta_info, causing performance degradation.

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mesh_plink.c