Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266384
b: refs/heads/master
c: f253247
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Sep 27, 2011
1 parent 91edbb6 commit 44b7c8b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98efb4a52b5c64c79647ea4fdb2c6a3f3db6e743
refs/heads/master: f253247a944fcf5f48ca434331d9e4f72f5fef8d
19 changes: 11 additions & 8 deletions trunk/drivers/net/wireless/iwlwifi/iwl-scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1013,18 +1013,14 @@ static void iwl_bg_abort_scan(struct work_struct *work)
mutex_unlock(&priv->shrd->mutex);
}

static void iwl_bg_scan_completed(struct work_struct *work)
static void iwl_process_scan_complete(struct iwl_priv *priv)
{
struct iwl_priv *priv =
container_of(work, struct iwl_priv, scan_completed);
bool aborted;

IWL_DEBUG_SCAN(priv, "Completed scan.\n");

cancel_delayed_work(&priv->scan_check);

mutex_lock(&priv->shrd->mutex);

aborted = test_and_clear_bit(STATUS_SCAN_ABORTING, &priv->shrd->status);
if (aborted)
IWL_DEBUG_SCAN(priv, "Aborted scan completed.\n");
Expand Down Expand Up @@ -1057,7 +1053,7 @@ static void iwl_bg_scan_completed(struct work_struct *work)
goto out_complete;
}

goto out;
return;
}

out_complete:
Expand All @@ -1066,11 +1062,18 @@ static void iwl_bg_scan_completed(struct work_struct *work)
out_settings:
/* Can we still talk to firmware ? */
if (!iwl_is_ready_rf(priv->shrd))
goto out;
return;

iwlagn_post_scan(priv);
}

static void iwl_bg_scan_completed(struct work_struct *work)
{
struct iwl_priv *priv =
container_of(work, struct iwl_priv, scan_completed);

out:
mutex_lock(&priv->shrd->mutex);
iwl_process_scan_complete(priv);
mutex_unlock(&priv->shrd->mutex);
}

Expand Down

0 comments on commit 44b7c8b

Please sign in to comment.