developer | 1d9da7d | 2023-04-15 12:45:34 +0800 | [diff] [blame] | 1 | From a8adfd3802d6dfa399405e1768aed02d53aac53a Mon Sep 17 00:00:00 2001 |
developer | 3a5d3df | 2022-07-14 18:13:05 +0800 | [diff] [blame] | 2 | From: Lian Chen <lian.chen@mediatek.com> |
| 3 | Date: Thu, 14 Jul 2022 16:33:58 +0800 |
developer | ed7222c | 2023-04-14 07:19:52 +0800 | [diff] [blame] | 4 | Subject: [PATCH 08/17] mac80211: mtk: make 4addr null frames using min_rate |
developer | 3e4199d | 2022-10-19 14:18:06 +0800 | [diff] [blame] | 5 | for WDS |
developer | 3a5d3df | 2022-07-14 18:13:05 +0800 | [diff] [blame] | 6 | |
| 7 | WDS needs 4addr packets to trigger AP for wlan0.sta creation. |
| 8 | However, the 4addr null frame is sent at a high rate |
| 9 | so that AP can't receive it. |
| 10 | This PATCHES switches to use min_rate. |
| 11 | |
| 12 | Signed-off-by: Lian Chen <lian.chen@mediatek.com> |
| 13 | --- |
| 14 | net/mac80211/mlme.c | 1 + |
| 15 | 1 file changed, 1 insertion(+) |
| 16 | |
| 17 | diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c |
developer | a09ec1d | 2022-11-26 11:00:33 +0800 | [diff] [blame] | 18 | index cc6d38a..f97bf2b 100644 |
developer | 3a5d3df | 2022-07-14 18:13:05 +0800 | [diff] [blame] | 19 | --- 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 | -- |
developer | ed7222c | 2023-04-14 07:19:52 +0800 | [diff] [blame] | 30 | 2.18.0 |
developer | 3a5d3df | 2022-07-14 18:13:05 +0800 | [diff] [blame] | 31 | |