aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/subsys
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2020-08-06 20:37:44 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2020-08-10 19:34:37 +0200
commitfce0f1501b12b54c0961802ff10b4b5f24a1a33d (patch)
tree334031dde5849be4e2bcb7ede89f4e4c3f9a62a1 /package/kernel/mac80211/patches/subsys
parentd32010d5ff7455cd51fb6b3e06fa4662ad87eaa9 (diff)
downloadupstream-fce0f1501b12b54c0961802ff10b4b5f24a1a33d.tar.gz
upstream-fce0f1501b12b54c0961802ff10b4b5f24a1a33d.tar.bz2
upstream-fce0f1501b12b54c0961802ff10b4b5f24a1a33d.zip
mac80211: Update to version 5.8
The removed patches were applied upstream. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/kernel/mac80211/patches/subsys')
-rw-r--r--package/kernel/mac80211/patches/subsys/140-tweak-TSQ-setting.patch2
-rw-r--r--package/kernel/mac80211/patches/subsys/210-ap_scan.patch2
-rw-r--r--package/kernel/mac80211/patches/subsys/300-mac80211-optimize-skb-resizing.patch2
-rw-r--r--package/kernel/mac80211/patches/subsys/305-mac80211-improve-AQL-tx-airtime-estimation.patch4
-rw-r--r--package/kernel/mac80211/patches/subsys/306-mac80211-remove-STA-txq-pending-airtime-underflow-wa.patch31
-rw-r--r--package/kernel/mac80211/patches/subsys/307-mac80211-add-a-function-for-running-rx-without-passi.patch14
-rw-r--r--package/kernel/mac80211/patches/subsys/500-mac80211_configure_antenna_gain.patch4
-rw-r--r--package/kernel/mac80211/patches/subsys/600-fix-warning-in-6-ghz-ie-addition.patch64
8 files changed, 14 insertions, 109 deletions
diff --git a/package/kernel/mac80211/patches/subsys/140-tweak-TSQ-setting.patch b/package/kernel/mac80211/patches/subsys/140-tweak-TSQ-setting.patch
index 56f8e7b8d9..2bb51f3693 100644
--- a/package/kernel/mac80211/patches/subsys/140-tweak-TSQ-setting.patch
+++ b/package/kernel/mac80211/patches/subsys/140-tweak-TSQ-setting.patch
@@ -1,6 +1,6 @@
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
-@@ -4133,6 +4133,12 @@ out:
+@@ -4136,6 +4136,12 @@ out:
netdev_tx_t ieee80211_subif_start_xmit(struct sk_buff *skb,
struct net_device *dev)
{
diff --git a/package/kernel/mac80211/patches/subsys/210-ap_scan.patch b/package/kernel/mac80211/patches/subsys/210-ap_scan.patch
index a4c3ca6f47..8ccab8cf66 100644
--- a/package/kernel/mac80211/patches/subsys/210-ap_scan.patch
+++ b/package/kernel/mac80211/patches/subsys/210-ap_scan.patch
@@ -1,6 +1,6 @@
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
-@@ -2344,7 +2344,7 @@ static int ieee80211_scan(struct wiphy *
+@@ -2345,7 +2345,7 @@ static int ieee80211_scan(struct wiphy *
* the frames sent while scanning on other channel will be
* lost)
*/
diff --git a/package/kernel/mac80211/patches/subsys/300-mac80211-optimize-skb-resizing.patch b/package/kernel/mac80211/patches/subsys/300-mac80211-optimize-skb-resizing.patch
index 41f8eb5a65..bcdfa22fff 100644
--- a/package/kernel/mac80211/patches/subsys/300-mac80211-optimize-skb-resizing.patch
+++ b/package/kernel/mac80211/patches/subsys/300-mac80211-optimize-skb-resizing.patch
@@ -36,7 +36,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
void ieee80211_apply_htcap_overrides(struct ieee80211_sub_if_data *sdata,
--- a/net/mac80211/status.c
+++ b/net/mac80211/status.c
-@@ -835,6 +835,11 @@ void ieee80211_tx_monitor(struct ieee802
+@@ -843,6 +843,11 @@ void ieee80211_tx_monitor(struct ieee802
struct net_device *prev_dev = NULL;
int rtap_len;
diff --git a/package/kernel/mac80211/patches/subsys/305-mac80211-improve-AQL-tx-airtime-estimation.patch b/package/kernel/mac80211/patches/subsys/305-mac80211-improve-AQL-tx-airtime-estimation.patch
index f344281439..bee43a60fa 100644
--- a/package/kernel/mac80211/patches/subsys/305-mac80211-improve-AQL-tx-airtime-estimation.patch
+++ b/package/kernel/mac80211/patches/subsys/305-mac80211-improve-AQL-tx-airtime-estimation.patch
@@ -55,7 +55,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
if (!conf)
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
-@@ -2278,7 +2278,7 @@ extern const struct ethtool_ops ieee8021
+@@ -2294,7 +2294,7 @@ extern const struct ethtool_ops ieee8021
u32 ieee80211_calc_expected_tx_airtime(struct ieee80211_hw *hw,
struct ieee80211_vif *vif,
struct ieee80211_sta *pubsta,
@@ -66,7 +66,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
#else
--- a/net/mac80211/tx.c
+++ b/net/mac80211/tx.c
-@@ -3694,10 +3694,11 @@ encap_out:
+@@ -3707,10 +3707,11 @@ encap_out:
if (vif &&
wiphy_ext_feature_isset(local->hw.wiphy, NL80211_EXT_FEATURE_AQL)) {
diff --git a/package/kernel/mac80211/patches/subsys/306-mac80211-remove-STA-txq-pending-airtime-underflow-wa.patch b/package/kernel/mac80211/patches/subsys/306-mac80211-remove-STA-txq-pending-airtime-underflow-wa.patch
deleted file mode 100644
index ab3a77e19b..0000000000
--- a/package/kernel/mac80211/patches/subsys/306-mac80211-remove-STA-txq-pending-airtime-underflow-wa.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From: Felix Fietkau <nbd@nbd.name>
-Date: Sat, 25 Jul 2020 10:42:30 +0200
-Subject: [PATCH] mac80211: remove STA txq pending airtime underflow
- warning
-
-This warning can trigger if there is a mismatch between frames that were
-sent with the sta pointer set vs tx status frames reported for the sta address.
-
-This can happen due to race conditions on re-creating stations, or even
-in the case of .sta_add/remove being used instead of .sta_state, which can cause
-frames to be sent to a station that has not been uploaded yet.
-
-If there is an actual underflow issue, it should show up in the device airtime
-warning below, so it is better to remove this one.
-
-Signed-off-by: Felix Fietkau <nbd@nbd.name>
----
-
---- a/net/mac80211/sta_info.c
-+++ b/net/mac80211/sta_info.c
-@@ -1924,9 +1924,7 @@ void ieee80211_sta_update_pending_airtim
- if (sta) {
- tx_pending = atomic_sub_return(tx_airtime,
- &sta->airtime[ac].aql_tx_pending);
-- if (WARN_ONCE(tx_pending < 0,
-- "STA %pM AC %d txq pending airtime underflow: %u, %u",
-- sta->addr, ac, tx_pending, tx_airtime))
-+ if (tx_pending < 0)
- atomic_cmpxchg(&sta->airtime[ac].aql_tx_pending,
- tx_pending, 0);
- }
diff --git a/package/kernel/mac80211/patches/subsys/307-mac80211-add-a-function-for-running-rx-without-passi.patch b/package/kernel/mac80211/patches/subsys/307-mac80211-add-a-function-for-running-rx-without-passi.patch
index 5837a7b651..1bcb41461e 100644
--- a/package/kernel/mac80211/patches/subsys/307-mac80211-add-a-function-for-running-rx-without-passi.patch
+++ b/package/kernel/mac80211/patches/subsys/307-mac80211-add-a-function-for-running-rx-without-passi.patch
@@ -58,7 +58,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
struct ieee80211_sub_if_data *sdata;
--- a/net/mac80211/rx.c
+++ b/net/mac80211/rx.c
-@@ -2552,8 +2552,8 @@ static void ieee80211_deliver_skb_to_loc
+@@ -2578,8 +2578,8 @@ static void ieee80211_deliver_skb_to_loc
memset(skb->cb, 0, sizeof(skb->cb));
/* deliver to local stack */
@@ -69,7 +69,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
else
netif_receive_skb(skb);
}
-@@ -3843,7 +3843,6 @@ void ieee80211_release_reorder_timeout(s
+@@ -3869,7 +3869,6 @@ void ieee80211_release_reorder_timeout(s
/* This is OK -- must be QoS data frame */
.security_idx = tid,
.seqno_idx = tid,
@@ -77,7 +77,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
};
struct tid_ampdu_rx *tid_agg_rx;
-@@ -4453,8 +4452,8 @@ static bool ieee80211_invoke_fast_rx(str
+@@ -4479,8 +4478,8 @@ static bool ieee80211_invoke_fast_rx(str
/* deliver to local stack */
skb->protocol = eth_type_trans(skb, fast_rx->dev);
memset(skb->cb, 0, sizeof(skb->cb));
@@ -88,7 +88,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
else
netif_receive_skb(skb);
-@@ -4521,7 +4520,7 @@ static bool ieee80211_prepare_and_rx_han
+@@ -4547,7 +4546,7 @@ static bool ieee80211_prepare_and_rx_han
static void __ieee80211_rx_handle_packet(struct ieee80211_hw *hw,
struct ieee80211_sta *pubsta,
struct sk_buff *skb,
@@ -97,7 +97,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
{
struct ieee80211_local *local = hw_to_local(hw);
struct ieee80211_sub_if_data *sdata;
-@@ -4536,7 +4535,7 @@ static void __ieee80211_rx_handle_packet
+@@ -4562,7 +4561,7 @@ static void __ieee80211_rx_handle_packet
memset(&rx, 0, sizeof(rx));
rx.skb = skb;
rx.local = local;
@@ -106,7 +106,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
if (ieee80211_is_data(fc) || ieee80211_is_mgmt(fc))
I802_DEBUG_INC(local->dot11ReceivedFragmentCount);
-@@ -4644,8 +4643,8 @@ static void __ieee80211_rx_handle_packet
+@@ -4670,8 +4669,8 @@ static void __ieee80211_rx_handle_packet
* This is the receive path handler. It is called by a low level driver when an
* 802.11 MPDU is received from the hardware.
*/
@@ -117,7 +117,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
{
struct ieee80211_local *local = hw_to_local(hw);
struct ieee80211_rate *rate = NULL;
-@@ -4737,36 +4736,53 @@ void ieee80211_rx_napi(struct ieee80211_
+@@ -4763,36 +4762,53 @@ void ieee80211_rx_napi(struct ieee80211_
status->rx_flags = 0;
/*
diff --git a/package/kernel/mac80211/patches/subsys/500-mac80211_configure_antenna_gain.patch b/package/kernel/mac80211/patches/subsys/500-mac80211_configure_antenna_gain.patch
index 09c5857623..b816146c2a 100644
--- a/package/kernel/mac80211/patches/subsys/500-mac80211_configure_antenna_gain.patch
+++ b/package/kernel/mac80211/patches/subsys/500-mac80211_configure_antenna_gain.patch
@@ -57,7 +57,7 @@
__NL80211_ATTR_AFTER_LAST,
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
-@@ -2609,6 +2609,19 @@ static int ieee80211_get_tx_power(struct
+@@ -2610,6 +2610,19 @@ static int ieee80211_get_tx_power(struct
return 0;
}
@@ -77,7 +77,7 @@
static int ieee80211_set_wds_peer(struct wiphy *wiphy, struct net_device *dev,
const u8 *addr)
{
-@@ -4039,6 +4052,7 @@ const struct cfg80211_ops mac80211_confi
+@@ -4040,6 +4053,7 @@ const struct cfg80211_ops mac80211_confi
.set_wiphy_params = ieee80211_set_wiphy_params,
.set_tx_power = ieee80211_set_tx_power,
.get_tx_power = ieee80211_get_tx_power,
diff --git a/package/kernel/mac80211/patches/subsys/600-fix-warning-in-6-ghz-ie-addition.patch b/package/kernel/mac80211/patches/subsys/600-fix-warning-in-6-ghz-ie-addition.patch
deleted file mode 100644
index 31dedf2739..0000000000
--- a/package/kernel/mac80211/patches/subsys/600-fix-warning-in-6-ghz-ie-addition.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From 65ad3ef9fced4062dfd74e2f89443fb5ce184321 Mon Sep 17 00:00:00 2001
-From: Rajkumar Manoharan <rmanohar@codeaurora.org>
-Date: Wed, 1 Jul 2020 19:20:24 -0700
-Subject: mac80211: fix warning in 6 GHz IE addition in mesh mode
-
-The commit 24a2042cb22f ("mac80211: add HE 6 GHz Band Capability
-element") failed to check device capability before adding HE 6 GHz
-capability element. Below warning is reported in 11ac device in mesh.
-Fix that by checking device capability at HE 6 GHz cap IE addition
-in mesh beacon and association request.
-
-WARNING: CPU: 1 PID: 1897 at net/mac80211/util.c:2878
-ieee80211_ie_build_he_6ghz_cap+0x149/0x150 [mac80211]
-[ 3138.720358] Call Trace:
-[ 3138.720361] ieee80211_mesh_build_beacon+0x462/0x530 [mac80211]
-[ 3138.720363] ieee80211_start_mesh+0xa8/0xf0 [mac80211]
-[ 3138.720365] __cfg80211_join_mesh+0x122/0x3e0 [cfg80211]
-[ 3138.720368] nl80211_join_mesh+0x3d3/0x510 [cfg80211]
-
-Fixes: 24a2042cb22f ("mac80211: add HE 6 GHz Band Capability element")
-Reported-by: Markus Theil <markus.theil@tu-ilmenau.de>
-Signed-off-by: Rajkumar Manoharan <rmanohar@codeaurora.org>
-Link: https://lore.kernel.org/r/1593656424-18240-1-git-send-email-rmanohar@codeaurora.org
-Signed-off-by: Johannes Berg <johannes.berg@intel.com>
----
- net/mac80211/mesh.c | 13 +++++++++++++
- net/mac80211/util.c | 4 ++++
- 2 files changed, 17 insertions(+)
-
---- a/net/mac80211/mesh.c
-+++ b/net/mac80211/mesh.c
-@@ -617,6 +617,19 @@ int mesh_add_he_oper_ie(struct ieee80211
- int mesh_add_he_6ghz_cap_ie(struct ieee80211_sub_if_data *sdata,
- struct sk_buff *skb)
- {
-+ struct ieee80211_supported_band *sband;
-+ const struct ieee80211_sband_iftype_data *iftd;
-+
-+ sband = ieee80211_get_sband(sdata);
-+ if (!sband)
-+ return -EINVAL;
-+
-+ iftd = ieee80211_get_sband_iftype_data(sband,
-+ NL80211_IFTYPE_MESH_POINT);
-+ /* The device doesn't support HE in mesh mode or at all */
-+ if (!iftd)
-+ return 0;
-+
- ieee80211_ie_build_he_6ghz_cap(sdata, skb);
- return 0;
- }
---- a/net/mac80211/util.c
-+++ b/net/mac80211/util.c
-@@ -2878,6 +2878,10 @@ void ieee80211_ie_build_he_6ghz_cap(stru
- if (WARN_ON(!iftd))
- return;
-
-+ /* Check for device HE 6 GHz capability before adding element */
-+ if (!iftd->he_6ghz_capa.capa)
-+ return;
-+
- cap = le16_to_cpu(iftd->he_6ghz_capa.capa);
- cap &= ~IEEE80211_HE_6GHZ_CAP_SM_PS;
-