aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-sta.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-10-14 15:32:43 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-10-31 19:00:27 -0400
commit3257e5d4eb418e4656542207720aef5f0f547701 (patch)
treee9508f648b62d9805b4b6ea97b867b982821ce95 /drivers/net/wireless/iwlwifi/iwl-sta.c
parent56e1261596334e60210fb8ecd9eb6a3db53aba94 (diff)
iwlwifi: remove host commands structures from iwl_cmd
This patch removes host commands structures from iwl_cmd to make more HW oblivious tx cmd was left it needs special treatment. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Reviewed-by: Zhu Yi <yi.zhu@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.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-sta.c b/drivers/net/wireless/iwlwifi/iwl-sta.c
index 218483d096cc..dde0850f6e27 100644
--- a/drivers/net/wireless/iwlwifi/iwl-sta.c
+++ b/drivers/net/wireless/iwlwifi/iwl-sta.c
@@ -102,7 +102,9 @@ static int iwl_add_sta_callback(struct iwl_priv *priv,
102 struct iwl_cmd *cmd, struct sk_buff *skb) 102 struct iwl_cmd *cmd, struct sk_buff *skb)
103{ 103{
104 struct iwl_rx_packet *res = NULL; 104 struct iwl_rx_packet *res = NULL;
105 u8 sta_id = cmd->cmd.addsta.sta.sta_id; 105 struct iwl_addsta_cmd *addsta =
106 (struct iwl_addsta_cmd *)cmd->cmd.payload;
107 u8 sta_id = addsta->sta.sta_id;
106 108
107 if (!skb) { 109 if (!skb) {
108 IWL_ERROR("Error: Response NULL in REPLY_ADD_STA.\n"); 110 IWL_ERROR("Error: Response NULL in REPLY_ADD_STA.\n");
@@ -320,7 +322,9 @@ static int iwl_remove_sta_callback(struct iwl_priv *priv,
320 struct iwl_cmd *cmd, struct sk_buff *skb) 322 struct iwl_cmd *cmd, struct sk_buff *skb)
321{ 323{
322 struct iwl_rx_packet *res = NULL; 324 struct iwl_rx_packet *res = NULL;
323 const char *addr = cmd->cmd.rm_sta.addr; 325 struct iwl_rem_sta_cmd *rm_sta =
326 (struct iwl_rem_sta_cmd *)cmd->cmd.payload;
327 const char *addr = rm_sta->addr;
324 328
325 if (!skb) { 329 if (!skb) {
326 IWL_ERROR("Error: Response NULL in REPLY_REMOVE_STA.\n"); 330 IWL_ERROR("Error: Response NULL in REPLY_REMOVE_STA.\n");