static s32 wl_cfg80211_resume(struct wiphy *wiphy)
{
+ struct wl_priv *wl = WL_PRIV_GET();
s32 err = 0;
- CHECK_SYS_UP();
- wl_invoke_iscan(WL_PRIV_GET());
+ if (unlikely(!test_bit(WL_STATUS_READY, &wl->status))) {
+ WL_INFO(("device is not ready : status (%d)\n",
+ (int)wl->status));
+ return 0;
+ }
+
+ wl_invoke_iscan(wl);
return err;
}
struct wl_priv *wl = WL_PRIV_GET();
s32 err = 0;
- CHECK_SYS_UP();
+ if (unlikely(!test_bit(WL_STATUS_READY, &wl->status))) {
+ WL_INFO(("device is not ready : status (%d)\n",
+ (int)wl->status));
+ return 0;
+ }
set_bit(WL_STATUS_SCAN_ABORTING, &wl->status);
wl_term_iscan(wl);