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