diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-10-14 15:32:43 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:27 -0400 |
commit | 3257e5d4eb418e4656542207720aef5f0f547701 (patch) | |
tree | e9508f648b62d9805b4b6ea97b867b982821ce95 /drivers/net/wireless/iwlwifi | |
parent | 56e1261596334e60210fb8ecd9eb6a3db53aba94 (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')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 9 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sta.c | 8 |
2 files changed, 7 insertions, 10 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 2e9514933970..c73315f23949 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -268,23 +268,16 @@ struct iwl_cmd { | |||
268 | struct iwl_cmd_meta meta; /* driver data */ | 268 | struct iwl_cmd_meta meta; /* driver data */ |
269 | struct iwl_cmd_header hdr; /* uCode API */ | 269 | struct iwl_cmd_header hdr; /* uCode API */ |
270 | union { | 270 | union { |
271 | struct iwl_addsta_cmd addsta; | ||
272 | struct iwl_led_cmd led; | ||
273 | u32 flags; | 271 | u32 flags; |
274 | u8 val8; | 272 | u8 val8; |
275 | u16 val16; | 273 | u16 val16; |
276 | u32 val32; | 274 | u32 val32; |
277 | struct iwl4965_bt_cmd bt; | ||
278 | struct iwl_powertable_cmd powertable; | ||
279 | struct iwl_qosparam_cmd qosparam; | ||
280 | struct iwl_tx_cmd tx; | 275 | struct iwl_tx_cmd tx; |
281 | struct iwl4965_rxon_assoc_cmd rxon_assoc; | ||
282 | struct iwl_rem_sta_cmd rm_sta; | ||
283 | u8 *indirect; | ||
284 | u8 payload[IWL_CMD_MAX_PAYLOAD]; | 276 | u8 payload[IWL_CMD_MAX_PAYLOAD]; |
285 | } __attribute__ ((packed)) cmd; | 277 | } __attribute__ ((packed)) cmd; |
286 | } __attribute__ ((packed)); | 278 | } __attribute__ ((packed)); |
287 | 279 | ||
280 | |||
288 | struct iwl_host_cmd { | 281 | struct iwl_host_cmd { |
289 | u8 id; | 282 | u8 id; |
290 | u16 len; | 283 | u16 len; |
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"); |