aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-12-11 13:33:40 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-12-12 14:45:41 -0500
commit2aa6ab86bc475a115f56645591d2413981846509 (patch)
tree0229ab7aabe3c285caacd38ec947b51a36496cc1 /drivers/net/wireless/iwlwifi/iwl-agn.c
parentb5047f78664fbcc18d67dafbb45bf62b310f9b0a (diff)
iwlwifi: remove 4965 from common uCode API structures
This patch removes 4965 from common uCode API structures. Also updates iwlagn commands with 3945 specific RX command in preparation for 3945 port. 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-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index cc4b6eba8a11..41fc41b00c3d 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -310,7 +310,7 @@ void iwl_update_chain_flags(struct iwl_priv *priv)
310 310
311static int iwl_send_bt_config(struct iwl_priv *priv) 311static int iwl_send_bt_config(struct iwl_priv *priv)
312{ 312{
313 struct iwl4965_bt_cmd bt_cmd = { 313 struct iwl_bt_cmd bt_cmd = {
314 .flags = 3, 314 .flags = 3,
315 .lead_time = 0xAA, 315 .lead_time = 0xAA,
316 .max_kill = 1, 316 .max_kill = 1,
@@ -319,7 +319,7 @@ static int iwl_send_bt_config(struct iwl_priv *priv)
319 }; 319 };
320 320
321 return iwl_send_cmd_pdu(priv, REPLY_BT_CONFIG, 321 return iwl_send_cmd_pdu(priv, REPLY_BT_CONFIG,
322 sizeof(struct iwl4965_bt_cmd), &bt_cmd); 322 sizeof(struct iwl_bt_cmd), &bt_cmd);
323} 323}
324 324
325static void iwl_clear_free_frames(struct iwl_priv *priv) 325static void iwl_clear_free_frames(struct iwl_priv *priv)
@@ -857,7 +857,7 @@ static void iwl_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb)
857{ 857{
858 struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; 858 struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data;
859 struct iwl_rxon_cmd *rxon = (void *)&priv->active_rxon; 859 struct iwl_rxon_cmd *rxon = (void *)&priv->active_rxon;
860 struct iwl4965_csa_notification *csa = &(pkt->u.csa_notif); 860 struct iwl_csa_notification *csa = &(pkt->u.csa_notif);
861 IWL_DEBUG_11H("CSA notif: channel %d, status %d\n", 861 IWL_DEBUG_11H("CSA notif: channel %d, status %d\n",
862 le16_to_cpu(csa->channel), le32_to_cpu(csa->status)); 862 le16_to_cpu(csa->channel), le32_to_cpu(csa->status));
863 rxon->channel = csa->channel; 863 rxon->channel = csa->channel;
@@ -869,7 +869,7 @@ static void iwl_rx_pm_sleep_notif(struct iwl_priv *priv,
869{ 869{
870#ifdef CONFIG_IWLWIFI_DEBUG 870#ifdef CONFIG_IWLWIFI_DEBUG
871 struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; 871 struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data;
872 struct iwl4965_sleep_notification *sleep = &(pkt->u.sleep_notif); 872 struct iwl_sleep_notification *sleep = &(pkt->u.sleep_notif);
873 IWL_DEBUG_RX("sleep mode: %d, src: %d\n", 873 IWL_DEBUG_RX("sleep mode: %d, src: %d\n",
874 sleep->pm_sleep_mode, sleep->pm_wakeup_src); 874 sleep->pm_sleep_mode, sleep->pm_wakeup_src);
875#endif 875#endif
@@ -939,7 +939,8 @@ static void iwl_rx_beacon_notif(struct iwl_priv *priv,
939{ 939{
940#ifdef CONFIG_IWLWIFI_DEBUG 940#ifdef CONFIG_IWLWIFI_DEBUG
941 struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; 941 struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data;
942 struct iwl4965_beacon_notif *beacon = &(pkt->u.beacon_status); 942 struct iwl4965_beacon_notif *beacon =
943 (struct iwl4965_beacon_notif *)pkt->u.raw;
943 u8 rate = iwl_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); 944 u8 rate = iwl_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags);
944 945
945 IWL_DEBUG_RX("beacon status %x retries %d iss %d " 946 IWL_DEBUG_RX("beacon status %x retries %d iss %d "