summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorLian Chen <lian.chen@mediatek.com>2022-07-14 17:16:36 +0800
committerJohannes Berg <johannes.berg@intel.com>2022-07-15 11:43:12 +0200
commitbf326cf53a38e3cebbbb929216718fa9c925e869 (patch)
tree630241df5c0e33e2a5caf1b40763460d4c46406d /net
parent59e8ef18f6a1b7712bfb6889fcd808b7b5951600 (diff)
downloadlinux-bf326cf53a38e3cebbbb929216718fa9c925e869.tar.gz
linux-bf326cf53a38e3cebbbb929216718fa9c925e869.tar.bz2
linux-bf326cf53a38e3cebbbb929216718fa9c925e869.zip
wifi: mac80211: make 4addr null frames using min_rate for WDS
WDS needs 4addr packets to trigger AP for wlan0.sta creation. However, the 4addr null frame is sent at a high rate so that sometimes the AP can't receive it. Switch to using min rate. Signed-off-by: Lian Chen <lian.chen@mediatek.com> Link: https://lore.kernel.org/r/20220714091636.59107-1-lian.chen@mediatek.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/mlme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 01a72d1fcfcc..4175247c325e 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -1207,6 +1207,7 @@ void ieee80211_send_4addr_nullfunc(struct ieee80211_local *local,
memcpy(nullfunc->addr4, sdata->vif.addr, ETH_ALEN);
IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT;
+ IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_CTL_USE_MINRATE;
ieee80211_tx_skb(sdata, skb);
}