ALT Linux kernel packages development
 help / color / mirror / Atom feed
From: Ajrat Makhmutov <rauty@altlinux.org>
To: devel-kernel@lists.altlinux.org
Subject: [d-kernel] [6.12] Бэкпорт двух фиксов mt76/mt7921e (bug #54853, зависание WiFi)
Date: Wed, 10 Jun 2026 11:39:07 +0300
Message-ID: <20260610083910.23062-1-rauty@altlinux.org> (raw)

Коллеги,

Решение для https://bugzilla.altlinux.org/54853 (mt7921e уходит в тихое
зависание после disconnect/reconnect — невозможно подключиться ни к одной
сети, лечится только перезагрузкой модуля ядра или chip_reset): предлагаю
приложить к ядру 6.12 два upstream-фикса (см. патчи в треде).

Баг воспроизводится на 6.12 и отсутствует на 7.1; точного бисекта симптома
в апстриме нет (тред на linux-wireless завершился без указания коммита), но
по сравнению mt76 между 6.12.92 и 7.1 это два релевантных для mt7921e
исправления, которых не хватало в 6.12.y (ни одно не помечено Cc: stable):

  2425dc7beaadc wifi: mt76: mt7921: avoid undesired changes of the preset regulatory domain
  5ed54896b6bd4 wifi: mt76: mt7921: fix a potential scan no APs

 drivers/net/wireless/mediatek/mt76/mt7921/init.c | 7 +++++++
 drivers/net/wireless/mediatek/mt76/mt7921/main.c | 7 ++++---
 2 files changed, 11 insertions(+), 3 deletions(-)

Суть:

  - 5ed54896 сбрасывает granted ROC-канал перед удалением станции
    (mt7921_mac_sta_remove). Иначе прошивка остаётся в неверном состоянии и
    последующий скан не находит сети — ровно наблюдаемый симптом.

  - 2425dc7 не даёт country-IE от точки доступа перепрограммировать
    regulatory/CLC, когда регдомен уже задан пользователем. В провальных
    случаях наблюдали порчу power/regulatory-таблиц прошивки (аномальные
    tmac-значения VHT80/160/HE996). Заодно объясняет, почему баг ловится
    только под NetworkManager (он гонит country-IE при каждой ассоциации).

Оба применяются чисто к 6.12.y, собрано и проверено на железе (Acer Aspire 5
A517-52, ASUS VivoBook S14, Lenovo IdeaPad Slim 5 14AHP9). Параллельно
отправлен запрос на бэкпорт в stable@vger.kernel.org (6.12.y):
https://lore.kernel.org/all/20260610080943.17734-1-rauty@altlinux.org/

Патчи — следом в треде.

--
Айрат Махмутов


             reply	other threads:[~2026-06-10  8:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-10  8:39 Ajrat Makhmutov [this message]
2026-06-10  8:39 ` [d-kernel] [PATCH 1/2] wifi: mt76: mt7921: avoid undesired changes of the preset regulatory domain Ajrat Makhmutov
2026-06-10  8:39 ` [d-kernel] [PATCH 2/2] wifi: mt76: mt7921: fix a potential scan no APs Ajrat Makhmutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260610083910.23062-1-rauty@altlinux.org \
    --to=rauty@altlinux.org \
    --cc=devel-kernel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git