blob: abf673bcca122abf4bfaf7c1fabbed034b42f6bb [file] [log] [blame]
developerbf24a8a2022-11-30 14:52:20 +08001From 59a306cfe40a251e8c5deaa30367aa56cfc81d4b Mon Sep 17 00:00:00 2001
developer3a5d3df2022-07-14 18:13:05 +08002From: Lian Chen <lian.chen@mediatek.com>
3Date: Thu, 14 Jul 2022 16:33:58 +0800
developerbf24a8a2022-11-30 14:52:20 +08004Subject: [PATCH 907/911] mac80211: mtk: make 4addr null frames using min_rate
developer3e4199d2022-10-19 14:18:06 +08005 for WDS
developer3a5d3df2022-07-14 18:13:05 +08006
7WDS needs 4addr packets to trigger AP for wlan0.sta creation.
8However, the 4addr null frame is sent at a high rate
9so that AP can't receive it.
10This PATCHES switches to use min_rate.
11
12Signed-off-by: Lian Chen <lian.chen@mediatek.com>
13---
14 net/mac80211/mlme.c | 1 +
15 1 file changed, 1 insertion(+)
16
17diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
developera09ec1d2022-11-26 11:00:33 +080018index cc6d38a..f97bf2b 100644
developer3a5d3df2022-07-14 18:13:05 +080019--- a/net/mac80211/mlme.c
20+++ b/net/mac80211/mlme.c
21@@ -1133,6 +1133,7 @@ void ieee80211_send_4addr_nullfunc(struct ieee80211_local *local,
22 memcpy(nullfunc->addr4, sdata->vif.addr, ETH_ALEN);
23
24 IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT;
25+ IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_CTL_USE_MINRATE;
26 ieee80211_tx_skb(sdata, skb);
27 }
28
29--
developera09ec1d2022-11-26 11:00:33 +0800302.36.1
developer3a5d3df2022-07-14 18:13:05 +080031