Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193709
b: refs/heads/master
c: 13115ba
h: refs/heads/master
i:
  193707: 02175ed
v: v3
  • Loading branch information
Wey-Yi Guy authored and Reinette Chatre committed Mar 10, 2010
1 parent 7668c4b commit 6e8ba8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 9856b7fa36a77d69e1413c63cb867514876796d2
refs/heads/master: 13115ba76b3200fca62d1bfd54f917f208e7d2e5
8 changes: 3 additions & 5 deletions trunk/drivers/net/wireless/iwlwifi/iwl-scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,6 @@ static void iwl_bg_request_scan(struct work_struct *data)
};
struct iwl_scan_cmd *scan;
struct ieee80211_conf *conf = NULL;
int ret = 0;
u32 rate_flags = 0;
u16 cmd_len;
u16 rx_chain = 0;
Expand Down Expand Up @@ -708,7 +707,6 @@ static void iwl_bg_request_scan(struct work_struct *data)
if (test_bit(STATUS_SCAN_HW, &priv->status)) {
IWL_DEBUG_INFO(priv, "Multiple concurrent scan requests in parallel. "
"Ignoring second request.\n");
ret = -EIO;
goto done;
}

Expand Down Expand Up @@ -741,7 +739,8 @@ static void iwl_bg_request_scan(struct work_struct *data)
priv->scan = kmalloc(sizeof(struct iwl_scan_cmd) +
IWL_MAX_SCAN_SIZE, GFP_KERNEL);
if (!priv->scan) {
ret = -ENOMEM;
IWL_DEBUG_SCAN(priv,
"fail to allocate memory for scan\n");
goto done;
}
}
Expand Down Expand Up @@ -908,8 +907,7 @@ static void iwl_bg_request_scan(struct work_struct *data)
scan->len = cpu_to_le16(cmd.len);

set_bit(STATUS_SCAN_HW, &priv->status);
ret = iwl_send_cmd_sync(priv, &cmd);
if (ret)
if (iwl_send_cmd_sync(priv, &cmd))
goto done;

queue_delayed_work(priv->workqueue, &priv->scan_check,
Expand Down

0 comments on commit 6e8ba8a

Please sign in to comment.