Skip to content

Commit

Permalink
mac80211: update to version 6.12.6
Browse files Browse the repository at this point in the history
- drop patches accepted upstream
- include build fixes in the tarball
- based on https://github.com/nbd168/backports commit 410656ef04d2

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Dec 26, 2024
1 parent de0c143 commit a850594
Show file tree
Hide file tree
Showing 68 changed files with 143 additions and 4,434 deletions.
4 changes: 2 additions & 2 deletions package/kernel/mac80211/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=mac80211

PKG_VERSION:=6.11.2
PKG_VERSION:=6.12.6
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=COPYING

PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
PKG_HASH:=700ea5abef8dde9e3c6df2acd32ff443da735d773d56db9a80269e2237549b34
PKG_HASH:=28ec39425a1b3270e1422d92a8131a6a3d8919cc13e8ee250c315e55d922ba68

PKG_SOURCE:=backports-$(PKG_VERSION).tar.xz
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(if $(BUILD_VARIANT),$(PKG_NAME)-$(BUILD_VARIANT)/)backports-$(PKG_VERSION)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "../ath.h"
#include "ath5k.h"
#include "debug.h"
@@ -71,7 +72,7 @@ static void ath5k_pci_read_cachesize(str
@@ -73,7 +74,7 @@ static void ath5k_pci_read_cachesize(str
}

/*
Expand All @@ -17,7 +17,7 @@
*/
static bool
ath5k_pci_eeprom_read(struct ath_common *common, u32 offset, u16 *data)
@@ -79,6 +80,19 @@ ath5k_pci_eeprom_read(struct ath_common
@@ -81,6 +82,19 @@ ath5k_pci_eeprom_read(struct ath_common
struct ath5k_hw *ah = common->ah;
u32 status, timeout;

Expand All @@ -37,7 +37,7 @@
/*
* Initialize EEPROM access
*/
@@ -122,6 +136,16 @@ static int ath5k_pci_eeprom_read_mac(str
@@ -124,6 +138,16 @@ static int ath5k_pci_eeprom_read_mac(str
u16 data;
int octet;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ Acked-by: Jeff Johnson <[email protected]>
enum ath12k_dev_flags {
ATH12K_CAC_RUNNING,
ATH12K_FLAG_CRASH_FLUSH,
@@ -313,6 +319,8 @@ struct ath12k_vif_iter {
@@ -319,6 +325,8 @@ struct ath12k_vif_iter {
#define ATH12K_RX_RATE_TABLE_11AX_NUM 576
#define ATH12K_RX_RATE_TABLE_NUM 320

Expand All @@ -460,7 +460,7 @@ Acked-by: Jeff Johnson <[email protected]>
struct ath12k_rx_peer_rate_stats {
u64 ht_mcs_count[HAL_RX_MAX_MCS_HT + 1];
u64 vht_mcs_count[HAL_RX_MAX_MCS_VHT + 1];
@@ -648,6 +656,13 @@ struct ath12k {
@@ -654,6 +662,13 @@ struct ath12k {
u32 freq_low;
u32 freq_high;

Expand All @@ -474,7 +474,7 @@ Acked-by: Jeff Johnson <[email protected]>
bool nlo_enabled;
};

@@ -880,6 +895,8 @@ struct ath12k_base {
@@ -886,6 +901,8 @@ struct ath12k_base {
/* continuous recovery fail count */
atomic_t fail_cont_count;
unsigned long reset_fail_timeout;
Expand All @@ -485,7 +485,7 @@ Acked-by: Jeff Johnson <[email protected]>
u32 fw_crash_counter;
--- a/drivers/net/wireless/ath/ath12k/mac.c
+++ b/drivers/net/wireless/ath/ath12k/mac.c
@@ -2946,6 +2946,11 @@ static void ath12k_bss_assoc(struct ath1
@@ -2949,6 +2949,11 @@ static void ath12k_bss_assoc(struct ath1
if (ret)
ath12k_warn(ar->ab, "failed to set vdev %i OBSS PD parameters: %d\n",
arvif->vdev_id, ret);
Expand All @@ -497,7 +497,7 @@ Acked-by: Jeff Johnson <[email protected]>
}

static void ath12k_bss_disassoc(struct ath12k *ar,
@@ -3521,7 +3526,7 @@ void __ath12k_mac_scan_finish(struct ath
@@ -3524,7 +3529,7 @@ void __ath12k_mac_scan_finish(struct ath
ar->scan_channel = NULL;
ar->scan.roc_freq = 0;
cancel_delayed_work(&ar->scan.timeout);
Expand All @@ -506,9 +506,9 @@ Acked-by: Jeff Johnson <[email protected]>
break;
}
}
@@ -3782,7 +3787,12 @@ scan:
@@ -3790,7 +3795,12 @@ scan:

ret = ath12k_start_scan(ar, &arg);
ret = ath12k_start_scan(ar, arg);
if (ret) {
- ath12k_warn(ar->ab, "failed to start hw scan: %d\n", ret);
+ if (ret == -EBUSY)
Expand All @@ -520,7 +520,7 @@ Acked-by: Jeff Johnson <[email protected]>
spin_lock_bh(&ar->data_lock);
ar->scan.state = ATH12K_SCAN_IDLE;
spin_unlock_bh(&ar->data_lock);
@@ -3801,6 +3811,11 @@ exit:
@@ -3810,6 +3820,11 @@ exit:

mutex_unlock(&ar->conf_mutex);

Expand All @@ -532,7 +532,7 @@ Acked-by: Jeff Johnson <[email protected]>
return ret;
}

@@ -5985,7 +6000,7 @@ static int ath12k_mac_start(struct ath12
@@ -5994,7 +6009,7 @@ static int ath12k_mac_start(struct ath12

/* TODO: Do we need to enable ANI? */

Expand All @@ -541,7 +541,7 @@ Acked-by: Jeff Johnson <[email protected]>

ar->num_started_vdevs = 0;
ar->num_created_vdevs = 0;
@@ -6165,6 +6180,9 @@ static void ath12k_mac_stop(struct ath12
@@ -6174,6 +6189,9 @@ static void ath12k_mac_stop(struct ath12
cancel_delayed_work_sync(&ar->scan.timeout);
cancel_work_sync(&ar->regd_update_work);
cancel_work_sync(&ar->ab->rfkill_work);
Expand All @@ -551,7 +551,7 @@ Acked-by: Jeff Johnson <[email protected]>

spin_lock_bh(&ar->data_lock);
list_for_each_entry_safe(ppdu_stats, tmp, &ar->ppdu_stats_info, list) {
@@ -6411,6 +6429,117 @@ static void ath12k_mac_op_update_vif_off
@@ -6420,6 +6438,117 @@ static void ath12k_mac_op_update_vif_off
ath12k_mac_update_vif_offload(arvif);
}

Expand Down Expand Up @@ -669,15 +669,15 @@ Acked-by: Jeff Johnson <[email protected]>
static int ath12k_mac_vdev_create(struct ath12k *ar, struct ieee80211_vif *vif)
{
struct ath12k_hw *ah = ar->ah;
@@ -6525,6 +6654,7 @@ static int ath12k_mac_vdev_create(struct
@@ -6534,6 +6663,7 @@ static int ath12k_mac_vdev_create(struct
arvif->vdev_id, ret);
goto err_peer_del;
}
+ ath12k_mac_11d_scan_stop_all(ar->ab);
break;
case WMI_VDEV_TYPE_STA:
param_id = WMI_STA_PS_PARAM_RX_WAKE_POLICY;
@@ -6563,6 +6693,13 @@ static int ath12k_mac_vdev_create(struct
@@ -6572,6 +6702,13 @@ static int ath12k_mac_vdev_create(struct
arvif->vdev_id, ret);
goto err_peer_del;
}
Expand All @@ -691,7 +691,7 @@ Acked-by: Jeff Johnson <[email protected]>
break;
default:
break;
@@ -6903,6 +7040,11 @@ static void ath12k_mac_op_remove_interfa
@@ -6912,6 +7049,11 @@ static void ath12k_mac_op_remove_interfa
ath12k_dbg(ab, ATH12K_DBG_MAC, "mac remove interface (vdev %d)\n",
arvif->vdev_id);

Expand All @@ -703,7 +703,7 @@ Acked-by: Jeff Johnson <[email protected]>
if (arvif->vdev_type == WMI_VDEV_TYPE_AP) {
ret = ath12k_peer_delete(ar, arvif->vdev_id, vif->addr);
if (ret)
@@ -7743,6 +7885,14 @@ ath12k_mac_op_unassign_vif_chanctx(struc
@@ -7752,6 +7894,14 @@ ath12k_mac_op_unassign_vif_chanctx(struc
ar->num_started_vdevs == 1 && ar->monitor_vdev_created)
ath12k_mac_monitor_stop(ar);

Expand All @@ -718,7 +718,7 @@ Acked-by: Jeff Johnson <[email protected]>
mutex_unlock(&ar->conf_mutex);
}

@@ -8281,6 +8431,14 @@ ath12k_mac_op_reconfig_complete(struct i
@@ -8290,6 +8440,14 @@ ath12k_mac_op_reconfig_complete(struct i
ath12k_warn(ar->ab, "pdev %d successfully recovered\n",
ar->pdev->pdev_id);

Expand All @@ -733,7 +733,7 @@ Acked-by: Jeff Johnson <[email protected]>
if (ab->is_reset) {
recovery_count = atomic_inc_return(&ab->recovery_count);

@@ -9330,6 +9488,9 @@ static void ath12k_mac_setup(struct ath1
@@ -9339,6 +9497,9 @@ static void ath12k_mac_setup(struct ath1

INIT_WORK(&ar->wmi_mgmt_tx_work, ath12k_mgmt_over_wmi_tx_work);
skb_queue_head_init(&ar->wmi_mgmt_tx_queue);
Expand Down Expand Up @@ -888,36 +888,36 @@ Acked-by: Jeff Johnson <[email protected]>
#endif
--- a/drivers/net/wireless/ath/ath12k/hw.c
+++ b/drivers/net/wireless/ath/ath12k/hw.c
@@ -926,6 +926,7 @@ static const struct ath12k_hw_params ath
.supports_dynamic_smps_6ghz = true,

@@ -928,6 +928,7 @@ static const struct ath12k_hw_params ath
.iova_mask = 0,

.supports_aspm = false,
+ .current_cc_support = false,
},
{
.name = "wcn7850 hw2.0",
@@ -1004,6 +1005,7 @@ static const struct ath12k_hw_params ath
.supports_dynamic_smps_6ghz = false,

@@ -1008,6 +1009,7 @@ static const struct ath12k_hw_params ath
.iova_mask = ATH12K_PCIE_MAX_PAYLOAD_SIZE - 1,

.supports_aspm = true,
+ .current_cc_support = true,
},
{
.name = "qcn9274 hw2.0",
@@ -1078,6 +1080,7 @@ static const struct ath12k_hw_params ath
.supports_dynamic_smps_6ghz = true,

@@ -1084,6 +1086,7 @@ static const struct ath12k_hw_params ath
.iova_mask = 0,

.supports_aspm = false,
+ .current_cc_support = false,
},
};

--- a/drivers/net/wireless/ath/ath12k/hw.h
+++ b/drivers/net/wireless/ath/ath12k/hw.h
@@ -189,6 +189,7 @@ struct ath12k_hw_params {
bool tcl_ring_retry:1;
@@ -190,6 +190,7 @@ struct ath12k_hw_params {
bool reoq_lut_support:1;
bool supports_shadow_regs:1;
bool supports_aspm:1;
+ bool current_cc_support:1;

u32 num_tcl_banks;
Expand Down
11 changes: 0 additions & 11 deletions package/kernel/mac80211/patches/ath5k/432-ath5k_add_pciids.patch

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This reverts commit 71f5137bf010c6faffab50c0ec15374c59c4a411.

--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -2977,7 +2977,8 @@ void ath9k_hw_apply_txpower(struct ath_h
@@ -2975,7 +2975,8 @@ void ath9k_hw_apply_txpower(struct ath_h
{
struct ath_regulatory *reg = ath9k_hw_regulatory(ah);
struct ieee80211_channel *channel;
Expand All @@ -18,7 +18,7 @@ This reverts commit 71f5137bf010c6faffab50c0ec15374c59c4a411.
u16 ctl = NO_CTL;

if (!chan)
@@ -2989,9 +2990,14 @@ void ath9k_hw_apply_txpower(struct ath_h
@@ -2987,9 +2988,14 @@ void ath9k_hw_apply_txpower(struct ath_h
channel = chan->chan;
chan_pwr = min_t(int, channel->max_power * 2, MAX_COMBINED_POWER);
new_pwr = min_t(int, chan_pwr, reg->power_limit);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Signed-off-by: Felix Fietkau <[email protected]>

--- a/drivers/net/wireless/ath/ath9k/hw.c
+++ b/drivers/net/wireless/ath/ath9k/hw.c
@@ -2996,6 +2996,10 @@ void ath9k_hw_apply_txpower(struct ath_h
@@ -2994,6 +2994,10 @@ void ath9k_hw_apply_txpower(struct ath_h
if (ant_gain > max_gain)
ant_reduction = ant_gain - max_gain;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ Signed-off-by: Rafał Miłecki <[email protected]>
void brcmf_of_probe(struct device *dev, enum brcmf_bus_type bus_type,
struct brcmf_mp_device *settings)
{
@@ -114,6 +144,8 @@ void brcmf_of_probe(struct device *dev,
of_node_put(root);
@@ -113,6 +143,8 @@ void brcmf_of_probe(struct device *dev,
}
of_node_put(root);

+ brcmf_of_probe_cc(dev, settings);
+
Expand Down

This file was deleted.

This file was deleted.

18 changes: 9 additions & 9 deletions package/kernel/mac80211/patches/build/140-trace_backport.patch
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
--- a/drivers/bus/mhi/host/trace.h
+++ b/drivers/bus/mhi/host/trace.h
@@ -103,7 +103,7 @@ TRACE_EVENT(mhi_gen_tre,
@@ -104,7 +104,7 @@ TRACE_EVENT(mhi_gen_tre,
),

TP_fast_assign(
- __assign_str(name);
+ __assign_str(name, mhi_cntrl->mhi_dev->name);
__entry->ch_num = mhi_chan->chan;
__entry->wp = mhi_tre;
__entry->tre_ptr = mhi_tre->ptr;
@@ -131,7 +131,7 @@ TRACE_EVENT(mhi_intvec_states,
__entry->tre_ptr = le64_to_cpu(mhi_tre->ptr);
@@ -132,7 +132,7 @@ TRACE_EVENT(mhi_intvec_states,
),

TP_fast_assign(
Expand All @@ -18,7 +18,7 @@
__entry->local_ee = mhi_cntrl->ee;
__entry->state = mhi_cntrl->dev_state;
__entry->dev_ee = dev_ee;
@@ -158,7 +158,7 @@ TRACE_EVENT(mhi_tryset_pm_state,
@@ -159,7 +159,7 @@ TRACE_EVENT(mhi_tryset_pm_state,
),

TP_fast_assign(
Expand All @@ -27,16 +27,16 @@
if (pm_state)
pm_state = __fls(pm_state);
__entry->pm_state = pm_state;
@@ -184,7 +184,7 @@ DECLARE_EVENT_CLASS(mhi_process_event_ri
@@ -185,7 +185,7 @@ DECLARE_EVENT_CLASS(mhi_process_event_ri
),

TP_fast_assign(
- __assign_str(name);
+ __assign_str(name, mhi_cntrl->mhi_dev->name);
__entry->rp = rp;
__entry->ptr = rp->ptr;
__entry->dword0 = rp->dword[0];
@@ -226,7 +226,7 @@ DECLARE_EVENT_CLASS(mhi_update_channel_s
__entry->ptr = le64_to_cpu(rp->ptr);
__entry->dword0 = le32_to_cpu(rp->dword[0]);
@@ -227,7 +227,7 @@ DECLARE_EVENT_CLASS(mhi_update_channel_s
),

TP_fast_assign(
Expand All @@ -45,7 +45,7 @@
__entry->ch_num = mhi_chan->chan;
__entry->state = state;
__entry->reason = reason;
@@ -265,7 +265,7 @@ TRACE_EVENT(mhi_pm_st_transition,
@@ -266,7 +266,7 @@ TRACE_EVENT(mhi_pm_st_transition,
),

TP_fast_assign(
Expand Down
Loading

0 comments on commit a850594

Please sign in to comment.