diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-10-10 10:27:13 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-10-14 14:48:13 -0400 |
commit | 3246c4e6addfbf69b23095b69c5484cd76ddb37b (patch) | |
tree | 1f3711d7d78fb04549b9d4ec0120d25d8e6761fd /drivers | |
parent | c745f55baf63d08d6e9bb20682102fb8bae8f67a (diff) |
iwlagn: rename iwl-rx.c to iwl-agn-rx.c
After driver split, there were no shared functions between agn and legacy;
rename iwl-rx.c to iwl-agn-rx.c
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/Makefile | 4 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rx.c (renamed from drivers/net/wireless/iwlwifi/iwl-rx.c) | 103 |
2 files changed, 56 insertions, 51 deletions
diff --git a/drivers/net/wireless/iwlwifi/Makefile b/drivers/net/wireless/iwlwifi/Makefile index 3dfb9df40895..c73e5ed8db5e 100644 --- a/drivers/net/wireless/iwlwifi/Makefile +++ b/drivers/net/wireless/iwlwifi/Makefile | |||
@@ -3,10 +3,10 @@ obj-$(CONFIG_IWLWIFI) += iwlwifi.o | |||
3 | iwlwifi-objs := iwl-agn.o iwl-agn-rs.o | 3 | iwlwifi-objs := iwl-agn.o iwl-agn-rs.o |
4 | iwlwifi-objs += iwl-agn-ucode.o iwl-agn-tx.o | 4 | iwlwifi-objs += iwl-agn-ucode.o iwl-agn-tx.o |
5 | iwlwifi-objs += iwl-agn-lib.o iwl-agn-calib.o iwl-io.o | 5 | iwlwifi-objs += iwl-agn-lib.o iwl-agn-calib.o iwl-io.o |
6 | iwlwifi-objs += iwl-agn-tt.o iwl-agn-sta.o | 6 | iwlwifi-objs += iwl-agn-tt.o iwl-agn-sta.o iwl-agn-rx.o |
7 | 7 | ||
8 | iwlwifi-objs += iwl-core.o iwl-eeprom.o iwl-power.o | 8 | iwlwifi-objs += iwl-core.o iwl-eeprom.o iwl-power.o |
9 | iwlwifi-objs += iwl-rx.o iwl-scan.o iwl-led.o | 9 | iwlwifi-objs += iwl-scan.o iwl-led.o |
10 | iwlwifi-objs += iwl-agn-rxon.o | 10 | iwlwifi-objs += iwl-agn-rxon.o |
11 | iwlwifi-objs += iwl-5000.o | 11 | iwlwifi-objs += iwl-5000.o |
12 | iwlwifi-objs += iwl-6000.o | 12 | iwlwifi-objs += iwl-6000.o |
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-agn-rx.c index d406c7288ccc..daa3c60c6fff 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rx.c | |||
@@ -130,7 +130,7 @@ const char *get_cmd_string(u8 cmd) | |||
130 | * | 130 | * |
131 | ******************************************************************************/ | 131 | ******************************************************************************/ |
132 | 132 | ||
133 | static int iwl_rx_reply_error(struct iwl_priv *priv, | 133 | static int iwlagn_rx_reply_error(struct iwl_priv *priv, |
134 | struct iwl_rx_mem_buffer *rxb, | 134 | struct iwl_rx_mem_buffer *rxb, |
135 | struct iwl_device_cmd *cmd) | 135 | struct iwl_device_cmd *cmd) |
136 | { | 136 | { |
@@ -146,7 +146,7 @@ static int iwl_rx_reply_error(struct iwl_priv *priv, | |||
146 | return 0; | 146 | return 0; |
147 | } | 147 | } |
148 | 148 | ||
149 | static int iwl_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb, | 149 | static int iwlagn_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb, |
150 | struct iwl_device_cmd *cmd) | 150 | struct iwl_device_cmd *cmd) |
151 | { | 151 | { |
152 | struct iwl_rx_packet *pkt = rxb_addr(rxb); | 152 | struct iwl_rx_packet *pkt = rxb_addr(rxb); |
@@ -176,7 +176,7 @@ static int iwl_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb, | |||
176 | } | 176 | } |
177 | 177 | ||
178 | 178 | ||
179 | static int iwl_rx_spectrum_measure_notif(struct iwl_priv *priv, | 179 | static int iwlagn_rx_spectrum_measure_notif(struct iwl_priv *priv, |
180 | struct iwl_rx_mem_buffer *rxb, | 180 | struct iwl_rx_mem_buffer *rxb, |
181 | struct iwl_device_cmd *cmd) | 181 | struct iwl_device_cmd *cmd) |
182 | { | 182 | { |
@@ -194,7 +194,7 @@ static int iwl_rx_spectrum_measure_notif(struct iwl_priv *priv, | |||
194 | return 0; | 194 | return 0; |
195 | } | 195 | } |
196 | 196 | ||
197 | static int iwl_rx_pm_sleep_notif(struct iwl_priv *priv, | 197 | static int iwlagn_rx_pm_sleep_notif(struct iwl_priv *priv, |
198 | struct iwl_rx_mem_buffer *rxb, | 198 | struct iwl_rx_mem_buffer *rxb, |
199 | struct iwl_device_cmd *cmd) | 199 | struct iwl_device_cmd *cmd) |
200 | { | 200 | { |
@@ -207,7 +207,7 @@ static int iwl_rx_pm_sleep_notif(struct iwl_priv *priv, | |||
207 | return 0; | 207 | return 0; |
208 | } | 208 | } |
209 | 209 | ||
210 | static int iwl_rx_pm_debug_statistics_notif(struct iwl_priv *priv, | 210 | static int iwlagn_rx_pm_debug_statistics_notif(struct iwl_priv *priv, |
211 | struct iwl_rx_mem_buffer *rxb, | 211 | struct iwl_rx_mem_buffer *rxb, |
212 | struct iwl_device_cmd *cmd) | 212 | struct iwl_device_cmd *cmd) |
213 | { | 213 | { |
@@ -221,7 +221,7 @@ static int iwl_rx_pm_debug_statistics_notif(struct iwl_priv *priv, | |||
221 | return 0; | 221 | return 0; |
222 | } | 222 | } |
223 | 223 | ||
224 | static int iwl_rx_beacon_notif(struct iwl_priv *priv, | 224 | static int iwlagn_rx_beacon_notif(struct iwl_priv *priv, |
225 | struct iwl_rx_mem_buffer *rxb, | 225 | struct iwl_rx_mem_buffer *rxb, |
226 | struct iwl_device_cmd *cmd) | 226 | struct iwl_device_cmd *cmd) |
227 | { | 227 | { |
@@ -257,7 +257,7 @@ static int iwl_rx_beacon_notif(struct iwl_priv *priv, | |||
257 | * the BA_TIMEOUT_MAX, reload firmware and bring system back to normal | 257 | * the BA_TIMEOUT_MAX, reload firmware and bring system back to normal |
258 | * operation state. | 258 | * operation state. |
259 | */ | 259 | */ |
260 | static bool iwl_good_ack_health(struct iwl_priv *priv, | 260 | static bool iwlagn_good_ack_health(struct iwl_priv *priv, |
261 | struct statistics_tx *cur) | 261 | struct statistics_tx *cur) |
262 | { | 262 | { |
263 | int actual_delta, expected_delta, ba_timeout_delta; | 263 | int actual_delta, expected_delta, ba_timeout_delta; |
@@ -282,8 +282,9 @@ static bool iwl_good_ack_health(struct iwl_priv *priv, | |||
282 | 282 | ||
283 | if ((actual_delta * 100 / expected_delta) < ACK_CNT_RATIO && | 283 | if ((actual_delta * 100 / expected_delta) < ACK_CNT_RATIO && |
284 | ba_timeout_delta > BA_TIMEOUT_CNT) { | 284 | ba_timeout_delta > BA_TIMEOUT_CNT) { |
285 | IWL_DEBUG_RADIO(priv, "deltas: actual %d expected %d ba_timeout %d\n", | 285 | IWL_DEBUG_RADIO(priv, |
286 | actual_delta, expected_delta, ba_timeout_delta); | 286 | "deltas: actual %d expected %d ba_timeout %d\n", |
287 | actual_delta, expected_delta, ba_timeout_delta); | ||
287 | 288 | ||
288 | #ifdef CONFIG_IWLWIFI_DEBUGFS | 289 | #ifdef CONFIG_IWLWIFI_DEBUGFS |
289 | /* | 290 | /* |
@@ -311,7 +312,7 @@ static bool iwl_good_ack_health(struct iwl_priv *priv, | |||
311 | * When the plcp error is exceeding the thresholds, reset the radio | 312 | * When the plcp error is exceeding the thresholds, reset the radio |
312 | * to improve the throughput. | 313 | * to improve the throughput. |
313 | */ | 314 | */ |
314 | static bool iwl_good_plcp_health(struct iwl_priv *priv, | 315 | static bool iwlagn_good_plcp_health(struct iwl_priv *priv, |
315 | struct statistics_rx_phy *cur_ofdm, | 316 | struct statistics_rx_phy *cur_ofdm, |
316 | struct statistics_rx_ht_phy *cur_ofdm_ht, | 317 | struct statistics_rx_ht_phy *cur_ofdm_ht, |
317 | unsigned int msecs) | 318 | unsigned int msecs) |
@@ -343,11 +344,11 @@ static bool iwl_good_plcp_health(struct iwl_priv *priv, | |||
343 | return true; | 344 | return true; |
344 | } | 345 | } |
345 | 346 | ||
346 | static void iwl_recover_from_statistics(struct iwl_priv *priv, | 347 | static void iwlagn_recover_from_statistics(struct iwl_priv *priv, |
347 | struct statistics_rx_phy *cur_ofdm, | 348 | struct statistics_rx_phy *cur_ofdm, |
348 | struct statistics_rx_ht_phy *cur_ofdm_ht, | 349 | struct statistics_rx_ht_phy *cur_ofdm_ht, |
349 | struct statistics_tx *tx, | 350 | struct statistics_tx *tx, |
350 | unsigned long stamp) | 351 | unsigned long stamp) |
351 | { | 352 | { |
352 | unsigned int msecs; | 353 | unsigned int msecs; |
353 | 354 | ||
@@ -364,21 +365,21 @@ static void iwl_recover_from_statistics(struct iwl_priv *priv, | |||
364 | if (msecs < 99) | 365 | if (msecs < 99) |
365 | return; | 366 | return; |
366 | 367 | ||
367 | if (iwlagn_mod_params.ack_check && !iwl_good_ack_health(priv, tx)) { | 368 | if (iwlagn_mod_params.ack_check && !iwlagn_good_ack_health(priv, tx)) { |
368 | IWL_ERR(priv, "low ack count detected, restart firmware\n"); | 369 | IWL_ERR(priv, "low ack count detected, restart firmware\n"); |
369 | if (!iwl_force_reset(priv, IWL_FW_RESET, false)) | 370 | if (!iwl_force_reset(priv, IWL_FW_RESET, false)) |
370 | return; | 371 | return; |
371 | } | 372 | } |
372 | 373 | ||
373 | if (iwlagn_mod_params.plcp_check && | 374 | if (iwlagn_mod_params.plcp_check && |
374 | !iwl_good_plcp_health(priv, cur_ofdm, cur_ofdm_ht, msecs)) | 375 | !iwlagn_good_plcp_health(priv, cur_ofdm, cur_ofdm_ht, msecs)) |
375 | iwl_force_reset(priv, IWL_RF_RESET, false); | 376 | iwl_force_reset(priv, IWL_RF_RESET, false); |
376 | } | 377 | } |
377 | 378 | ||
378 | /* Calculate noise level, based on measurements during network silence just | 379 | /* Calculate noise level, based on measurements during network silence just |
379 | * before arriving beacon. This measurement can be done only if we know | 380 | * before arriving beacon. This measurement can be done only if we know |
380 | * exactly when to expect beacons, therefore only when we're associated. */ | 381 | * exactly when to expect beacons, therefore only when we're associated. */ |
381 | static void iwl_rx_calc_noise(struct iwl_priv *priv) | 382 | static void iwlagn_rx_calc_noise(struct iwl_priv *priv) |
382 | { | 383 | { |
383 | struct statistics_rx_non_phy *rx_info; | 384 | struct statistics_rx_non_phy *rx_info; |
384 | int num_active_rx = 0; | 385 | int num_active_rx = 0; |
@@ -444,7 +445,7 @@ static void accum_stats(__le32 *prev, __le32 *cur, __le32 *delta, | |||
444 | } | 445 | } |
445 | 446 | ||
446 | static void | 447 | static void |
447 | iwl_accumulative_statistics(struct iwl_priv *priv, | 448 | iwlagn_accumulative_statistics(struct iwl_priv *priv, |
448 | struct statistics_general_common *common, | 449 | struct statistics_general_common *common, |
449 | struct statistics_rx_non_phy *rx_non_phy, | 450 | struct statistics_rx_non_phy *rx_non_phy, |
450 | struct statistics_rx_phy *rx_ofdm, | 451 | struct statistics_rx_phy *rx_ofdm, |
@@ -473,7 +474,7 @@ iwl_accumulative_statistics(struct iwl_priv *priv, | |||
473 | } | 474 | } |
474 | #else | 475 | #else |
475 | static inline void | 476 | static inline void |
476 | iwl_accumulative_statistics(struct iwl_priv *priv, | 477 | iwlagn_accumulative_statistics(struct iwl_priv *priv, |
477 | struct statistics_general_common *common, | 478 | struct statistics_general_common *common, |
478 | struct statistics_rx_non_phy *rx_non_phy, | 479 | struct statistics_rx_non_phy *rx_non_phy, |
479 | struct statistics_rx_phy *rx_ofdm, | 480 | struct statistics_rx_phy *rx_ofdm, |
@@ -485,7 +486,7 @@ iwl_accumulative_statistics(struct iwl_priv *priv, | |||
485 | } | 486 | } |
486 | #endif | 487 | #endif |
487 | 488 | ||
488 | static int iwl_rx_statistics(struct iwl_priv *priv, | 489 | static int iwlagn_rx_statistics(struct iwl_priv *priv, |
489 | struct iwl_rx_mem_buffer *rxb, | 490 | struct iwl_rx_mem_buffer *rxb, |
490 | struct iwl_device_cmd *cmd) | 491 | struct iwl_device_cmd *cmd) |
491 | { | 492 | { |
@@ -548,10 +549,10 @@ static int iwl_rx_statistics(struct iwl_priv *priv, | |||
548 | (*flag & STATISTICS_REPLY_FLG_HT40_MODE_MSK) != | 549 | (*flag & STATISTICS_REPLY_FLG_HT40_MODE_MSK) != |
549 | (priv->statistics.flag & STATISTICS_REPLY_FLG_HT40_MODE_MSK); | 550 | (priv->statistics.flag & STATISTICS_REPLY_FLG_HT40_MODE_MSK); |
550 | 551 | ||
551 | iwl_accumulative_statistics(priv, common, rx_non_phy, rx_ofdm, | 552 | iwlagn_accumulative_statistics(priv, common, rx_non_phy, rx_ofdm, |
552 | rx_ofdm_ht, rx_cck, tx, bt_activity); | 553 | rx_ofdm_ht, rx_cck, tx, bt_activity); |
553 | 554 | ||
554 | iwl_recover_from_statistics(priv, rx_ofdm, rx_ofdm_ht, tx, stamp); | 555 | iwlagn_recover_from_statistics(priv, rx_ofdm, rx_ofdm_ht, tx, stamp); |
555 | 556 | ||
556 | priv->statistics.flag = *flag; | 557 | priv->statistics.flag = *flag; |
557 | memcpy(&priv->statistics.common, common, sizeof(*common)); | 558 | memcpy(&priv->statistics.common, common, sizeof(*common)); |
@@ -579,7 +580,7 @@ static int iwl_rx_statistics(struct iwl_priv *priv, | |||
579 | 580 | ||
580 | if (unlikely(!test_bit(STATUS_SCANNING, &priv->shrd->status)) && | 581 | if (unlikely(!test_bit(STATUS_SCANNING, &priv->shrd->status)) && |
581 | (pkt->hdr.cmd == STATISTICS_NOTIFICATION)) { | 582 | (pkt->hdr.cmd == STATISTICS_NOTIFICATION)) { |
582 | iwl_rx_calc_noise(priv); | 583 | iwlagn_rx_calc_noise(priv); |
583 | queue_work(priv->shrd->workqueue, &priv->run_time_calib_work); | 584 | queue_work(priv->shrd->workqueue, &priv->run_time_calib_work); |
584 | } | 585 | } |
585 | if (priv->cfg->lib->temperature && change) | 586 | if (priv->cfg->lib->temperature && change) |
@@ -587,7 +588,7 @@ static int iwl_rx_statistics(struct iwl_priv *priv, | |||
587 | return 0; | 588 | return 0; |
588 | } | 589 | } |
589 | 590 | ||
590 | static int iwl_rx_reply_statistics(struct iwl_priv *priv, | 591 | static int iwlagn_rx_reply_statistics(struct iwl_priv *priv, |
591 | struct iwl_rx_mem_buffer *rxb, | 592 | struct iwl_rx_mem_buffer *rxb, |
592 | struct iwl_device_cmd *cmd) | 593 | struct iwl_device_cmd *cmd) |
593 | { | 594 | { |
@@ -604,13 +605,13 @@ static int iwl_rx_reply_statistics(struct iwl_priv *priv, | |||
604 | #endif | 605 | #endif |
605 | IWL_DEBUG_RX(priv, "Statistics have been cleared\n"); | 606 | IWL_DEBUG_RX(priv, "Statistics have been cleared\n"); |
606 | } | 607 | } |
607 | iwl_rx_statistics(priv, rxb, cmd); | 608 | iwlagn_rx_statistics(priv, rxb, cmd); |
608 | return 0; | 609 | return 0; |
609 | } | 610 | } |
610 | 611 | ||
611 | /* Handle notification from uCode that card's power state is changing | 612 | /* Handle notification from uCode that card's power state is changing |
612 | * due to software, hardware, or critical temperature RFKILL */ | 613 | * due to software, hardware, or critical temperature RFKILL */ |
613 | static int iwl_rx_card_state_notif(struct iwl_priv *priv, | 614 | static int iwlagn_rx_card_state_notif(struct iwl_priv *priv, |
614 | struct iwl_rx_mem_buffer *rxb, | 615 | struct iwl_rx_mem_buffer *rxb, |
615 | struct iwl_device_cmd *cmd) | 616 | struct iwl_device_cmd *cmd) |
616 | { | 617 | { |
@@ -663,7 +664,7 @@ static int iwl_rx_card_state_notif(struct iwl_priv *priv, | |||
663 | return 0; | 664 | return 0; |
664 | } | 665 | } |
665 | 666 | ||
666 | static int iwl_rx_missed_beacon_notif(struct iwl_priv *priv, | 667 | static int iwlagn_rx_missed_beacon_notif(struct iwl_priv *priv, |
667 | struct iwl_rx_mem_buffer *rxb, | 668 | struct iwl_rx_mem_buffer *rxb, |
668 | struct iwl_device_cmd *cmd) | 669 | struct iwl_device_cmd *cmd) |
669 | 670 | ||
@@ -688,7 +689,7 @@ static int iwl_rx_missed_beacon_notif(struct iwl_priv *priv, | |||
688 | 689 | ||
689 | /* Cache phy data (Rx signal strength, etc) for HT frame (REPLY_RX_PHY_CMD). | 690 | /* Cache phy data (Rx signal strength, etc) for HT frame (REPLY_RX_PHY_CMD). |
690 | * This will be used later in iwl_rx_reply_rx() for REPLY_RX_MPDU_CMD. */ | 691 | * This will be used later in iwl_rx_reply_rx() for REPLY_RX_MPDU_CMD. */ |
691 | static int iwl_rx_reply_rx_phy(struct iwl_priv *priv, | 692 | static int iwlagn_rx_reply_rx_phy(struct iwl_priv *priv, |
692 | struct iwl_rx_mem_buffer *rxb, | 693 | struct iwl_rx_mem_buffer *rxb, |
693 | struct iwl_device_cmd *cmd) | 694 | struct iwl_device_cmd *cmd) |
694 | { | 695 | { |
@@ -703,7 +704,7 @@ static int iwl_rx_reply_rx_phy(struct iwl_priv *priv, | |||
703 | /* | 704 | /* |
704 | * returns non-zero if packet should be dropped | 705 | * returns non-zero if packet should be dropped |
705 | */ | 706 | */ |
706 | static int iwl_set_decrypted_flag(struct iwl_priv *priv, | 707 | static int iwlagn_set_decrypted_flag(struct iwl_priv *priv, |
707 | struct ieee80211_hdr *hdr, | 708 | struct ieee80211_hdr *hdr, |
708 | u32 decrypt_res, | 709 | u32 decrypt_res, |
709 | struct ieee80211_rx_status *stats) | 710 | struct ieee80211_rx_status *stats) |
@@ -752,7 +753,7 @@ static int iwl_set_decrypted_flag(struct iwl_priv *priv, | |||
752 | return 0; | 753 | return 0; |
753 | } | 754 | } |
754 | 755 | ||
755 | static void iwl_pass_packet_to_mac80211(struct iwl_priv *priv, | 756 | static void iwlagn_pass_packet_to_mac80211(struct iwl_priv *priv, |
756 | struct ieee80211_hdr *hdr, | 757 | struct ieee80211_hdr *hdr, |
757 | u16 len, | 758 | u16 len, |
758 | u32 ampdu_status, | 759 | u32 ampdu_status, |
@@ -772,7 +773,7 @@ static void iwl_pass_packet_to_mac80211(struct iwl_priv *priv, | |||
772 | 773 | ||
773 | /* In case of HW accelerated crypto and bad decryption, drop */ | 774 | /* In case of HW accelerated crypto and bad decryption, drop */ |
774 | if (!iwlagn_mod_params.sw_crypto && | 775 | if (!iwlagn_mod_params.sw_crypto && |
775 | iwl_set_decrypted_flag(priv, hdr, ampdu_status, stats)) | 776 | iwlagn_set_decrypted_flag(priv, hdr, ampdu_status, stats)) |
776 | return; | 777 | return; |
777 | 778 | ||
778 | skb = dev_alloc_skb(128); | 779 | skb = dev_alloc_skb(128); |
@@ -810,7 +811,7 @@ static void iwl_pass_packet_to_mac80211(struct iwl_priv *priv, | |||
810 | rxb->page = NULL; | 811 | rxb->page = NULL; |
811 | } | 812 | } |
812 | 813 | ||
813 | static u32 iwl_translate_rx_status(struct iwl_priv *priv, u32 decrypt_in) | 814 | static u32 iwlagn_translate_rx_status(struct iwl_priv *priv, u32 decrypt_in) |
814 | { | 815 | { |
815 | u32 decrypt_out = 0; | 816 | u32 decrypt_out = 0; |
816 | 817 | ||
@@ -912,7 +913,7 @@ static int iwlagn_calc_rssi(struct iwl_priv *priv, | |||
912 | 913 | ||
913 | /* Called for REPLY_RX (legacy ABG frames), or | 914 | /* Called for REPLY_RX (legacy ABG frames), or |
914 | * REPLY_RX_MPDU_CMD (HT high-throughput N frames). */ | 915 | * REPLY_RX_MPDU_CMD (HT high-throughput N frames). */ |
915 | static int iwl_rx_reply_rx(struct iwl_priv *priv, | 916 | static int iwlagn_rx_reply_rx(struct iwl_priv *priv, |
916 | struct iwl_rx_mem_buffer *rxb, | 917 | struct iwl_rx_mem_buffer *rxb, |
917 | struct iwl_device_cmd *cmd) | 918 | struct iwl_device_cmd *cmd) |
918 | { | 919 | { |
@@ -954,7 +955,7 @@ static int iwl_rx_reply_rx(struct iwl_priv *priv, | |||
954 | header = (struct ieee80211_hdr *)(pkt->u.raw + sizeof(*amsdu)); | 955 | header = (struct ieee80211_hdr *)(pkt->u.raw + sizeof(*amsdu)); |
955 | len = le16_to_cpu(amsdu->byte_count); | 956 | len = le16_to_cpu(amsdu->byte_count); |
956 | rx_pkt_status = *(__le32 *)(pkt->u.raw + sizeof(*amsdu) + len); | 957 | rx_pkt_status = *(__le32 *)(pkt->u.raw + sizeof(*amsdu) + len); |
957 | ampdu_status = iwl_translate_rx_status(priv, | 958 | ampdu_status = iwlagn_translate_rx_status(priv, |
958 | le32_to_cpu(rx_pkt_status)); | 959 | le32_to_cpu(rx_pkt_status)); |
959 | } | 960 | } |
960 | 961 | ||
@@ -1027,7 +1028,7 @@ static int iwl_rx_reply_rx(struct iwl_priv *priv, | |||
1027 | if (rate_n_flags & RATE_MCS_SGI_MSK) | 1028 | if (rate_n_flags & RATE_MCS_SGI_MSK) |
1028 | rx_status.flag |= RX_FLAG_SHORT_GI; | 1029 | rx_status.flag |= RX_FLAG_SHORT_GI; |
1029 | 1030 | ||
1030 | iwl_pass_packet_to_mac80211(priv, header, len, ampdu_status, | 1031 | iwlagn_pass_packet_to_mac80211(priv, header, len, ampdu_status, |
1031 | rxb, &rx_status); | 1032 | rxb, &rx_status); |
1032 | return 0; | 1033 | return 0; |
1033 | } | 1034 | } |
@@ -1045,12 +1046,14 @@ void iwl_setup_rx_handlers(struct iwl_priv *priv) | |||
1045 | 1046 | ||
1046 | handlers = priv->rx_handlers; | 1047 | handlers = priv->rx_handlers; |
1047 | 1048 | ||
1048 | handlers[REPLY_ERROR] = iwl_rx_reply_error; | 1049 | handlers[REPLY_ERROR] = iwlagn_rx_reply_error; |
1049 | handlers[CHANNEL_SWITCH_NOTIFICATION] = iwl_rx_csa; | 1050 | handlers[CHANNEL_SWITCH_NOTIFICATION] = iwlagn_rx_csa; |
1050 | handlers[SPECTRUM_MEASURE_NOTIFICATION] = iwl_rx_spectrum_measure_notif; | 1051 | handlers[SPECTRUM_MEASURE_NOTIFICATION] = |
1051 | handlers[PM_SLEEP_NOTIFICATION] = iwl_rx_pm_sleep_notif; | 1052 | iwlagn_rx_spectrum_measure_notif; |
1052 | handlers[PM_DEBUG_STATISTIC_NOTIFIC] = iwl_rx_pm_debug_statistics_notif; | 1053 | handlers[PM_SLEEP_NOTIFICATION] = iwlagn_rx_pm_sleep_notif; |
1053 | handlers[BEACON_NOTIFICATION] = iwl_rx_beacon_notif; | 1054 | handlers[PM_DEBUG_STATISTIC_NOTIFIC] = |
1055 | iwlagn_rx_pm_debug_statistics_notif; | ||
1056 | handlers[BEACON_NOTIFICATION] = iwlagn_rx_beacon_notif; | ||
1054 | handlers[REPLY_ADD_STA] = iwl_add_sta_callback; | 1057 | handlers[REPLY_ADD_STA] = iwl_add_sta_callback; |
1055 | 1058 | ||
1056 | /* | 1059 | /* |
@@ -1058,20 +1061,22 @@ void iwl_setup_rx_handlers(struct iwl_priv *priv) | |||
1058 | * statistics request from the host as well as for the periodic | 1061 | * statistics request from the host as well as for the periodic |
1059 | * statistics notifications (after received beacons) from the uCode. | 1062 | * statistics notifications (after received beacons) from the uCode. |
1060 | */ | 1063 | */ |
1061 | handlers[REPLY_STATISTICS_CMD] = iwl_rx_reply_statistics; | 1064 | handlers[REPLY_STATISTICS_CMD] = iwlagn_rx_reply_statistics; |
1062 | handlers[STATISTICS_NOTIFICATION] = iwl_rx_statistics; | 1065 | handlers[STATISTICS_NOTIFICATION] = iwlagn_rx_statistics; |
1063 | 1066 | ||
1064 | iwl_setup_rx_scan_handlers(priv); | 1067 | iwl_setup_rx_scan_handlers(priv); |
1065 | 1068 | ||
1066 | handlers[CARD_STATE_NOTIFICATION] = iwl_rx_card_state_notif; | 1069 | handlers[CARD_STATE_NOTIFICATION] = iwlagn_rx_card_state_notif; |
1067 | handlers[MISSED_BEACONS_NOTIFICATION] = iwl_rx_missed_beacon_notif; | 1070 | handlers[MISSED_BEACONS_NOTIFICATION] = |
1071 | iwlagn_rx_missed_beacon_notif; | ||
1068 | 1072 | ||
1069 | /* Rx handlers */ | 1073 | /* Rx handlers */ |
1070 | handlers[REPLY_RX_PHY_CMD] = iwl_rx_reply_rx_phy; | 1074 | handlers[REPLY_RX_PHY_CMD] = iwlagn_rx_reply_rx_phy; |
1071 | handlers[REPLY_RX_MPDU_CMD] = iwl_rx_reply_rx; | 1075 | handlers[REPLY_RX_MPDU_CMD] = iwlagn_rx_reply_rx; |
1072 | 1076 | ||
1073 | /* block ack */ | 1077 | /* block ack */ |
1074 | handlers[REPLY_COMPRESSED_BA] = iwlagn_rx_reply_compressed_ba; | 1078 | handlers[REPLY_COMPRESSED_BA] = |
1079 | iwlagn_rx_reply_compressed_ba; | ||
1075 | 1080 | ||
1076 | /* init calibration handlers */ | 1081 | /* init calibration handlers */ |
1077 | priv->rx_handlers[CALIBRATION_RES_NOTIFICATION] = | 1082 | priv->rx_handlers[CALIBRATION_RES_NOTIFICATION] = |