diff options
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 4d437cf50c8e..5b5e011497c1 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -848,7 +848,7 @@ struct iwl_priv { | |||
848 | unsigned long scan_start; | 848 | unsigned long scan_start; |
849 | unsigned long scan_pass_start; | 849 | unsigned long scan_pass_start; |
850 | unsigned long scan_start_tsf; | 850 | unsigned long scan_start_tsf; |
851 | struct iwl_scan_cmd *scan; | 851 | void *scan; |
852 | int scan_bands; | 852 | int scan_bands; |
853 | int one_direct_scan; | 853 | int one_direct_scan; |
854 | u8 direct_ssid_len; | 854 | u8 direct_ssid_len; |
@@ -1071,8 +1071,6 @@ struct iwl_priv { | |||
1071 | s8 user_txpower_limit; | 1071 | s8 user_txpower_limit; |
1072 | s8 max_channel_txpower_limit; | 1072 | s8 max_channel_txpower_limit; |
1073 | 1073 | ||
1074 | struct iwl3945_scan_cmd *scan39; | ||
1075 | |||
1076 | /* We declare this const so it can only be | 1074 | /* We declare this const so it can only be |
1077 | * changed via explicit cast within the | 1075 | * changed via explicit cast within the |
1078 | * routines that actually update the physical | 1076 | * routines that actually update the physical |
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index c8a1bdeaa435..9df3eef10c22 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -5270,15 +5270,15 @@ static void iwl3945_bg_request_scan(struct work_struct *data) | |||
5270 | goto done; | 5270 | goto done; |
5271 | } | 5271 | } |
5272 | 5272 | ||
5273 | if (!priv->scan39) { | 5273 | if (!priv->scan) { |
5274 | priv->scan39 = kmalloc(sizeof(struct iwl3945_scan_cmd) + | 5274 | priv->scan = kmalloc(sizeof(struct iwl3945_scan_cmd) + |
5275 | IWL_MAX_SCAN_SIZE, GFP_KERNEL); | 5275 | IWL_MAX_SCAN_SIZE, GFP_KERNEL); |
5276 | if (!priv->scan39) { | 5276 | if (!priv->scan) { |
5277 | rc = -ENOMEM; | 5277 | rc = -ENOMEM; |
5278 | goto done; | 5278 | goto done; |
5279 | } | 5279 | } |
5280 | } | 5280 | } |
5281 | scan = priv->scan39; | 5281 | scan = priv->scan; |
5282 | memset(scan, 0, sizeof(struct iwl3945_scan_cmd) + IWL_MAX_SCAN_SIZE); | 5282 | memset(scan, 0, sizeof(struct iwl3945_scan_cmd) + IWL_MAX_SCAN_SIZE); |
5283 | 5283 | ||
5284 | scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH; | 5284 | scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH; |
@@ -7298,7 +7298,7 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev) | |||
7298 | 7298 | ||
7299 | iwl3945_free_channel_map(priv); | 7299 | iwl3945_free_channel_map(priv); |
7300 | iwl3945_free_geos(priv); | 7300 | iwl3945_free_geos(priv); |
7301 | kfree(priv->scan39); | 7301 | kfree(priv->scan); |
7302 | if (priv->ibss_beacon) | 7302 | if (priv->ibss_beacon) |
7303 | dev_kfree_skb(priv->ibss_beacon); | 7303 | dev_kfree_skb(priv->ibss_beacon); |
7304 | 7304 | ||