Skip to contentSkip to conversation

wifi: mac80211: make 4addr null frames using min_rate for WDS

PATCH New Lian Chen 1 participant 1 message Jul 14, 2022

Subsystems (2)
lore
Share & tools
lore

Lian Chen

author
#0 lore raw

PATCH 1/1 wifi: mac80211: 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.

---
 net/mac80211/mlme.c | 1 +
 1 file changed, 1 insertion(+)
net/mac80211/mlme.c +1 -0
index c833245..09f54be 100644
@@ -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);
 }
 
Signature · 1 line
2.18.0