aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-04-29 07:43:03 -0400
committerReinette Chatre <reinette.chatre@intel.com>2010-05-10 18:08:57 -0400
commit93286db50130754d9655c457ad0e11cb8f37a10f (patch)
tree519bc3e733f391eab0ae817929449376efdabf66 /drivers
parent159605dd5ec6356f5a7f0c56d9b9e63e0e61f3a8 (diff)
iwlagn: move iwl_get_ra_sta_id to 4965
This function is only needed by 4965, so it need not be in core code and can be made static. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c10
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-sta.c11
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-sta.h1
3 files changed, 10 insertions, 12 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index a3562a126c93..b8bf837af464 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -1953,6 +1953,16 @@ static int iwl4965_tx_status_reply_tx(struct iwl_priv *priv,
1953 return 0; 1953 return 0;
1954} 1954}
1955 1955
1956static int iwl_get_ra_sta_id(struct iwl_priv *priv, struct ieee80211_hdr *hdr)
1957{
1958 if (priv->iw_mode == NL80211_IFTYPE_STATION) {
1959 return IWL_AP_ID;
1960 } else {
1961 u8 *da = ieee80211_get_DA(hdr);
1962 return iwl_find_station(priv, da);
1963 }
1964}
1965
1956/** 1966/**
1957 * iwl4965_rx_reply_tx - Handle standard (non-aggregation) Tx response 1967 * iwl4965_rx_reply_tx - Handle standard (non-aggregation) Tx response
1958 */ 1968 */
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c
index 7da8edeb5256..0db742c0aff5 100644
--- a/drivers/net/wireless/iwlwifi/iwl-sta.c
+++ b/drivers/net/wireless/iwlwifi/iwl-sta.c
@@ -80,17 +80,6 @@ u8 iwl_find_station(struct iwl_priv *priv, const u8 *addr)
80} 80}
81EXPORT_SYMBOL(iwl_find_station); 81EXPORT_SYMBOL(iwl_find_station);
82 82
83int iwl_get_ra_sta_id(struct iwl_priv *priv, struct ieee80211_hdr *hdr)
84{
85 if (priv->iw_mode == NL80211_IFTYPE_STATION) {
86 return IWL_AP_ID;
87 } else {
88 u8 *da = ieee80211_get_DA(hdr);
89 return iwl_find_station(priv, da);
90 }
91}
92EXPORT_SYMBOL(iwl_get_ra_sta_id);
93
94/* priv->sta_lock must be held */ 83/* priv->sta_lock must be held */
95static void iwl_sta_ucode_activate(struct iwl_priv *priv, u8 sta_id) 84static void iwl_sta_ucode_activate(struct iwl_priv *priv, u8 sta_id)
96{ 85{
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.h b/drivers/net/wireless/iwlwifi/iwl-sta.h
index 9a869f1031fd..1a0e590a824d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-sta.h
+++ b/drivers/net/wireless/iwlwifi/iwl-sta.h
@@ -66,7 +66,6 @@ void iwl_restore_stations(struct iwl_priv *priv);
66void iwl_clear_ucode_stations(struct iwl_priv *priv, bool force); 66void iwl_clear_ucode_stations(struct iwl_priv *priv, bool force);
67int iwl_get_free_ucode_key_index(struct iwl_priv *priv); 67int iwl_get_free_ucode_key_index(struct iwl_priv *priv);
68int iwl_get_sta_id(struct iwl_priv *priv, struct ieee80211_hdr *hdr); 68int iwl_get_sta_id(struct iwl_priv *priv, struct ieee80211_hdr *hdr);
69int iwl_get_ra_sta_id(struct iwl_priv *priv, struct ieee80211_hdr *hdr);
70int iwl_send_add_sta(struct iwl_priv *priv, 69int iwl_send_add_sta(struct iwl_priv *priv,
71 struct iwl_addsta_cmd *sta, u8 flags); 70 struct iwl_addsta_cmd *sta, u8 flags);
72int iwl_add_local_station(struct iwl_priv *priv, const u8 *addr, bool init_rs); 71int iwl_add_local_station(struct iwl_priv *priv, const u8 *addr, bool init_rs);