blob: 37de85280d134b0f6699cda4fe45bb9905796ae4 [file] [log] [blame]
developer1d9da7d2023-04-15 12:45:34 +08001From a8adfd3802d6dfa399405e1768aed02d53aac53a 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
developered7222c2023-04-14 07:19:52 +08004Subject: [PATCH 08/17] 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--
developered7222c2023-04-14 07:19:52 +0800302.18.0
developer3a5d3df2022-07-14 18:13:05 +080031