Skip to content

Instantly share code, notes, and snippets.

From c420c1f66235b5ab4fc8d94da72bd5ae6397117f Mon Sep 17 00:00:00 2001
From: Gautham Kumar Senthilkumaran <[email protected]>
Date: Sat, 28 Jun 2025 11:58:37 +0530
Subject: [PATCH] QSDK:CP: wifi:ath11k: Fix the WMM param type
Since FW does not support the 11ax EDCA parameter in WMI TLV command. FW was
crashing as host was sending this parameter, now changed the WMM parameter
type as default zero before sending to FW.
Signed-off-by: Gautham Kumar Senthilkumaran <[email protected]>
From 8c52932da5e6756fa66f52f0720da283fba13aa6 Mon Sep 17 00:00:00 2001
From: Md Sadre Alam <[email protected]>
Date: Wed, 20 Nov 2024 14:45:00 +0530
Subject: [PATCH 1/4] mtd: rawnand: qcom: cleanup qcom_nandc driver
Perform a global cleanup of the Qualcomm NAND
controller driver with the following improvements:
- Remove register value indirection API
@qosmio
qosmio / nat46-6.12.patch
Created May 15, 2025 19:11
nat46 6.12 compat
diff --git a/package/kernel/nat46/Makefile b/package/kernel/nat46/Makefile
index bcd0cbd9f6..d5b131038b 100644
--- a/package/kernel/nat46/Makefile
+++ b/package/kernel/nat46/Makefile
@@ -4,10 +4,10 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=nat46
PKG_SOURCE_URL:=https://github.com/ayourtch/nat46.git
-PKG_SOURCE_DATE:=2024-08-12
+PKG_SOURCE_DATE:=2025-04-23
➤ nss_stats drv n2h ipv4 ipv6 eth_rx edma
________________________________________________________________________________
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< DRV >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
________________________________________________________________________________
drv_tx_buffers_empty = 3573630 special
drv_tx_buffer_pkt = 38673050 special
drv_tx_buffers_cmd = 14996329 special
@qosmio
qosmio / ath_reload.sh
Created October 9, 2024 23:13
Script to reload ath11k/ath10k for NSS or non-NSS builds
#!/bin/sh -x
# shellcheck disable=2070,2144
#
# This script is used to reload the ath11k/ath10k driver without
# requiring a reboot. It is intended to be used for debugging purposes
# when trying new drivers, firmware, or disabling NSS wifi offload.
# Save this script to `/usr/bin/ath_reload` and make it executable.
# By default, the script will reload the driver with whatever options
# are currently set in the kernel module.
#
reverted:
--- b/drivers/net/wireless/ath/ath11k/pcic.c
+++ a/drivers/net/wireless/ath/ath11k/pcic.c
@@ -561,7 +561,6 @@
{
int i, j, n, ret, num_vectors = 0;
u32 user_base_data = 0, base_vector = 0;
- struct ath11k_ext_irq_grp *irq_grp;
unsigned long irq_flags;
@qosmio
qosmio / crash2
Created August 11, 2024 15:09
crash-allow-power-increase-set-vht160.patch
Sun Aug 11 03:56:02 2024 kern.info kernel: [84597.819401] remoteproc remoteproc0: powering up cd00000.q6v5_wcss
Sun Aug 11 03:56:02 2024 kern.info kernel: [84597.819506] remoteproc remoteproc0: Booting fw image IPQ8074/q6_fw.mdt, size 668
Sun Aug 11 03:56:02 2024 kern.info kernel: [84598.164532] remoteproc remoteproc0: remote processor cd00000.q6v5_wcss is now up
Sun Aug 11 03:56:02 2024 kern.info kernel: [84598.227318] ath11k c000000.wifi: chip_id 0x0 chip_family 0x0 board_id 0xff soc_id 0xffffffff
Sun Aug 11 03:56:02 2024 kern.info kernel: [84598.227340] ath11k c000000.wifi: fw_version 0x2c0584a5 fw_build_timestamp 2024-07-11 16:11 fw_build_id WLAN.HK.2.12-01368-QCAHKSWPL_SILICONZ-1
Sun Aug 11 03:56:02 2024 kern.info kernel: [84598.227549] ath11k c000000.wifi: patch reg db in ipq8074 format
Sun Aug 11 03:56:02 2024 kern.info kernel: [84598.227560] ath11k c000000.wifi: patch entry 81
Sun Aug 11 03:56:02 2024 kern.info kernel: [84598.227566] ath11k c000000.wifi: patch entry 190
Sun Aug 11 03:56:02 2024 kern.i
@qosmio
qosmio / 999-904-allow-power-increase-set-vht160.patch
Last active August 11, 2024 16:39
999-904-allow-power-increase-set-vht160.patch
--- a/drivers/net/wireless/ath/ath11k/core.c
+++ b/drivers/net/wireless/ath/ath11k/core.c
@@ -24,6 +24,10 @@ module_param_named(nss_offload, nss_offl
MODULE_PARM_DESC(nss_offload, "Enable NSS Offload support");
#endif
+static int poweroffset=0;
+module_param_named(poweroffset, poweroffset, uint, 0644);
+MODULE_PARM_DESC(poweroffset, "power offset for power table. negative values are permitted. units in 0.25db");
+
@qosmio
qosmio / 999-818-ath11k-bdf-removeregdomain.patch
Last active August 7, 2024 09:57
package/kernel/mac80211/patches/nss/ath11k/999-818-ath11k-bdf-removeregdomain.patch
--- a/drivers/net/wireless/ath/ath11k/core.c
+++ b/drivers/net/wireless/ath/ath11k/core.c
@@ -1436,6 +1436,96 @@ int ath11k_core_fetch_board_data_api_1(s
return 0;
}
+static void calcchecksum(void *caldata, int size)
+{
+ int i;
+ u16 *cdata = (u16 *)caldata;
@qosmio
qosmio / 999-784-ath11k-Add-mac80211-based-AQL-support-in-ath11k.patch
Created June 27, 2024 06:13
Add mac80211 based AQL support in ath11k
From: Tamizh Chelvam Raja <[email protected]>
To: <[email protected]>
CC: <[email protected]>
Subject: [PATCH] ath11k: Add mac80211 based AQL support in ath11k
Date: Mon, 1 May 2023 18:37:25 +0530
Add wake_tx_queue mac op to support AQL and support
txq dequeueing from mac80211. Also implement a
simple scheduler for pulling all skbs from txqs
of all AC's at the end of tx completion NAPI.