diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-04-06 07:12:41 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-04-16 16:47:23 -0400 |
commit | 811ecc995b18eb58067ffa75b961ece3b84a1f03 (patch) | |
tree | b43eaf5d490ac1552171c6fc3d8ac27f3a6f96ae /drivers/net/wireless/iwlwifi | |
parent | b165cf09c0248262232c7566df5ae40284cee7d6 (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')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-scan.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 12 |
4 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 955315b26435..31998188e879 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -3400,7 +3400,7 @@ static void iwl_uninit_drv(struct iwl_priv *priv) | |||
3400 | iwl_calib_free_results(priv); | 3400 | iwl_calib_free_results(priv); |
3401 | iwlcore_free_geos(priv); | 3401 | iwlcore_free_geos(priv); |
3402 | iwl_free_channel_map(priv); | 3402 | iwl_free_channel_map(priv); |
3403 | kfree(priv->scan); | 3403 | kfree(priv->scan_cmd); |
3404 | } | 3404 | } |
3405 | 3405 | ||
3406 | static struct attribute *iwl_sysfs_entries[] = { | 3406 | static struct attribute *iwl_sysfs_entries[] = { |
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index a7ffb4f9280a..4007b5785275 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -1051,7 +1051,7 @@ struct iwl_priv { | |||
1051 | /* Scan related variables */ | 1051 | /* Scan related variables */ |
1052 | unsigned long scan_start; | 1052 | unsigned long scan_start; |
1053 | unsigned long scan_start_tsf; | 1053 | unsigned long scan_start_tsf; |
1054 | void *scan; | 1054 | void *scan_cmd; |
1055 | enum ieee80211_band scan_band; | 1055 | enum ieee80211_band scan_band; |
1056 | struct cfg80211_scan_request *scan_request; | 1056 | struct cfg80211_scan_request *scan_request; |
1057 | bool is_internal_short_scan; | 1057 | bool is_internal_short_scan; |
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c index cb3601dabf29..18b89d3bd88d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-scan.c +++ b/drivers/net/wireless/iwlwifi/iwl-scan.c | |||
@@ -680,16 +680,16 @@ static void iwl_bg_request_scan(struct work_struct *data) | |||
680 | goto done; | 680 | goto done; |
681 | } | 681 | } |
682 | 682 | ||
683 | if (!priv->scan) { | 683 | if (!priv->scan_cmd) { |
684 | priv->scan = kmalloc(sizeof(struct iwl_scan_cmd) + | 684 | priv->scan_cmd = kmalloc(sizeof(struct iwl_scan_cmd) + |
685 | IWL_MAX_SCAN_SIZE, GFP_KERNEL); | 685 | IWL_MAX_SCAN_SIZE, GFP_KERNEL); |
686 | if (!priv->scan) { | 686 | if (!priv->scan_cmd) { |
687 | IWL_DEBUG_SCAN(priv, | 687 | IWL_DEBUG_SCAN(priv, |
688 | "fail to allocate memory for scan\n"); | 688 | "fail to allocate memory for scan\n"); |
689 | goto done; | 689 | goto done; |
690 | } | 690 | } |
691 | } | 691 | } |
692 | scan = priv->scan; | 692 | scan = priv->scan_cmd; |
693 | memset(scan, 0, sizeof(struct iwl_scan_cmd) + IWL_MAX_SCAN_SIZE); | 693 | memset(scan, 0, sizeof(struct iwl_scan_cmd) + IWL_MAX_SCAN_SIZE); |
694 | 694 | ||
695 | scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH; | 695 | scan->quiet_plcp_th = IWL_PLCP_QUIET_THRESH; |
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index af32359400b3..0f773973a4e5 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 | ||