]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix mesh airtime link metric estimating
authorThomas Pedersen <thomas@cozybit.com>
Mon, 5 Mar 2012 23:31:48 +0000 (15:31 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 6 Mar 2012 20:16:17 +0000 (15:16 -0500)
commit4e3998672147c4d6a75d56a05486d235148162d2
tree73d17abe9a0c55938dae6378bab61dc82343881a
parentc6dcce68bc39af5f1a94fe828545c166bb6100d0
mac80211: fix mesh airtime link metric estimating

Airtime link metric estimation was broken in HT mesh, use
cfg80211_calculate_bitrate to get the right rate value.

Also factor out tx rate copying from sta_set_sinfo().

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/mesh_hwmp.c
net/mac80211/sta_info.h