aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 7f1e04205f30..12f93b6207d6 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -41,6 +41,7 @@
41#include "iwl-fh.h" 41#include "iwl-fh.h"
42#include "iwl-3945-fh.h" 42#include "iwl-3945-fh.h"
43#include "iwl-commands.h" 43#include "iwl-commands.h"
44#include "iwl-sta.h"
44#include "iwl-3945.h" 45#include "iwl-3945.h"
45#include "iwl-eeprom.h" 46#include "iwl-eeprom.h"
46#include "iwl-helpers.h" 47#include "iwl-helpers.h"
@@ -895,7 +896,8 @@ u8 iwl3945_sync_sta(struct iwl_priv *priv, int sta_id, u16 tx_rate, u8 flags)
895 896
896 spin_unlock_irqrestore(&priv->sta_lock, flags_spin); 897 spin_unlock_irqrestore(&priv->sta_lock, flags_spin);
897 898
898 iwl3945_send_add_station(priv, &station->sta, flags); 899 iwl_send_add_sta(priv,
900 (struct iwl_addsta_cmd *)&station->sta, flags);
899 IWL_DEBUG_RATE("SCALE sync station %d to rate %d\n", 901 IWL_DEBUG_RATE("SCALE sync station %d to rate %d\n",
900 sta_id, tx_rate); 902 sta_id, tx_rate);
901 return sta_id; 903 return sta_id;
@@ -2376,6 +2378,13 @@ static u16 iwl3945_get_hcmd_size(u8 cmd_id, u16 len)
2376 } 2378 }
2377} 2379}
2378 2380
2381static u16 iwl3945_build_addsta_hcmd(const struct iwl_addsta_cmd *cmd, u8 *data)
2382{
2383 u16 size = (u16)sizeof(struct iwl3945_addsta_cmd);
2384 memcpy(data, cmd, size);
2385 return size;
2386}
2387
2379/** 2388/**
2380 * iwl3945_init_hw_rate_table - Initialize the hardware rate fallback table 2389 * iwl3945_init_hw_rate_table - Initialize the hardware rate fallback table
2381 */ 2390 */
@@ -2743,6 +2752,7 @@ static struct iwl_lib_ops iwl3945_lib = {
2743 2752
2744static struct iwl_hcmd_utils_ops iwl3945_hcmd_utils = { 2753static struct iwl_hcmd_utils_ops iwl3945_hcmd_utils = {
2745 .get_hcmd_size = iwl3945_get_hcmd_size, 2754 .get_hcmd_size = iwl3945_get_hcmd_size,
2755 .build_addsta_hcmd = iwl3945_build_addsta_hcmd,
2746}; 2756};
2747 2757
2748static struct iwl_ops iwl3945_ops = { 2758static struct iwl_ops iwl3945_ops = {