No description
  • C 89.2%
  • Shell 5.1%
  • UnrealScript 2%
  • Makefile 1.8%
  • Perl 1.4%
  • Other 0.5%
Find a file
developer fb7d05389b [][CRITICAL][openwrt-25][MAC80211][WiFi7][mt76: mt7996: Fix spinlock usage to prevent AP panic]
[Description]
Update MP4.3 critical patches - 20260811

mt76:
mtk: mt76: mt7996: Fix spinlock usage to prevent AP panic

AP panic occurs due to Asynchronous SError Interrupt during WiFi
operations in specific test scenarios with WPA2-WPA3-PSK-CCMP security
on 2.4G band.

Feature: Stability

[Root Cause]
Improper spinlock usage with spin_lock_bh instead of spin_lock_irqsave
leads to potential race conditions and interrupts during critical
sections.

[Solution]
Replace spin_lock_bh with spin_lock_irqsave and spin_unlock_bh with
spin_unlock_irqrestore to ensure proper locking and interrupt
handling, preventing race conditions and AP panic.

[Release-log]
N/A

[How to Verify]
N/A

[Info to Customer]
N/A

Change-Id: Id398ed76f9a274a38399793427613d2f05bbc6ab
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/12465539
2026-08-18 13:33:58 +08:00
21.02 [][kernel][mt7988][bsp][Change the GPIO reset number and increase the MDC clock for the new AN8831X RFB] 2026-08-10 13:22:54 +08:00
24.10 [][openwrt-24][Fix patch conflict issue] 2026-07-24 14:10:44 +08:00
25.12 [][kernel-6.12][common][eth][Fix patch conflict issue] 2026-08-17 17:55:12 +08:00
autobuild [][CRITICAL][openwrt-25][MAC80211][WiFi7][mt76: mt7996: Fix spinlock usage to prevent AP panic] 2026-08-18 13:33:58 +08:00
feed [][openwrt-25.12][mt7988][npu][Update firmware and fix driver CLS handle procedure] 2026-08-13 19:10:58 +08:00
scripts [][checkpatch: fix check failures for backport patches] 2023-05-15 17:00:48 +08:00
tools [][openwrt][common][bsp][add license/copyright headers] 2026-05-26 14:07:23 +08:00
.checkpatch.conf [][openwrt-24][common][bsp][Update .checkpatch.conf] 2025-10-11 08:14:14 +08:00
.clang-format [][openwrt][mt7988][integration][Add basic Filogic 880 SoC support] 2022-10-12 19:52:23 +08:00
.gitignore [][openwrt-24][common][bsp][Add .gitignore] 2024-06-26 11:25:24 +08:00
mtk-openwrt-feeds-commit-sha-mapping-table.md [][MT7987][SDK][add commit sha mapping table] 2024-11-13 20:28:36 +08:00
prepare_sdk.sh [][openwrt][MAC80211][WiFi7][add license/copyright headers] 2026-05-27 15:58:53 +08:00
Readme.md [][openwrt-25][MAC80211][WiFi7][Replace git01 URLs with github] 2026-06-16 13:48:42 +08:00

Brief introduction for using MediaTek released OpenWrt SDK

1. Build system setup

2. Clone vanilla OpenWrt

Currently two release branches are supported:

  1. 21.02 This is the current in-use branch

    git clone -b openwrt-21.02 https://git.openwrt.org/openwrt/openwrt.git
    
  2. 24.10 This is the current in-use branch

    git clone -b openwrt-24.10 https://git.openwrt.org/openwrt/openwrt.git
    

3. Add MediaTek OpenWrt feed

cd openwrt
echo "src-git mtk_openwrt_feed https://github.com/mediatek/mtk-openwrt-feeds.git" >> feeds.conf.default
./scripts/feeds update -a
./scripts/feeds install -a

4. Apply MediaTek OpenWrt files and patches

  1. 21.02 branch

    cp -af ./feeds/mtk_openwrt_feed/21.02/files/* .
    cp -af ./feeds/mtk_openwrt_feed/tools .
    for file in $(find ./feeds/mtk_openwrt_feed/21.02/patches-base -name "*.patch" | sort); do patch -f -p1 -i ${file}; done
    for file in $(find ./feeds/mtk_openwrt_feed/21.02/patches-feeds -name "*.patch" | sort); do patch -f -p1 -i ${file}; done
    
  2. 24.10 branch

    cp -af ./feeds/mtk_openwrt_feed/24.10/files/* .
    for file in $(find ./feeds/mtk_openwrt_feed/24.10/patches-base -name "*.patch" | sort); do patch -f -p1 -i ${file}; done
    

5. Configuration

make menuconfig
  1. 21.02 branch

    Target System -> MediaTek Ralink ARM
    Subtarget -> MT7981 / MT7986 / MT7988
    Target Profile -> select as needed
    
  2. 24.10 branch

    Target System -> MediaTek Ralink ARM
    Subtarget -> Filogic 8x0 (MT798x)
    Target Profile -> select as needed
    

6. Build

make V=s -j$(nproc)

Mediatek Official Release with autobuild framework

  1. OpenWrt21.02 branch: Kernel5.4 Release

  2. OpenWrt24.10 branch: Kernel6.6 Release