]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: mt76: Assume __mt76_connac_mcu_alloc_sta_req runs in atomic context
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 5 Jun 2025 11:14:16 +0000 (13:14 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 7 Jul 2025 15:42:19 +0000 (17:42 +0200)
commita0c5eac9181025b6d65ff25c203a7f10274f80c1
tree1f6553334421e6d3e965692b717af3f4d76f105c
parent737bb912ebbe4571195c56eba557c4d7315b26fb
wifi: mt76: Assume __mt76_connac_mcu_alloc_sta_req runs in atomic context

Rely on GFP_ATOMIC flag in __mt76_connac_mcu_alloc_sta_req since it can
run in atomic context. This is a preliminary patch to fix a 'sleep while
atomic' issue in mt7996_mac_sta_rc_work().

Fixes: 0762bdd30279 ("wifi: mt76: mt7996: rework mt7996_mac_sta_rc_work to support MLO")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20250605-mt7996-sleep-while-atomic-v1-1-d46d15f9203c@kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c