OSDN Git Service

mac80211: set IEEE80211_TX_CTRL_PORT_CTRL_PROTO for nl80211 TX
authorJohannes Berg <johannes.berg@intel.com>
Thu, 26 Mar 2020 14:53:34 +0000 (15:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2020 13:28:20 +0000 (15:28 +0200)
commit73b9f68ae99f6f526b26ce249eec0f08456970b8
treedbb40b792340bd1d56de4cea301ff8be123ba8c7
parent86d79d346c4fb7304e53580c2a65235ea249a4aa
mac80211: set IEEE80211_TX_CTRL_PORT_CTRL_PROTO for nl80211 TX

[ Upstream commit b95d2ccd2ccb834394d50347d0e40dc38a954e4a ]

When a frame is transmitted via the nl80211 TX rather than as a
normal frame, IEEE80211_TX_CTRL_PORT_CTRL_PROTO wasn't set and
this will lead to wrong decisions (rate control etc.) being made
about the frame; fix this.

Fixes: 911806491425 ("mac80211: Add support for tx_control_port")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200326155333.f183f52b02f0.I4054e2a8c11c2ddcb795a0103c87be3538690243@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/tx.c