aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-rx.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-rx.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-rx.c b/drivers/net/wireless/iwlwifi/iwl-rx.c
index f67931d408b6..8e314003b63a 100644
--- a/drivers/net/wireless/iwlwifi/iwl-rx.c
+++ b/drivers/net/wireless/iwlwifi/iwl-rx.c
@@ -170,7 +170,7 @@ static bool iwl_good_ack_health(struct iwl_priv *priv,
170 int actual_delta, expected_delta, ba_timeout_delta; 170 int actual_delta, expected_delta, ba_timeout_delta;
171 struct statistics_tx *old; 171 struct statistics_tx *old;
172 172
173 if (priv->_agn.agg_tids_count) 173 if (priv->agg_tids_count)
174 return true; 174 return true;
175 175
176 old = &priv->statistics.tx; 176 old = &priv->statistics.tx;
@@ -592,8 +592,8 @@ static void iwl_rx_reply_rx_phy(struct iwl_priv *priv,
592{ 592{
593 struct iwl_rx_packet *pkt = rxb_addr(rxb); 593 struct iwl_rx_packet *pkt = rxb_addr(rxb);
594 594
595 priv->_agn.last_phy_res_valid = true; 595 priv->last_phy_res_valid = true;
596 memcpy(&priv->_agn.last_phy_res, pkt->u.raw, 596 memcpy(&priv->last_phy_res, pkt->u.raw,
597 sizeof(struct iwl_rx_phy_res)); 597 sizeof(struct iwl_rx_phy_res));
598} 598}
599 599
@@ -841,11 +841,11 @@ static void iwl_rx_reply_rx(struct iwl_priv *priv,
841 phy_res->cfg_phy_cnt + len); 841 phy_res->cfg_phy_cnt + len);
842 ampdu_status = le32_to_cpu(rx_pkt_status); 842 ampdu_status = le32_to_cpu(rx_pkt_status);
843 } else { 843 } else {
844 if (!priv->_agn.last_phy_res_valid) { 844 if (!priv->last_phy_res_valid) {
845 IWL_ERR(priv, "MPDU frame without cached PHY data\n"); 845 IWL_ERR(priv, "MPDU frame without cached PHY data\n");
846 return; 846 return;
847 } 847 }
848 phy_res = &priv->_agn.last_phy_res; 848 phy_res = &priv->last_phy_res;
849 amsdu = (struct iwl_rx_mpdu_res_start *)pkt->u.raw; 849 amsdu = (struct iwl_rx_mpdu_res_start *)pkt->u.raw;
850 header = (struct ieee80211_hdr *)(pkt->u.raw + sizeof(*amsdu)); 850 header = (struct ieee80211_hdr *)(pkt->u.raw + sizeof(*amsdu));
851 len = le16_to_cpu(amsdu->byte_count); 851 len = le16_to_cpu(amsdu->byte_count);
@@ -972,9 +972,9 @@ void iwl_setup_rx_handlers(struct iwl_priv *priv)
972 priv->rx_handlers[REPLY_TX] = iwlagn_rx_reply_tx; 972 priv->rx_handlers[REPLY_TX] = iwlagn_rx_reply_tx;
973 973
974 /* set up notification wait support */ 974 /* set up notification wait support */
975 spin_lock_init(&priv->_agn.notif_wait_lock); 975 spin_lock_init(&priv->notif_wait_lock);
976 INIT_LIST_HEAD(&priv->_agn.notif_waits); 976 INIT_LIST_HEAD(&priv->notif_waits);
977 init_waitqueue_head(&priv->_agn.notif_waitq); 977 init_waitqueue_head(&priv->notif_waitq);
978 978
979 /* Set up BT Rx handlers */ 979 /* Set up BT Rx handlers */
980 if (priv->cfg->lib->bt_rx_handler_setup) 980 if (priv->cfg->lib->bt_rx_handler_setup)
@@ -991,11 +991,11 @@ void iwl_rx_dispatch(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb)
991 * even if the RX handler consumes the RXB we have 991 * even if the RX handler consumes the RXB we have
992 * access to it in the notification wait entry. 992 * access to it in the notification wait entry.
993 */ 993 */
994 if (!list_empty(&priv->_agn.notif_waits)) { 994 if (!list_empty(&priv->notif_waits)) {
995 struct iwl_notification_wait *w; 995 struct iwl_notification_wait *w;
996 996
997 spin_lock(&priv->_agn.notif_wait_lock); 997 spin_lock(&priv->notif_wait_lock);
998 list_for_each_entry(w, &priv->_agn.notif_waits, list) { 998 list_for_each_entry(w, &priv->notif_waits, list) {
999 if (w->cmd != pkt->hdr.cmd) 999 if (w->cmd != pkt->hdr.cmd)
1000 continue; 1000 continue;
1001 IWL_DEBUG_RX(priv, 1001 IWL_DEBUG_RX(priv,
@@ -1006,9 +1006,9 @@ void iwl_rx_dispatch(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb)
1006 if (w->fn) 1006 if (w->fn)
1007 w->fn(priv, pkt, w->fn_data); 1007 w->fn(priv, pkt, w->fn_data);
1008 } 1008 }
1009 spin_unlock(&priv->_agn.notif_wait_lock); 1009 spin_unlock(&priv->notif_wait_lock);
1010 1010
1011 wake_up_all(&priv->_agn.notif_waitq); 1011 wake_up_all(&priv->notif_waitq);
1012 } 1012 }
1013 1013
1014 if (priv->pre_rx_handler) 1014 if (priv->pre_rx_handler)