mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-19 18:31:33 +00:00
32 lines
995 B
Diff
32 lines
995 B
Diff
From b3fd0abe777204781c02234fa481f3e8463f47cb Mon Sep 17 00:00:00 2001
|
|
From: Lian Chen <lian.chen@mediatek.com>
|
|
Date: Thu, 14 Jul 2022 16:33:58 +0800
|
|
Subject: [PATCH 08/19] mac80211: mtk: 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 AP can't receive it.
|
|
This PATCHES switches to use min_rate.
|
|
|
|
Signed-off-by: Lian Chen <lian.chen@mediatek.com>
|
|
---
|
|
net/mac80211/mlme.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
|
|
index cc6d38a..f97bf2b 100644
|
|
--- a/net/mac80211/mlme.c
|
|
+++ b/net/mac80211/mlme.c
|
|
@@ -1133,6 +1133,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);
|
|
}
|
|
|
|
--
|
|
2.18.0
|
|
|