270 Commits

Author SHA1 Message Date
coolsnowwolf
2cf339694a mac80211: brcm: fix build with kernel 6.12 support 2025-06-16 00:12:52 +08:00
George Moussalem
665e376e74 wifi: ath11k: increase max ATH11K_QMI_CALDB_SIZE macro
QCN6122 wifi in fw-memory-mode 1 has a slightly larger caldb size than
currently defined in the ath11k driver. When coldboot calibration was
disabled, the fw mem mode was changed from 2 (256MB mem profile) to 1
(512MB mem profile), which is the correct setting for devices in scope.
However, in fw mem mode, the caldb size is 0x500000 instead of the max
0x480000 defined in the driver, causing QCN6122 wifi failing to boot:

ath11k b00a040.wifi1: qmi mem size is low to load caldata
ath11k b00a040.wifi1: failed to assign qmi target memory: -22

As such, change the max caldb memory size accordingly.

This macro is used by the driver only as a max size limit to validate
the requested caldb size returned by QMI. Different ath11k wifi chips
have different caldb sizes (for ex. the size for IPQ5018 is 0x200000).

Fixes: d4adc99 ("wifi: ath11k: disable coldboot calibration for ipq5018")
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-06-13 18:01:16 +08:00
George Moussalem
d4adc99526 wifi: ath11k: disable coldboot calibration for ipq5018 and qcn6122
Coldboot calibration does not work causes the firmware to crash during
wifi startup. So let's disable coldboot calibration until a solution is
found.

Signed-off-by: George Moussalem <george.moussalem@outlook.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-06-13 16:01:19 +08:00
Miles Poupart
51d898d4d6
mac80211: fix rtw89 compile error (#13542) 2025-06-06 16:52:10 +08:00
Mantas Pucka
eef271a975 mac80211: ath12k: fix wideband operation on QCN9274
Add patches to enable QCN9274 radios that support both 5GHz and 6GHz
bands.

Signed-off-by: Mantas Pucka <mantas@8devices.com>
Link: https://github.com/openwrt/openwrt/pull/18459
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2025-06-05 14:16:00 +08:00
coolsnowwolf
90773b94ca mac80211: add ath12k PCI support 2025-06-05 14:09:06 +08:00
George Moussalem
7224072e6e mac80211: add support for QCN6122 wifi
Add QCN6122 platform support.

QCN6122 is a PCIe based solution that is attached to and enumerated
by the WPSS (Wireless Processor SubSystem) Q6 processor.

Though it is a PCIe device, since it is not attached to APSS processor
(Application Processor SubSystem), APSS will be unaware of such a decice
and hence it is registered to the APSS processor as a platform device(AHB).
Because of this hybrid nature, it is called as a hybrid bus device.

As such, QCN6122 is a hybrid bus type device and follows the same codepath
as for WCN6750.

Co-developed-by: George Moussalem <george.moussalem@outlook.com>
Signed-off-by: Sowmiya Sree Elavalagan <ssreeela@codeaurora.org>
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
2025-06-02 21:10:19 +08:00
Robert Marko
13dcba04ef mac80211: update to version 6.6.15
Update backports to the latest 6.6 point release.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2025-06-02 20:20:15 +08:00
coolsnowwolf
99d0ef6e99 mac80211: fix build error on kernel 6.12 2025-05-30 23:25:28 +08:00
coolsnowwolf
54e0bf3b16 mac80211: add ath11k kernel 6.12 support 2025-05-26 22:30:18 +08:00
Hauke Mehrtens
45a37319a0 mac80211: Update to version 6.1.110-1
Upstream removed SSB and BCMA, the drivers are now compiled against
the in kernel versions. No need to patch this for OpenWrt.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-05-16 20:20:17 +08:00
coolsnowwolf
1d300215e5 mac80211: backport EHT API support 2025-04-13 16:18:08 +08:00
coolsnowwolf
f03f0f54b5 mac80211: fix build on linux kernel 5.4.291+ 2025-03-25 01:40:34 +08:00
coolsnowwolf
b00deea1b7 mac80211: ath: add qcom-qmi-helpers as package 2025-02-16 16:28:26 +08:00
aiamadeus
64ed83cc0e mac80211/ath11k: temporarily disable DBS mode 2025-02-10 21:30:16 +08:00
coolsnowwolf
76271e77fd ath11k-firmware: add QCN6122 wifi firmware 2025-02-08 20:18:05 +08:00
aiamadeus
6488a08057 mac80211: backport QCA2066 support 2025-01-20 22:10:06 +08:00
coolsnowwolf
33e376de95 kernel: bump 5.4 to 5.4.287 2024-12-18 21:56:26 +08:00
coolsnowwolf
c1846ee3f8 mac80211: fix build with kernel 5.10.230+ 2024-12-18 21:11:33 +08:00
coolsnowwolf
53e61ac527 kernel: add linux kernel 6.12 support 2024-11-21 13:16:25 +08:00
coolsnowwolf
be8fee09fb mac80211: add kernel build with 6.11+ support 2024-11-21 12:27:34 +08:00
coolsnowwolf
418c887452 generic: sync genlmsg_mcast patch with upstream with kernel 6.6.59+ 2024-11-21 12:10:10 +08:00
coolsnowwolf
b743ccd20c kernel: bump 5.15 to 5.15.173 2024-11-18 15:13:42 +08:00
coolsnowwolf
bdc94f7fd2 kernel: bump 6.1 to 6.1.117 2024-11-18 00:31:56 +08:00
coolsnowwolf
1063641e6e branding: add LEDE branding 2024-11-14 13:14:47 +08:00
coolsnowwolf
3f0ed51973 ath10k-ct: fix build with arm/mips 2024-10-30 15:54:28 +08:00
coolsnowwolf
3a5a4986fa mac80211: Add EHT UL MU-MIMO flag in ieee80211_bss_conf 2024-07-03 14:27:19 +08:00
coolsnowwolf
6e604e9875 amlogic: add mesongx Phicomm N1 support 2024-05-06 05:53:58 +08:00
coolsnowwolf
cabbb92abd mac80211: ath11k: add ipq60xx support 2024-01-29 21:50:11 +08:00
coolsnowwolf
c24837295d mac80211: add loongarch64 and kernle 6.6 support 2024-01-15 01:15:20 +08:00
David Bauer
cbcb695937 mac80211: avoid crashing on invalid band info
Frequent crashes have been observed on MT7916 based platforms. While the
root of these crashes are currently unknown, they happen when decoding
rate information of connected STAs in AP mode. The rate-information is
associated with a band which is not available on the PHY.

Check for this condition in order to avoid crashing the whole system.
This patch should be removed once the roout cause has been found and
fixed.

Signed-off-by: David Bauer <mail@david-bauer.net>
2024-01-10 22:24:11 +08:00
aiamadeus
14fb304fd4 mac80211: refresh all patches
Signed-off-by: AnYun <amadeus@openjmu.xyz>
2023-12-21 22:15:19 +08:00
aiamadeus
794fa1345e mac80211: ath11k: sync with upstream linux
Signed-off-by: AnYun <amadeus@openjmu.xyz>
2023-12-21 22:09:13 +08:00
coolsnowwolf
38bca36d20 mac80211: rework eth hw addr set for kernel 5.4 2023-08-10 19:42:15 +08:00
Felix Fietkau
bbebb4beab mac80211: fix mesh fast tx cache issues
Split the cache by tx type in order to avoid packet drop issues

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-08-02 21:35:31 +08:00
Felix Fietkau
0d0d065707 mac80211: fix HE issues with AP_VLAN interfaces
Fixes issues with aggregation

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-08-02 21:32:56 +08:00
David Bauer
14cc6d5a6d mac80211: partly revert force-mac80211 loss detection
This patch will only force mac80211 loss detection upon ath10k by
masking the driver-specific loss-detection bit.

Ref: commit ed816f6ba8b5 ("mac80211: always use mac80211 loss detection")

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-07-26 21:28:47 +08:00
David Bauer
6c0363e78c mac80211: always use mac80211 loss detection
ath10k does not report excessive loss in case of broken block-ack
sessions. The loss is communicated to the host-os, but ath10k does not
trigger a low-ack events by itself.

The mac80211 framework for loss detection however detects this
circumstance well in case of ath10k. So use it regardless of ath10k's
own loss detection mechanism.

Signed-off-by: David Bauer <mail@david-bauer.net>
2023-07-26 21:26:31 +08:00
Robert Marko
64002d3a24 mac80211: ath11k: sync with ath-next
Synchronize the ath11k backports with the current ath-next tree.

This introduces support for MBSSID and EMA, adds factory test mode and
some new HTT stats.

Tested-by: Francisco G Luna <frangonlun@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-07-25 22:39:22 +08:00
Robert Marko
b93186df5d mac80211: backport EMA beacon support
Backport EMA beacon support from kernel 6.4.
It is required for MBSSID/EMA suport in ath11k that will follow.

Tested-by: Francisco G Luna <frangonlun@gmail.com>
Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-07-25 22:38:23 +08:00
Robert Marko
c72c8f58a7 mac80211: backport merged version of A-MSDU mesh patch
This issue was fixed in the final version of
("wifi: mac80211: fix receiving A-MSDU frames on mesh interfaces") that was
merged upstream but we have a older version that is using:
memcpy(&payload.eth.h_dest, mesh_addr, 2 * ETH_ALEN);
instead of:
memcpy(&payload.eth, mesh_addr, 2 * ETH_ALEN);

So, lets just backport the merged version of patch to fix the issue.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-07-25 22:37:11 +08:00
Daniel Golle
c735c19bf8 mac80211: fix mt7601u firmware path and refresh patches
Import patch fixing the updated firmware path of mt7601u.bin.
Refresh patches while at it.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2023-06-24 22:56:16 +08:00
AmadeusGhost
5b6c90520b mac80211: fixes nl80211 support in kernel 5.4
Run-tested-on: P&W R619AC 128M
Fixes: #11172, #11191
2023-05-19 22:27:54 +08:00
Robert Marko
4fc044df14 mac80211: ath11k: sync with ath-next
Synchronize the ath11k backports with the current ath-next tree.

This replaces the 160MHz with the upstreamed one, fixes 6GHz only WIPHY
registration, allows SAR usage on WCN6750 and plenty of REO fixes.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2023-05-10 22:00:09 +08:00
Felix Fietkau
3167333946 mac80211: update to v6.1.24
Drop patches accepted upstream

Signed-off-by: Felix Fietkau <nbd@nbd.name>
2023-05-04 17:20:37 +08:00
Kyosuke Nekoyashiki
85fc52c36e mac80211: fixes ath10k sdio support 2023-03-25 23:09:00 +08:00
AmadeusGhost
7f1a60f322 rtw88: add rtl8821ce support
This won't work due to firmware limitations.
2023-03-06 23:20:10 +08:00
coolsnowwolf
a2c61871bc iwlwifi: fix build with kernel 6.1 2023-02-26 16:47:48 +08:00
fishg
91bc6bfd32
mt76x2: fix for 6.1 (#10863) 2023-02-05 13:05:48 +08:00
1054009064
e8705bc49c
mac80211: ath11k: fix build error (#10766)
Builld-test: ipq807x/mf269
Fixes: bd7fde7 ("mac80211: ath11k: fix monitor bringup")
2023-01-14 20:55:24 +08:00