This updates mac80211 to version 6.1.110-1. This code is based on Linux 6.1.110 and contains all fixes included in the upstream wireless subsystem from that kernel version. This includes many bugfixes and also some security fixes. The removed patches are already integrated in upstream Linux 6.1.110. The following patches were integrated in upstream Linux: subsys/311-v6.2-wifi-mac80211-fix-and-simplify-unencrypted-drop-chec.patch subsys/312-v6.3-wifi-cfg80211-move-A-MSDU-check-in-ieee80211_data_to.patch subsys/313-v6.3-wifi-cfg80211-factor-out-bridge-tunnel-RFC1042-heade.patch subsys/314-v6.3-wifi-mac80211-remove-mesh-forwarding-congestion-chec.patch subsys/315-v6.3-wifi-mac80211-fix-receiving-A-MSDU-frames-on-mesh-in.patch subsys/316-v6.3-wifi-mac80211-add-a-workaround-for-receiving-non-sta.patch subsys/321-mac80211-fix-mesh-forwarding.patch subsys/322-wifi-mac80211-fix-mesh-path-discovery-based-on-unica.patch subsys/329-wifi-mac80211-fix-receiving-mesh-packets-in-forwardi.patch subsys/339-wifi-cfg80211-fix-receving-mesh-packets-without-RFC1.patch subsys/350-v6.3-wifi-mac80211-Allow-NSS-change-only-up-to-capability.patch subsys/351-v6.9-wifi-mac80211-track-capability-opmode-NSS-separately.patch Link: https://github.com/openwrt/openwrt/pull/16368 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
76 lines
2.4 KiB
Diff
76 lines
2.4 KiB
Diff
From 570eec3d40505c30babbe3b8f85a38496c975ab2 Mon Sep 17 00:00:00 2001
|
|
From: Maharaja Kennadyrajan <quic_mkenna@quicinc.com>
|
|
Date: Tue, 9 May 2023 20:07:23 +0300
|
|
Subject: [PATCH] wifi: ath11k: Relocate the func
|
|
ath11k_mac_bitrate_mask_num_ht_rates() and change hweight16 to hweight8
|
|
|
|
Relocate the function ath11k_mac_bitrate_mask_num_ht_rates() definition
|
|
to call this function from other functions which helps to avoid the
|
|
compilation error (function not defined).
|
|
|
|
ht_mcs[] is 1 byte array and it is enough to use hweight8() instead
|
|
of hweight16(). Hence, fixed the same.
|
|
|
|
Tested on: Compile tested only.
|
|
|
|
Signed-off-by: Maharaja Kennadyrajan <quic_mkenna@quicinc.com>
|
|
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
|
|
Link: https://lore.kernel.org/r/20230504092033.3542456-2-quic_mkenna@quicinc.com
|
|
---
|
|
drivers/net/wireless/ath/ath11k/mac.c | 30 +++++++++++++--------------
|
|
1 file changed, 15 insertions(+), 15 deletions(-)
|
|
|
|
--- a/drivers/net/wireless/ath/ath11k/mac.c
|
|
+++ b/drivers/net/wireless/ath/ath11k/mac.c
|
|
@@ -1,7 +1,7 @@
|
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
/*
|
|
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
|
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*/
|
|
|
|
#include <net/mac80211.h>
|
|
@@ -4334,6 +4334,20 @@ exit:
|
|
}
|
|
|
|
static int
|
|
+ath11k_mac_bitrate_mask_num_ht_rates(struct ath11k *ar,
|
|
+ enum nl80211_band band,
|
|
+ const struct cfg80211_bitrate_mask *mask)
|
|
+{
|
|
+ int num_rates = 0;
|
|
+ int i;
|
|
+
|
|
+ for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++)
|
|
+ num_rates += hweight8(mask->control[band].ht_mcs[i]);
|
|
+
|
|
+ return num_rates;
|
|
+}
|
|
+
|
|
+static int
|
|
ath11k_mac_bitrate_mask_num_vht_rates(struct ath11k *ar,
|
|
enum nl80211_band band,
|
|
const struct cfg80211_bitrate_mask *mask)
|
|
@@ -7795,20 +7809,6 @@ static void ath11k_mac_op_flush(struct i
|
|
ath11k_mac_flush_tx_complete(ar);
|
|
}
|
|
|
|
-static int
|
|
-ath11k_mac_bitrate_mask_num_ht_rates(struct ath11k *ar,
|
|
- enum nl80211_band band,
|
|
- const struct cfg80211_bitrate_mask *mask)
|
|
-{
|
|
- int num_rates = 0;
|
|
- int i;
|
|
-
|
|
- for (i = 0; i < ARRAY_SIZE(mask->control[band].ht_mcs); i++)
|
|
- num_rates += hweight16(mask->control[band].ht_mcs[i]);
|
|
-
|
|
- return num_rates;
|
|
-}
|
|
-
|
|
static bool
|
|
ath11k_mac_has_single_legacy_rate(struct ath11k *ar,
|
|
enum nl80211_band band,
|