aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-05-04 22:22:35 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-14 16:29:45 -0400
commit2469bf2e9938eef3c6ab0951985b050ff1f8c94f (patch)
treeeacb2410e2ad1702e6f4270ff53c163a82e2c799 /drivers
parent133636deffc86809f59a0c8b768408d13237a9a2 (diff)
iwlwifi-5000: add build_addsta_hcmd handler for 5000 HW
This patch adds iwl5000_build_addsta_hcmd handler. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-5000.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c
index 83ed69dfac62..f9c227413086 100644
--- a/drivers/net/wireless/iwlwifi/iwl-5000.c
+++ b/drivers/net/wireless/iwlwifi/iwl-5000.c
@@ -422,10 +422,19 @@ static void iwl5000_txq_update_byte_cnt_tbl(struct iwl_priv *priv,
422 } 422 }
423} 423}
424 424
425static u16 iwl5000_build_addsta_hcmd(const struct iwl_addsta_cmd *cmd, u8 *data)
426{
427 u16 size = (u16)sizeof(struct iwl_addsta_cmd);
428 memcpy(data, cmd, size);
429 return size;
430}
431
432
425static struct iwl_hcmd_ops iwl5000_hcmd = { 433static struct iwl_hcmd_ops iwl5000_hcmd = {
426}; 434};
427 435
428static struct iwl_hcmd_utils_ops iwl5000_hcmd_utils = { 436static struct iwl_hcmd_utils_ops iwl5000_hcmd_utils = {
437 .build_addsta_hcmd = iwl5000_build_addsta_hcmd,
429#ifdef CONFIG_IWL5000_RUN_TIME_CALIB 438#ifdef CONFIG_IWL5000_RUN_TIME_CALIB
430 .gain_computation = iwl5000_gain_computation, 439 .gain_computation = iwl5000_gain_computation,
431 .chain_noise_reset = iwl5000_chain_noise_reset, 440 .chain_noise_reset = iwl5000_chain_noise_reset,