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)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 26 Mar 2020 14:54:12 +0000 (15:54 +0100)
commitb95d2ccd2ccb834394d50347d0e40dc38a954e4a
treee0995a607a6671c12f7a332081d4186cfeb95446
parentb16798f5b907733966fd1a558fca823b3c67e4a1
mac80211: set IEEE80211_TX_CTRL_PORT_CTRL_PROTO for nl80211 TX

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>
net/mac80211/tx.c