aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl3945-base.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-04-06 07:12:41 -0400
committerReinette Chatre <reinette.chatre@intel.com>2010-04-16 16:47:23 -0400
commit811ecc995b18eb58067ffa75b961ece3b84a1f03 (patch)
treeb43eaf5d490ac1552171c6fc3d8ac27f3a6f96ae /drivers/net/wireless/iwlwifi/iwl3945-base.c
parentb165cf09c0248262232c7566df5ae40284cee7d6 (diff)
iwlwifi: rename priv->scan to priv->scan_cmd
I keep checking what "priv->scan" is, so rename it to "priv->scan_cmd" which more clearly tells us what it is. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index af32359400b..0f773973a4e 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -2852,15 +2852,15 @@ static void iwl3945_bg_request_scan(struct work_struct *data)
2852 goto done; 2852 goto done;
2853 } 2853 }
2854 2854
2855 if (!priv->scan) { 2855 if (!priv->scan_cmd) {
2856 priv->scan = kmalloc(sizeof(struct iwl3945_scan_cmd) + 2856 priv->scan_cmd = kmalloc(sizeof(struct iwl3945_scan_cmd) +
2857 IWL_MAX_SCAN_SIZE, GFP_KERNEL); 2857 IWL_MAX_SCAN_SIZE, GFP_KERNEL);
2858 if (!priv->scan) { 2858 if (!priv->scan_cmd) {
2859 IWL_DEBUG_SCAN(priv, "Fail to allocate scan memory\n"); 2859 IWL_DEBUG_SCAN(priv, "Fail to allocate scan memory\n");
2860 goto done; 2860 goto done;
2861 } 2861 }
2862 } 2862 }
2863 scan = priv->scan; 2863 scan = priv->scan_cmd;
2864 memset(scan, 0, sizeof(struct iwl3945_scan_cmd) + IWL_MAX_SCAN_SIZE); 2864 memset(scan, 0, sizeof(struct iwl3945_scan_cmd) + IWL_MAX_SCAN_SIZE);
2865 2865
2866 scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH; 2866 scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH;
@@ -4245,7 +4245,7 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev)
4245 4245
4246 iwl_free_channel_map(priv); 4246 iwl_free_channel_map(priv);
4247 iwlcore_free_geos(priv); 4247 iwlcore_free_geos(priv);
4248 kfree(priv->scan); 4248 kfree(priv->scan_cmd);
4249 if (priv->ibss_beacon) 4249 if (priv->ibss_beacon)
4250 dev_kfree_skb(priv->ibss_beacon); 4250 dev_kfree_skb(priv->ibss_beacon);
4251 4251