summaryrefslogtreecommitdiff
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2020-09-08 15:37:01 +0300
committerJohannes Berg <johannes.berg@intel.com>2020-09-18 13:16:16 +0300
commit1ff4e8f2dec8b145b451f05320e4f9e01d254ae2 (patch)
tree2fb139543b12072117e3c1be3a21fabd40a0d84d /net/mac80211/mlme.c
parentcc20ff2c6b5d3e28747c6d30ecd097ea1a4d2502 (diff)
downloadlinux-1ff4e8f2dec8b145b451f05320e4f9e01d254ae2.tar.xz
mac80211: notify the driver when a sta uses 4-address mode
This is needed for encapsulation offload of 4-address mode packets Signed-off-by: Felix Fietkau <nbd@nbd.name> Link: https://lore.kernel.org/r/20200908123702.88454-14-nbd@nbd.name Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index ac870309b911..8e0f79cf4c02 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -3548,6 +3548,9 @@ static bool ieee80211_assoc_success(struct ieee80211_sub_if_data *sdata,
goto out;
}
+ if (sdata->wdev.use_4addr)
+ drv_sta_set_4addr(local, sdata, &sta->sta, true);
+
mutex_unlock(&sdata->local->sta_mtx);
/*