diff options
author | Don Fry <donald.h.fry@intel.com> | 2011-11-28 19:13:19 -0500 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-12-02 11:23:28 -0500 |
commit | dd5fe1046cb07d2a6665b6dbbfc6989b39ae063b (patch) | |
tree | 83d8f9c06d870847a6f817581416c915092a89f1 /drivers/net/wireless/iwlwifi/iwl-agn-rx.c | |
parent | 3d6acefc0a24bf90746c1f259e9d65d1ed7ea5e2 (diff) |
iwlwifi: move ucode notification from iwl_priv to iwl_shared
Move the notification structures for ucode operations from the
iwl_priv structure to the iwl_shared structure, with associated
code changes.
Signed-off-by: Don Fry <donald.h.fry@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-rx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rx.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rx.c b/drivers/net/wireless/iwlwifi/iwl-agn-rx.c index 087fd52e572..90c55ea4cc3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rx.c | |||
@@ -1131,9 +1131,9 @@ void iwl_setup_rx_handlers(struct iwl_priv *priv) | |||
1131 | priv->rx_handlers[REPLY_TX] = iwlagn_rx_reply_tx; | 1131 | priv->rx_handlers[REPLY_TX] = iwlagn_rx_reply_tx; |
1132 | 1132 | ||
1133 | /* set up notification wait support */ | 1133 | /* set up notification wait support */ |
1134 | spin_lock_init(&priv->notif_wait_lock); | 1134 | spin_lock_init(&priv->shrd->notif_wait_lock); |
1135 | INIT_LIST_HEAD(&priv->notif_waits); | 1135 | INIT_LIST_HEAD(&priv->shrd->notif_waits); |
1136 | init_waitqueue_head(&priv->notif_waitq); | 1136 | init_waitqueue_head(&priv->shrd->notif_waitq); |
1137 | 1137 | ||
1138 | /* Set up BT Rx handlers */ | 1138 | /* Set up BT Rx handlers */ |
1139 | if (priv->cfg->lib->bt_rx_handler_setup) | 1139 | if (priv->cfg->lib->bt_rx_handler_setup) |
@@ -1152,11 +1152,11 @@ int iwl_rx_dispatch(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb, | |||
1152 | * even if the RX handler consumes the RXB we have | 1152 | * even if the RX handler consumes the RXB we have |
1153 | * access to it in the notification wait entry. | 1153 | * access to it in the notification wait entry. |
1154 | */ | 1154 | */ |
1155 | if (!list_empty(&priv->notif_waits)) { | 1155 | if (!list_empty(&priv->shrd->notif_waits)) { |
1156 | struct iwl_notification_wait *w; | 1156 | struct iwl_notification_wait *w; |
1157 | 1157 | ||
1158 | spin_lock(&priv->notif_wait_lock); | 1158 | spin_lock(&priv->shrd->notif_wait_lock); |
1159 | list_for_each_entry(w, &priv->notif_waits, list) { | 1159 | list_for_each_entry(w, &priv->shrd->notif_waits, list) { |
1160 | if (w->cmd != pkt->hdr.cmd) | 1160 | if (w->cmd != pkt->hdr.cmd) |
1161 | continue; | 1161 | continue; |
1162 | IWL_DEBUG_RX(priv, | 1162 | IWL_DEBUG_RX(priv, |
@@ -1167,9 +1167,9 @@ int iwl_rx_dispatch(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb, | |||
1167 | if (w->fn) | 1167 | if (w->fn) |
1168 | w->fn(priv, pkt, w->fn_data); | 1168 | w->fn(priv, pkt, w->fn_data); |
1169 | } | 1169 | } |
1170 | spin_unlock(&priv->notif_wait_lock); | 1170 | spin_unlock(&priv->shrd->notif_wait_lock); |
1171 | 1171 | ||
1172 | wake_up_all(&priv->notif_waitq); | 1172 | wake_up_all(&priv->shrd->notif_waitq); |
1173 | } | 1173 | } |
1174 | 1174 | ||
1175 | if (priv->pre_rx_handler) | 1175 | if (priv->pre_rx_handler) |