]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: rtw88: fix wrong pci_get_drvdata type in AER handlers
authorChin-Yen Lee <timlee@realtek.com>
Mon, 13 Apr 2026 06:59:26 +0000 (14:59 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Wed, 29 Apr 2026 02:57:14 +0000 (10:57 +0800)
commit706183dbef4a79d120d4e928f693bea50df496f8
treeb784ba149d1af7256d1fbf4a7cf24fca1184e44d
parentd603f2cfa623e9446b44d0c9bcc2cdd92cbda594
wifi: rtw88: fix wrong pci_get_drvdata type in AER handlers

rtw88 stores an ieee80211_hw pointer via pci_set_drvdata() at probe
time, but io_error_detected() and io_resume() retrieve it as a
net_device pointer.  This causes netif_device_detach/attach to
operate on an ieee80211_hw struct, reading and writing at wrong
offsets.

Use ieee80211_stop_queues/wake_queues instead, consistent with
every other queue stop/start path in the driver.

Fixes: cdb82c80b934 ("wifi: rtw88: pci: add PCI Express error handling")
Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20260413065926.17027-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw88/pci.c