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)
commit6b62bf326393deede630731a933713de9d574128
tree73d17abe9a0c55938dae6378bab61dc82343881a
parent8097e1494459a4f9cdbaba7440334d9bd11a39f0
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