aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-sta.c
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2010-01-22 17:22:49 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-01-25 16:36:22 -0500
commit3459ab5a1c92eaf8b76e9fa1b6ca529cf83066f3 (patch)
treeda8acd0d103f0a36d7f0c6772fbc253599421c8e /drivers/net/wireless/iwlwifi/iwl-sta.c
parent1fa97aaeb7fb5111f69abfdb8db656ce19e4951e (diff)
iwlwifi: make broadcast station addition generic
Add function pointer for broadcast station addition so that we can call it in from iwlcore at a later time. We only distinguish between iwlagn and iwl3945 broadcast station addition. For the iwl3945 station addition we add that function to iwlcore since that is where most station functionality resides, making it part of iwl3945 will require significant code reorganization that will dilute station management functionality. This seems to be an efficient solution. It may seem as though we are removing error checking when adding the 3945 broadcast station but this error checking was never really necessary since the function returns the station id and the broadcast station id is always set. Signed-off-by: Reinette Chatre <reinette.chatre@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.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c
index 842f15653238..fcac73cf82bc 100644
--- a/drivers/net/wireless/iwlwifi/iwl-sta.c
+++ b/drivers/net/wireless/iwlwifi/iwl-sta.c
@@ -1127,6 +1127,7 @@ static void iwl_sta_init_bcast_lq(struct iwl_priv *priv)
1127 */ 1127 */
1128void iwl_add_bcast_station(struct iwl_priv *priv) 1128void iwl_add_bcast_station(struct iwl_priv *priv)
1129{ 1129{
1130 IWL_DEBUG_INFO(priv, "Adding broadcast station to station table\n");
1130 iwl_add_station(priv, iwl_bcast_addr, false, CMD_SYNC, NULL); 1131 iwl_add_station(priv, iwl_bcast_addr, false, CMD_SYNC, NULL);
1131 1132
1132 /* Set up default rate scaling table in device's station table */ 1133 /* Set up default rate scaling table in device's station table */
@@ -1135,6 +1136,16 @@ void iwl_add_bcast_station(struct iwl_priv *priv)
1135EXPORT_SYMBOL(iwl_add_bcast_station); 1136EXPORT_SYMBOL(iwl_add_bcast_station);
1136 1137
1137/** 1138/**
1139 * iwl3945_add_bcast_station - add broadcast station into station table.
1140 */
1141void iwl3945_add_bcast_station(struct iwl_priv *priv)
1142{
1143 IWL_DEBUG_INFO(priv, "Adding broadcast station to station table\n");
1144 iwl_add_station(priv, iwl_bcast_addr, false, CMD_SYNC, NULL);
1145}
1146EXPORT_SYMBOL(iwl3945_add_bcast_station);
1147
1148/**
1138 * iwl_get_sta_id - Find station's index within station table 1149 * iwl_get_sta_id - Find station's index within station table
1139 * 1150 *
1140 * If new IBSS station, create new entry in station table 1151 * If new IBSS station, create new entry in station table