aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKolekar, Abhijeet <abhijeet.kolekar@intel.com>2008-12-21 22:31:15 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:24 -0500
commit42427b4e436bbbf038742ecbb3bf09815f93ed7a (patch)
tree0772a61281e84e7afa490eb2452ce6caa74a07e0 /drivers
parentdbb6654c411e2030ed969ef0c531eb7fda8b27a3 (diff)
iwl3945: adding utils ops
The patch implements iwl_hcmd_utils_ops for 3945. Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com> Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 6810909f3fef..be0974d528e1 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -2376,6 +2376,19 @@ int iwl3945_hw_tx_queue_init(struct iwl_priv *priv, struct iwl3945_tx_queue *txq
2376 return 0; 2376 return 0;
2377} 2377}
2378 2378
2379/*
2380 * HCMD utils
2381 */
2382static u16 iwl3945_get_hcmd_size(u8 cmd_id, u16 len)
2383{
2384 switch (cmd_id) {
2385 case REPLY_RXON:
2386 return (u16) sizeof(struct iwl3945_rxon_cmd);
2387 default:
2388 return len;
2389 }
2390}
2391
2379/** 2392/**
2380 * iwl3945_init_hw_rate_table - Initialize the hardware rate fallback table 2393 * iwl3945_init_hw_rate_table - Initialize the hardware rate fallback table
2381 */ 2394 */
@@ -2693,8 +2706,13 @@ static struct iwl_lib_ops iwl3945_lib = {
2693 }, 2706 },
2694}; 2707};
2695 2708
2709static struct iwl_hcmd_utils_ops iwl3945_hcmd_utils = {
2710 .get_hcmd_size = iwl3945_get_hcmd_size,
2711};
2712
2696static struct iwl_ops iwl3945_ops = { 2713static struct iwl_ops iwl3945_ops = {
2697 .lib = &iwl3945_lib, 2714 .lib = &iwl3945_lib,
2715 .utils = &iwl3945_hcmd_utils,
2698}; 2716};
2699 2717
2700static struct iwl_cfg iwl3945_bg_cfg = { 2718static struct iwl_cfg iwl3945_bg_cfg = {