diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-rx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-rx.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c index 2b8d40b37a1c..e002c8b56c49 100644 --- a/drivers/net/wireless/iwlwifi/iwl-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-rx.c | |||
@@ -406,7 +406,6 @@ void iwl_rx_queue_reset(struct iwl_priv *priv, struct iwl_rx_queue *rxq) | |||
406 | rxq->free_count = 0; | 406 | rxq->free_count = 0; |
407 | spin_unlock_irqrestore(&rxq->lock, flags); | 407 | spin_unlock_irqrestore(&rxq->lock, flags); |
408 | } | 408 | } |
409 | EXPORT_SYMBOL(iwl_rx_queue_reset); | ||
410 | 409 | ||
411 | int iwl_rx_init(struct iwl_priv *priv, struct iwl_rx_queue *rxq) | 410 | int iwl_rx_init(struct iwl_priv *priv, struct iwl_rx_queue *rxq) |
412 | { | 411 | { |
@@ -646,7 +645,7 @@ static void iwl_dbg_report_frame(struct iwl_priv *priv, | |||
646 | u32 tsf_low; | 645 | u32 tsf_low; |
647 | int rssi; | 646 | int rssi; |
648 | 647 | ||
649 | if (likely(!(priv->debug_level & IWL_DL_RX))) | 648 | if (likely(!(iwl_debug_level & IWL_DL_RX))) |
650 | return; | 649 | return; |
651 | 650 | ||
652 | /* MAC header */ | 651 | /* MAC header */ |
@@ -742,7 +741,7 @@ static void iwl_dbg_report_frame(struct iwl_priv *priv, | |||
742 | } | 741 | } |
743 | } | 742 | } |
744 | if (print_dump) | 743 | if (print_dump) |
745 | iwl_print_hex_dump(priv, IWL_DL_RX, header, length); | 744 | iwl_print_hex_dump(IWL_DL_RX, header, length); |
746 | } | 745 | } |
747 | #endif | 746 | #endif |
748 | 747 | ||
@@ -927,12 +926,13 @@ static void iwl_pass_packet_to_mac80211(struct iwl_priv *priv, | |||
927 | hdr = (struct ieee80211_hdr *)rxb->skb->data; | 926 | hdr = (struct ieee80211_hdr *)rxb->skb->data; |
928 | 927 | ||
929 | /* in case of HW accelerated crypto and bad decryption, drop */ | 928 | /* in case of HW accelerated crypto and bad decryption, drop */ |
930 | if (!priv->hw_params.sw_crypto && | 929 | if (!priv->cfg->mod_params->sw_crypto && |
931 | iwl_set_decrypted_flag(priv, hdr, ampdu_status, stats)) | 930 | iwl_set_decrypted_flag(priv, hdr, ampdu_status, stats)) |
932 | return; | 931 | return; |
933 | 932 | ||
934 | iwl_update_rx_stats(priv, le16_to_cpu(hdr->frame_control), len); | 933 | iwl_update_rx_stats(priv, le16_to_cpu(hdr->frame_control), len); |
935 | ieee80211_rx_irqsafe(priv->hw, rxb->skb, stats); | 934 | memcpy(IEEE80211_SKB_RXCB(rxb->skb), stats, sizeof(*stats)); |
935 | ieee80211_rx_irqsafe(priv->hw, rxb->skb); | ||
936 | priv->alloc_rxb_skb--; | 936 | priv->alloc_rxb_skb--; |
937 | rxb->skb = NULL; | 937 | rxb->skb = NULL; |
938 | } | 938 | } |
@@ -1060,11 +1060,11 @@ void iwl_rx_reply_rx(struct iwl_priv *priv, | |||
1060 | 1060 | ||
1061 | /* Set "1" to report good data frames in groups of 100 */ | 1061 | /* Set "1" to report good data frames in groups of 100 */ |
1062 | #ifdef CONFIG_IWLWIFI_DEBUG | 1062 | #ifdef CONFIG_IWLWIFI_DEBUG |
1063 | if (unlikely(priv->debug_level & IWL_DL_RX)) | 1063 | if (unlikely(iwl_debug_level & IWL_DL_RX)) |
1064 | iwl_dbg_report_frame(priv, rx_start, len, header, 1); | 1064 | iwl_dbg_report_frame(priv, rx_start, len, header, 1); |
1065 | #endif | 1065 | #endif |
1066 | IWL_DEBUG_STATS_LIMIT(priv, "Rssi %d, noise %d, qual %d, TSF %llu\n", | 1066 | IWL_DEBUG_STATS_LIMIT(priv, "Rssi %d, noise %d, qual %d, TSF %llu\n", |
1067 | rx_status.signal, rx_status.noise, rx_status.signal, | 1067 | rx_status.signal, rx_status.noise, rx_status.qual, |
1068 | (unsigned long long)rx_status.mactime); | 1068 | (unsigned long long)rx_status.mactime); |
1069 | 1069 | ||
1070 | /* | 1070 | /* |