hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/net/wireless/rsi/rsi_91x_sdio.c
....@@ -1463,10 +1463,8 @@
14631463
14641464 rsi_dbg(ERR_ZONE, "SDIO Bus shutdown =====>\n");
14651465
1466
- if (hw) {
1467
- struct cfg80211_wowlan *wowlan = hw->wiphy->wowlan_config;
1468
-
1469
- if (rsi_config_wowlan(adapter, wowlan))
1466
+ if (hw && hw->wiphy && hw->wiphy->wowlan_config) {
1467
+ if (rsi_config_wowlan(adapter, hw->wiphy->wowlan_config))
14701468 rsi_dbg(ERR_ZONE, "Failed to configure WoWLAN\n");
14711469 }
14721470
....@@ -1480,9 +1478,6 @@
14801478
14811479 if (sdev->write_fail)
14821480 rsi_dbg(INFO_ZONE, "###### Device is not ready #######\n");
1483
-
1484
- if (rsi_set_sdio_pm_caps(adapter))
1485
- rsi_dbg(INFO_ZONE, "Setting power management caps failed\n");
14861481
14871482 rsi_dbg(INFO_ZONE, "***** RSI module shut down *****\n");
14881483 }