diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-12-18 21:37:07 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:54 -0500 |
commit | 3d24a9f790c0e39cfdef1446c7100e89c542805c (patch) | |
tree | c439ca8d5141ae62fedb5437a5382a649d9ebe5e /drivers/net/wireless/iwlwifi/iwl-3945.c | |
parent | 28afaf9139ce9f1c26452f34808e322e8e868850 (diff) |
iwlwifi: 3945 remove iwl-3945-commands.h
This patch remove iwl-3945-commands.h
eliminating duplicated and moving all definitions to iwl-commands.h
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Acked-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 11e047de6cc9..080f1a856325 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include "iwl-3945-core.h" | 41 | #include "iwl-3945-core.h" |
42 | #include "iwl-3945-fh.h" | 42 | #include "iwl-3945-fh.h" |
43 | #include "iwl-commands.h" | 43 | #include "iwl-commands.h" |
44 | #include "iwl-3945-commands.h" | ||
45 | #include "iwl-3945.h" | 44 | #include "iwl-3945.h" |
46 | #include "iwl-helpers.h" | 45 | #include "iwl-helpers.h" |
47 | #include "iwl-3945-rs.h" | 46 | #include "iwl-3945-rs.h" |
@@ -333,7 +332,7 @@ static void iwl3945_tx_queue_reclaim(struct iwl3945_priv *priv, | |||
333 | static void iwl3945_rx_reply_tx(struct iwl3945_priv *priv, | 332 | static void iwl3945_rx_reply_tx(struct iwl3945_priv *priv, |
334 | struct iwl3945_rx_mem_buffer *rxb) | 333 | struct iwl3945_rx_mem_buffer *rxb) |
335 | { | 334 | { |
336 | struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; | 335 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; |
337 | u16 sequence = le16_to_cpu(pkt->hdr.sequence); | 336 | u16 sequence = le16_to_cpu(pkt->hdr.sequence); |
338 | int txq_id = SEQ_TO_QUEUE(sequence); | 337 | int txq_id = SEQ_TO_QUEUE(sequence); |
339 | int index = SEQ_TO_INDEX(sequence); | 338 | int index = SEQ_TO_INDEX(sequence); |
@@ -392,7 +391,7 @@ static void iwl3945_rx_reply_tx(struct iwl3945_priv *priv, | |||
392 | 391 | ||
393 | void iwl3945_hw_rx_statistics(struct iwl3945_priv *priv, struct iwl3945_rx_mem_buffer *rxb) | 392 | void iwl3945_hw_rx_statistics(struct iwl3945_priv *priv, struct iwl3945_rx_mem_buffer *rxb) |
394 | { | 393 | { |
395 | struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; | 394 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; |
396 | IWL_DEBUG_RX("Statistics notification received (%d vs %d).\n", | 395 | IWL_DEBUG_RX("Statistics notification received (%d vs %d).\n", |
397 | (int)sizeof(struct iwl3945_notif_statistics), | 396 | (int)sizeof(struct iwl3945_notif_statistics), |
398 | le32_to_cpu(pkt->len)); | 397 | le32_to_cpu(pkt->len)); |
@@ -419,7 +418,7 @@ void iwl3945_hw_rx_statistics(struct iwl3945_priv *priv, struct iwl3945_rx_mem_b | |||
419 | * group100 parameter selects whether to show 1 out of 100 good frames. | 418 | * group100 parameter selects whether to show 1 out of 100 good frames. |
420 | */ | 419 | */ |
421 | static void iwl3945_dbg_report_frame(struct iwl3945_priv *priv, | 420 | static void iwl3945_dbg_report_frame(struct iwl3945_priv *priv, |
422 | struct iwl3945_rx_packet *pkt, | 421 | struct iwl_rx_packet *pkt, |
423 | struct ieee80211_hdr *header, int group100) | 422 | struct ieee80211_hdr *header, int group100) |
424 | { | 423 | { |
425 | u32 to_us; | 424 | u32 to_us; |
@@ -547,7 +546,7 @@ static void iwl3945_dbg_report_frame(struct iwl3945_priv *priv, | |||
547 | } | 546 | } |
548 | #else | 547 | #else |
549 | static inline void iwl3945_dbg_report_frame(struct iwl3945_priv *priv, | 548 | static inline void iwl3945_dbg_report_frame(struct iwl3945_priv *priv, |
550 | struct iwl3945_rx_packet *pkt, | 549 | struct iwl_rx_packet *pkt, |
551 | struct ieee80211_hdr *header, int group100) | 550 | struct ieee80211_hdr *header, int group100) |
552 | { | 551 | { |
553 | } | 552 | } |
@@ -575,7 +574,7 @@ static void iwl3945_pass_packet_to_mac80211(struct iwl3945_priv *priv, | |||
575 | struct iwl3945_rx_mem_buffer *rxb, | 574 | struct iwl3945_rx_mem_buffer *rxb, |
576 | struct ieee80211_rx_status *stats) | 575 | struct ieee80211_rx_status *stats) |
577 | { | 576 | { |
578 | struct iwl3945_rx_packet *pkt = (struct iwl3945_rx_packet *)rxb->skb->data; | 577 | struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; |
579 | #ifdef CONFIG_IWL3945_LEDS | 578 | #ifdef CONFIG_IWL3945_LEDS |
580 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)IWL_RX_DATA(pkt); | 579 | struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)IWL_RX_DATA(pkt); |
581 | #endif | 580 | #endif |
@@ -584,7 +583,7 @@ static void iwl3945_pass_packet_to_mac80211(struct iwl3945_priv *priv, | |||
584 | short len = le16_to_cpu(rx_hdr->len); | 583 | short len = le16_to_cpu(rx_hdr->len); |
585 | 584 | ||
586 | /* We received data from the HW, so stop the watchdog */ | 585 | /* We received data from the HW, so stop the watchdog */ |
587 | if (unlikely((len + IWL_RX_FRAME_SIZE) > skb_tailroom(rxb->skb))) { | 586 | if (unlikely((len + IWL39_RX_FRAME_SIZE) > skb_tailroom(rxb->skb))) { |
588 | IWL_DEBUG_DROP("Corruption detected!\n"); | 587 | IWL_DEBUG_DROP("Corruption detected!\n"); |
589 | return; | 588 | return; |
590 | } | 589 | } |
@@ -619,7 +618,7 @@ static void iwl3945_rx_reply_rx(struct iwl3945_priv *priv, | |||
619 | { | 618 | { |
620 | struct ieee80211_hdr *header; | 619 | struct ieee80211_hdr *header; |
621 | struct ieee80211_rx_status rx_status; | 620 | struct ieee80211_rx_status rx_status; |
622 | struct iwl3945_rx_packet *pkt = (void *)rxb->skb->data; | 621 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; |
623 | struct iwl3945_rx_frame_stats *rx_stats = IWL_RX_STATS(pkt); | 622 | struct iwl3945_rx_frame_stats *rx_stats = IWL_RX_STATS(pkt); |
624 | struct iwl3945_rx_frame_hdr *rx_hdr = IWL_RX_HDR(pkt); | 623 | struct iwl3945_rx_frame_hdr *rx_hdr = IWL_RX_HDR(pkt); |
625 | struct iwl3945_rx_frame_end *rx_end = IWL_RX_END(pkt); | 624 | struct iwl3945_rx_frame_end *rx_end = IWL_RX_END(pkt); |