aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-sta.c
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2008-06-11 21:47:18 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-14 12:18:10 -0400
commitbe1f3ab6e5e9788fd2985117b40755130058a2be (patch)
treebfb3f526195076f866723880dc59dba4a82a49b0 /drivers/net/wireless/iwlwifi/iwl-sta.c
parent808e72a088d164cf0030f593d9a5fc23306fb6b6 (diff)
iwlwifi: general code clean up
This patch cleans up iwlwifi's code: Add missing include, remove empty lines etc... Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-sta.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-sta.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c
index fae5d6d528d4..f874e7d7b225 100644
--- a/drivers/net/wireless/iwlwifi/iwl-sta.c
+++ b/drivers/net/wireless/iwlwifi/iwl-sta.c
@@ -30,11 +30,9 @@
30#include <net/mac80211.h> 30#include <net/mac80211.h>
31#include <linux/etherdevice.h> 31#include <linux/etherdevice.h>
32 32
33#include "iwl-eeprom.h"
34#include "iwl-dev.h" 33#include "iwl-dev.h"
35#include "iwl-core.h" 34#include "iwl-core.h"
36#include "iwl-sta.h" 35#include "iwl-sta.h"
37#include "iwl-io.h"
38#include "iwl-helpers.h" 36#include "iwl-helpers.h"
39 37
40 38
@@ -74,6 +72,17 @@ u8 iwl_find_station(struct iwl_priv *priv, const u8 *addr)
74} 72}
75EXPORT_SYMBOL(iwl_find_station); 73EXPORT_SYMBOL(iwl_find_station);
76 74
75int iwl_get_ra_sta_id(struct iwl_priv *priv, struct ieee80211_hdr *hdr)
76{
77 if (priv->iw_mode == IEEE80211_IF_TYPE_STA) {
78 return IWL_AP_ID;
79 } else {
80 u8 *da = ieee80211_get_DA(hdr);
81 return iwl_find_station(priv, da);
82 }
83}
84EXPORT_SYMBOL(iwl_get_ra_sta_id);
85
77static int iwl_add_sta_callback(struct iwl_priv *priv, 86static int iwl_add_sta_callback(struct iwl_priv *priv,
78 struct iwl_cmd *cmd, struct sk_buff *skb) 87 struct iwl_cmd *cmd, struct sk_buff *skb)
79{ 88{
@@ -105,8 +114,6 @@ static int iwl_add_sta_callback(struct iwl_priv *priv,
105 return 1; 114 return 1;
106} 115}
107 116
108
109
110int iwl_send_add_sta(struct iwl_priv *priv, 117int iwl_send_add_sta(struct iwl_priv *priv,
111 struct iwl_addsta_cmd *sta, u8 flags) 118 struct iwl_addsta_cmd *sta, u8 flags)
112{ 119{
@@ -272,7 +279,6 @@ u8 iwl_add_station_flags(struct iwl_priv *priv, const u8 *addr, int is_ap,
272} 279}
273EXPORT_SYMBOL(iwl_add_station_flags); 280EXPORT_SYMBOL(iwl_add_station_flags);
274 281
275
276static int iwl_sta_ucode_deactivate(struct iwl_priv *priv, const char *addr) 282static int iwl_sta_ucode_deactivate(struct iwl_priv *priv, const char *addr)
277{ 283{
278 unsigned long flags; 284 unsigned long flags;
@@ -376,9 +382,9 @@ static int iwl_send_remove_station(struct iwl_priv *priv, const u8 *addr,
376 382
377 return ret; 383 return ret;
378} 384}
385
379/** 386/**
380 * iwl_remove_station - Remove driver's knowledge of station. 387 * iwl_remove_station - Remove driver's knowledge of station.
381 *
382 */ 388 */
383u8 iwl_remove_station(struct iwl_priv *priv, const u8 *addr, int is_ap) 389u8 iwl_remove_station(struct iwl_priv *priv, const u8 *addr, int is_ap)
384{ 390{
@@ -418,7 +424,7 @@ out:
418 return 0; 424 return 0;
419} 425}
420EXPORT_SYMBOL(iwl_remove_station); 426EXPORT_SYMBOL(iwl_remove_station);
421int iwl_get_free_ucode_key_index(struct iwl_priv *priv) 427static int iwl_get_free_ucode_key_index(struct iwl_priv *priv)
422{ 428{
423 int i; 429 int i;
424 430
@@ -869,7 +875,6 @@ int iwl_rxon_add_station(struct iwl_priv *priv, const u8 *addr, int is_ap)
869} 875}
870EXPORT_SYMBOL(iwl_rxon_add_station); 876EXPORT_SYMBOL(iwl_rxon_add_station);
871 877
872
873/** 878/**
874 * iwl_get_sta_id - Find station's index within station table 879 * iwl_get_sta_id - Find station's index within station table
875 * 880 *
@@ -927,7 +932,6 @@ int iwl_get_sta_id(struct iwl_priv *priv, struct ieee80211_hdr *hdr)
927} 932}
928EXPORT_SYMBOL(iwl_get_sta_id); 933EXPORT_SYMBOL(iwl_get_sta_id);
929 934
930
931/** 935/**
932 * iwl_sta_modify_enable_tid_tx - Enable Tx for this TID in station table 936 * iwl_sta_modify_enable_tid_tx - Enable Tx for this TID in station table
933 */ 937 */
@@ -946,4 +950,3 @@ void iwl_sta_modify_enable_tid_tx(struct iwl_priv *priv, int sta_id, int tid)
946} 950}
947EXPORT_SYMBOL(iwl_sta_modify_enable_tid_tx); 951EXPORT_SYMBOL(iwl_sta_modify_enable_tid_tx);
948 952
949