linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wifi: mac80211: make 4addr null frames using min_rate for WDS
@ 2022-07-14  9:16 Lian Chen
  0 siblings, 0 replies; only message in thread
From: Lian Chen @ 2022-07-14  9:16 UTC (permalink / raw)
  To: Johannes Berg, Felix Fietkau
  Cc: Bo Jiao, Sujuan Chen, Shayne Chen, Ryder Lee, Evelyn Tsai,
	linux-wireless, linux-mediatek, Lian Chen

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 c833245..09f54be 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-14  9:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-14  9:16 [PATCH] wifi: mac80211: make 4addr null frames using min_rate for WDS Lian Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).