Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134190
b: refs/heads/master
c: 805cee5
h: refs/heads/master
v: v3
  • Loading branch information
Winkler, Tomas authored and John W. Linville committed Jan 29, 2009
1 parent cf009a9 commit 3cdadcd
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 518099a870ef3f5f97d96aa0c284ce1b403436fa
refs/heads/master: 805cee5b81f1e493820601fe7990aef935c2c621
4 changes: 1 addition & 3 deletions trunk/drivers/net/wireless/iwlwifi/iwl-dev.h
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ struct iwl_priv {
unsigned long scan_start;
unsigned long scan_pass_start;
unsigned long scan_start_tsf;
struct iwl_scan_cmd *scan;
void *scan;
int scan_bands;
int one_direct_scan;
u8 direct_ssid_len;
Expand Down Expand Up @@ -1071,8 +1071,6 @@ struct iwl_priv {
s8 user_txpower_limit;
s8 max_channel_txpower_limit;

struct iwl3945_scan_cmd *scan39;

/* We declare this const so it can only be
* changed via explicit cast within the
* routines that actually update the physical
Expand Down
10 changes: 5 additions & 5 deletions trunk/drivers/net/wireless/iwlwifi/iwl3945-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -5270,15 +5270,15 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
goto done;
}

if (!priv->scan39) {
priv->scan39 = kmalloc(sizeof(struct iwl3945_scan_cmd) +
if (!priv->scan) {
priv->scan = kmalloc(sizeof(struct iwl3945_scan_cmd) +
IWL_MAX_SCAN_SIZE, GFP_KERNEL);
if (!priv->scan39) {
if (!priv->scan) {
rc = -ENOMEM;
goto done;
}
}
scan = priv->scan39;
scan = priv->scan;
memset(scan, 0, sizeof(struct iwl3945_scan_cmd) + IWL_MAX_SCAN_SIZE);

scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH;
Expand Down Expand Up @@ -7298,7 +7298,7 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev)

iwl3945_free_channel_map(priv);
iwl3945_free_geos(priv);
kfree(priv->scan39);
kfree(priv->scan);
if (priv->ibss_beacon)
dev_kfree_skb(priv->ibss_beacon);

Expand Down

0 comments on commit 3cdadcd

Please sign in to comment.