aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
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/net/wireless/iwlwifi/iwl-4965.c
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/net/wireless/iwlwifi/iwl-4965.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index a3562a126c9..b8bf837af46 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 */