]> git.hungrycats.org Git - linux/commit
mac80211: fix TX status reporting for ieee80211s
authorYuan-Chi Pang <fu3mo6goo@gmail.com>
Thu, 6 Sep 2018 08:57:48 +0000 (16:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:51:39 +0000 (14:51 +0100)
commit53d617654c5014aafb41373e38420cf80c573bb5
tree32dc05ab88642b6f95b8ebd573355c6b939dd4df
parentfd6b693e1d9451148ef5ce1142256026c0e4dc2e
mac80211: fix TX status reporting for ieee80211s

[ Upstream commit c42055105785580563535e6d3143cad95c7ac7ee ]

TX status reporting to ieee80211s is through ieee80211s_update_metric.
There are two problems about ieee80211s_update_metric:

1. The purpose is to estimate the fail probability
to a specific link. No need to restrict to data frame.

2. Current implementation does not work if wireless driver does not
pass tx_status with skb.

Fix this by removing ieee80211_is_data condition, passing
ieee80211_tx_status directly to ieee80211s_update_metric, and
putting it in both __ieee80211_tx_status and ieee80211_tx_status_ext.

Signed-off-by: Yuan-Chi Pang <fu3mo6goo@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mesh.h
net/mac80211/mesh_hwmp.c
net/mac80211/status.c