Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134035
b: refs/heads/master
c: 42427b4
h: refs/heads/master
i:
  134033: 49d86b8
  134031: 70ffd10
v: v3
  • Loading branch information
Kolekar, Abhijeet authored and John W. Linville committed Jan 29, 2009
1 parent b99baae commit 773daf6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dbb6654c411e2030ed969ef0c531eb7fda8b27a3
refs/heads/master: 42427b4e436bbbf038742ecbb3bf09815f93ed7a
18 changes: 18 additions & 0 deletions trunk/drivers/net/wireless/iwlwifi/iwl-3945.c
Original file line number Diff line number Diff line change
Expand Up @@ -2376,6 +2376,19 @@ int iwl3945_hw_tx_queue_init(struct iwl_priv *priv, struct iwl3945_tx_queue *txq
return 0;
}

/*
* HCMD utils
*/
static u16 iwl3945_get_hcmd_size(u8 cmd_id, u16 len)
{
switch (cmd_id) {
case REPLY_RXON:
return (u16) sizeof(struct iwl3945_rxon_cmd);
default:
return len;
}
}

/**
* iwl3945_init_hw_rate_table - Initialize the hardware rate fallback table
*/
Expand Down Expand Up @@ -2693,8 +2706,13 @@ static struct iwl_lib_ops iwl3945_lib = {
},
};

static struct iwl_hcmd_utils_ops iwl3945_hcmd_utils = {
.get_hcmd_size = iwl3945_get_hcmd_size,
};

static struct iwl_ops iwl3945_ops = {
.lib = &iwl3945_lib,
.utils = &iwl3945_hcmd_utils,
};

static struct iwl_cfg iwl3945_bg_cfg = {
Expand Down

0 comments on commit 773daf6

Please sign in to comment.