.. | .. |
---|
1463 | 1463 | |
---|
1464 | 1464 | rsi_dbg(ERR_ZONE, "SDIO Bus shutdown =====>\n"); |
---|
1465 | 1465 | |
---|
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)) |
---|
1470 | 1468 | rsi_dbg(ERR_ZONE, "Failed to configure WoWLAN\n"); |
---|
1471 | 1469 | } |
---|
1472 | 1470 | |
---|
.. | .. |
---|
1480 | 1478 | |
---|
1481 | 1479 | if (sdev->write_fail) |
---|
1482 | 1480 | 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"); |
---|
1486 | 1481 | |
---|
1487 | 1482 | rsi_dbg(INFO_ZONE, "***** RSI module shut down *****\n"); |
---|
1488 | 1483 | } |
---|