Skip to content

Instantly share code, notes, and snippets.

@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.
@qosmio
qosmio / ipq6018-nss.dtsi
Created June 5, 2024 03:55
IPQ6018 NSS DTS
// SPDX-License-Identifier: GPL-2.0-only
&soc {
nss-common {
compatible = "qcom,nss-common";
reg = <0x01868010 0x1000>, <0x40000000 0x1000>;
reg-names = "nss-misc-reset", "nss-misc-reset-flag";
memory-region = <&nss_region>;
};
@qosmio
qosmio / SSDK-12.5.r2.patch
Created May 3, 2024 19:58
SSDK 12.4 to 12.5.r2
diff --git a/package/kernel/qca-ssdk/Makefile b/package/kernel/qca-ssdk/Makefile
index bbe9f12051..85f5493027 100644
--- a/package/kernel/qca-ssdk/Makefile
+++ b/package/kernel/qca-ssdk/Makefile
@@ -1,13 +1,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=qca-ssdk
-PKG_RELEASE:=6
+PKG_RELEASE:=1
@qosmio
qosmio / series
Last active February 29, 2024 01:36
mac80211-NSS-minimal-series
build/000-fix_kconfig.patch
build/001-fix_build.patch
build/002-change_allconfig.patch
build/003-remove_bogus_modparams.patch
build/004-fix-kconf-compiling.patch
build/012-kernel_build_check.patch
build/060-no_local_ssb_bcma.patch
build/070-remove-broken-wext-select.patch
build/080-resv_start_op.patch
build/090-bcma-otp.patch
@qosmio
qosmio / config.c
Last active August 3, 2024 18:49
IPQ807x dynalink dl-wrx36 build.config
# copy to `.config` and run `make defconfig`
# This builds for all ipq807x targets.
# To use this config, you must build from https://github.com/qosmio/openwrt-ipq
#
# 1. `git clone https://github.com/qosmio/openwrt-ipq`
# 2. `cd openwrt-ipq`
# 3. Dowload this config to `openwrt-ipq`, name it ".config"
# 4. `make defconfig`
#
# use `make menuconfig` to further customize building just for your target or adding custom packages.