aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-10-28 13:25:43 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-11-10 15:11:55 -0500
commit4607816f608b42a5379aca97ceed08378804c99f (patch)
treed7a0da1e1c11035518539de3fc11da8967bd65a8 /drivers/net
parenta57a59f247b651e8ed6d3eeb7e2f9d83b83134c9 (diff)
iwlwifi: remove unused essid variable
Now the essid stuff is unused, so remove it. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c12
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c12
4 files changed, 0 insertions, 28 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h
index 592c5958723b..7187925bd0d5 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.h
@@ -828,8 +828,6 @@ struct iwl3945_priv {
828 unsigned long last_statistics_time; 828 unsigned long last_statistics_time;
829 829
830 /* context information */ 830 /* context information */
831 u8 essid[IW_ESSID_MAX_SIZE];
832 u8 essid_len;
833 u16 rates_mask; 831 u16 rates_mask;
834 832
835 u32 power_mode; 833 u32 power_mode;
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index 2c35a017e5f6..ce3141f07f35 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -2937,7 +2937,6 @@ static int iwl4965_mac_config_interface(struct ieee80211_hw *hw,
2937 struct ieee80211_if_conf *conf) 2937 struct ieee80211_if_conf *conf)
2938{ 2938{
2939 struct iwl_priv *priv = hw->priv; 2939 struct iwl_priv *priv = hw->priv;
2940 unsigned long flags;
2941 int rc; 2940 int rc;
2942 2941
2943 if (conf == NULL) 2942 if (conf == NULL)
@@ -3031,15 +3030,6 @@ static int iwl4965_mac_config_interface(struct ieee80211_hw *hw,
3031 } 3030 }
3032 3031
3033 done: 3032 done:
3034 spin_lock_irqsave(&priv->lock, flags);
3035 if (!conf->ssid_len)
3036 memset(priv->essid, 0, IW_ESSID_MAX_SIZE);
3037 else
3038 memcpy(priv->essid, conf->ssid, conf->ssid_len);
3039
3040 priv->essid_len = conf->ssid_len;
3041 spin_unlock_irqrestore(&priv->lock, flags);
3042
3043 IWL_DEBUG_MAC80211("leave\n"); 3033 IWL_DEBUG_MAC80211("leave\n");
3044 mutex_unlock(&priv->mutex); 3034 mutex_unlock(&priv->mutex);
3045 3035
@@ -3082,8 +3072,6 @@ static void iwl4965_mac_remove_interface(struct ieee80211_hw *hw,
3082 if (priv->vif == conf->vif) { 3072 if (priv->vif == conf->vif) {
3083 priv->vif = NULL; 3073 priv->vif = NULL;
3084 memset(priv->bssid, 0, ETH_ALEN); 3074 memset(priv->bssid, 0, ETH_ALEN);
3085 memset(priv->essid, 0, IW_ESSID_MAX_SIZE);
3086 priv->essid_len = 0;
3087 } 3075 }
3088 mutex_unlock(&priv->mutex); 3076 mutex_unlock(&priv->mutex);
3089 3077
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index b58fcdef5432..358ea749b702 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -926,8 +926,6 @@ struct iwl_priv {
926 unsigned long last_statistics_time; 926 unsigned long last_statistics_time;
927 927
928 /* context information */ 928 /* context information */
929 u8 essid[IW_ESSID_MAX_SIZE];
930 u8 essid_len;
931 u16 rates_mask; 929 u16 rates_mask;
932 930
933 u32 power_mode; 931 u32 power_mode;
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index bf372949747f..0c2d778a9ff7 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -6720,7 +6720,6 @@ static int iwl3945_mac_config_interface(struct ieee80211_hw *hw,
6720 struct ieee80211_if_conf *conf) 6720 struct ieee80211_if_conf *conf)
6721{ 6721{
6722 struct iwl3945_priv *priv = hw->priv; 6722 struct iwl3945_priv *priv = hw->priv;
6723 unsigned long flags;
6724 int rc; 6723 int rc;
6725 6724
6726 if (conf == NULL) 6725 if (conf == NULL)
@@ -6817,15 +6816,6 @@ static int iwl3945_mac_config_interface(struct ieee80211_hw *hw,
6817 } 6816 }
6818 6817
6819 done: 6818 done:
6820 spin_lock_irqsave(&priv->lock, flags);
6821 if (!conf->ssid_len)
6822 memset(priv->essid, 0, IW_ESSID_MAX_SIZE);
6823 else
6824 memcpy(priv->essid, conf->ssid, conf->ssid_len);
6825
6826 priv->essid_len = conf->ssid_len;
6827 spin_unlock_irqrestore(&priv->lock, flags);
6828
6829 IWL_DEBUG_MAC80211("leave\n"); 6819 IWL_DEBUG_MAC80211("leave\n");
6830 mutex_unlock(&priv->mutex); 6820 mutex_unlock(&priv->mutex);
6831 6821
@@ -6868,8 +6858,6 @@ static void iwl3945_mac_remove_interface(struct ieee80211_hw *hw,
6868 if (priv->vif == conf->vif) { 6858 if (priv->vif == conf->vif) {
6869 priv->vif = NULL; 6859 priv->vif = NULL;
6870 memset(priv->bssid, 0, ETH_ALEN); 6860 memset(priv->bssid, 0, ETH_ALEN);
6871 memset(priv->essid, 0, IW_ESSID_MAX_SIZE);
6872 priv->essid_len = 0;
6873 } 6861 }
6874 mutex_unlock(&priv->mutex); 6862 mutex_unlock(&priv->mutex);
6875 6863