diff options
author | Stanislaw Gruszka <stf_xl@wp.pl> | 2023-11-26 22:53:58 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-12-01 15:42:14 +0300 |
commit | 62ad3b976cd7f1cc75458c7df34afb4349ae2429 (patch) | |
tree | f2a139910d0929f2f52b6f0836f3b85f28406c96 /drivers/net/wireless/ralink/rt2x00/rt2x00link.c | |
parent | 874a0eda000dbdf2f6c6aa52c0f617333aaf3e37 (diff) | |
download | linux-62ad3b976cd7f1cc75458c7df34afb4349ae2429.tar.xz |
wifi: rt2x00: make watchdog param per device
We can run PCI/MMIO devices together with USB devices in the system.
Make watchdog parameter per device to avoid situation when plugin
USB device change modparam_watchdog for PCI/MMIO device.
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Tested-by: Shiji Yang <yangshiji66@outlook.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231126195358.500259-1-stf_xl@wp.pl
Diffstat (limited to 'drivers/net/wireless/ralink/rt2x00/rt2x00link.c')
-rw-r--r-- | drivers/net/wireless/ralink/rt2x00/rt2x00link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00link.c b/drivers/net/wireless/ralink/rt2x00/rt2x00link.c index 6cf7e7c997c2..fb23d409fba8 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2x00link.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2x00link.c @@ -384,7 +384,7 @@ void rt2x00link_start_watchdog(struct rt2x00_dev *rt2x00dev) struct link *link = &rt2x00dev->link; if (test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags) && - rt2x00dev->ops->lib->watchdog && !link->watchdog_disabled) + rt2x00dev->ops->lib->watchdog && link->watchdog) ieee80211_queue_delayed_work(rt2x00dev->hw, &link->watchdog_work, link->watchdog_interval); |