aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-05-29 04:34:55 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-06-03 15:00:20 -0400
commit885ba202cabd90b8ade1fe59185dc96ed4d69e02 (patch)
treee39db12bce33d726492b6226a7f24066aaa3775e /drivers/net/wireless/iwlwifi
parent4a4a9e81aed702421ef3e782f82d4e929fb81796 (diff)
iwlwifi: remove 4965 from alive_resp structures
This patch removes 4965 from alive_resp and init_alivie_resp. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-commands.h10
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl4965-base.c16
3 files changed, 15 insertions, 15 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h
index 5b9e9bf0ac8f..afd0f7d5b145 100644
--- a/drivers/net/wireless/iwlwifi/iwl-commands.h
+++ b/drivers/net/wireless/iwlwifi/iwl-commands.h
@@ -373,7 +373,7 @@ struct iwl4965_tx_power_db {
373 * 3) Tx gain compensation to balance 4965's 2 Tx chains for MIMO operation, 373 * 3) Tx gain compensation to balance 4965's 2 Tx chains for MIMO operation,
374 * for each of 5 frequency ranges. 374 * for each of 5 frequency ranges.
375 */ 375 */
376struct iwl4965_init_alive_resp { 376struct iwl_init_alive_resp {
377 u8 ucode_minor; 377 u8 ucode_minor;
378 u8 ucode_major; 378 u8 ucode_major;
379 __le16 reserved1; 379 __le16 reserved1;
@@ -449,7 +449,7 @@ struct iwl4965_init_alive_resp {
449 * The Linux driver can print both logs to the system log when a uCode error 449 * The Linux driver can print both logs to the system log when a uCode error
450 * occurs. 450 * occurs.
451 */ 451 */
452struct iwl4965_alive_resp { 452struct iwl_alive_resp {
453 u8 ucode_minor; 453 u8 ucode_minor;
454 u8 ucode_major; 454 u8 ucode_major;
455 __le16 reserved1; 455 __le16 reserved1;
@@ -473,7 +473,7 @@ union tsf {
473/* 473/*
474 * REPLY_ERROR = 0x2 (response only, not a command) 474 * REPLY_ERROR = 0x2 (response only, not a command)
475 */ 475 */
476struct iwl4965_error_resp { 476struct iwl_error_resp {
477 __le32 error_type; 477 __le32 error_type;
478 u8 cmd_id; 478 u8 cmd_id;
479 u8 reserved1; 479 u8 reserved1;
@@ -2861,12 +2861,12 @@ struct iwl_rx_packet {
2861 __le32 len; 2861 __le32 len;
2862 struct iwl_cmd_header hdr; 2862 struct iwl_cmd_header hdr;
2863 union { 2863 union {
2864 struct iwl4965_alive_resp alive_frame; 2864 struct iwl_alive_resp alive_frame;
2865 struct iwl4965_rx_frame rx_frame; 2865 struct iwl4965_rx_frame rx_frame;
2866 struct iwl4965_tx_resp tx_resp; 2866 struct iwl4965_tx_resp tx_resp;
2867 struct iwl4965_spectrum_notification spectrum_notif; 2867 struct iwl4965_spectrum_notification spectrum_notif;
2868 struct iwl4965_csa_notification csa_notif; 2868 struct iwl4965_csa_notification csa_notif;
2869 struct iwl4965_error_resp err_resp; 2869 struct iwl_error_resp err_resp;
2870 struct iwl4965_card_state_notif card_state_notif; 2870 struct iwl4965_card_state_notif card_state_notif;
2871 struct iwl4965_beacon_notif beacon_status; 2871 struct iwl4965_beacon_notif beacon_status;
2872 struct iwl4965_add_sta_resp add_sta; 2872 struct iwl4965_add_sta_resp add_sta;
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index 342c6a5983bb..da4d60661572 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -1035,8 +1035,8 @@ struct iwl_priv {
1035 1035
1036 /* 1st responses from initialize and runtime uCode images. 1036 /* 1st responses from initialize and runtime uCode images.
1037 * 4965's initialize alive response contains some calibration data. */ 1037 * 4965's initialize alive response contains some calibration data. */
1038 struct iwl4965_init_alive_resp card_alive_init; 1038 struct iwl_init_alive_resp card_alive_init;
1039 struct iwl4965_alive_resp card_alive; 1039 struct iwl_alive_resp card_alive;
1040#ifdef CONFIG_IWLWIFI_RFKILL 1040#ifdef CONFIG_IWLWIFI_RFKILL
1041 struct iwl_rfkill_mngr rfkill_mngr; 1041 struct iwl_rfkill_mngr rfkill_mngr;
1042#endif 1042#endif
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c
index 5a5306de2956..ee9fe56552cb 100644
--- a/drivers/net/wireless/iwlwifi/iwl4965-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c
@@ -1927,11 +1927,11 @@ static void iwl4965_rx_reply_tx(struct iwl_priv *priv,
1927} 1927}
1928 1928
1929 1929
1930static void iwl4965_rx_reply_alive(struct iwl_priv *priv, 1930static void iwl_rx_reply_alive(struct iwl_priv *priv,
1931 struct iwl_rx_mem_buffer *rxb) 1931 struct iwl_rx_mem_buffer *rxb)
1932{ 1932{
1933 struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data; 1933 struct iwl_rx_packet *pkt = (struct iwl_rx_packet *)rxb->skb->data;
1934 struct iwl4965_alive_resp *palive; 1934 struct iwl_alive_resp *palive;
1935 struct delayed_work *pwork; 1935 struct delayed_work *pwork;
1936 1936
1937 palive = &pkt->u.alive_frame; 1937 palive = &pkt->u.alive_frame;
@@ -1945,12 +1945,12 @@ static void iwl4965_rx_reply_alive(struct iwl_priv *priv,
1945 IWL_DEBUG_INFO("Initialization Alive received.\n"); 1945 IWL_DEBUG_INFO("Initialization Alive received.\n");
1946 memcpy(&priv->card_alive_init, 1946 memcpy(&priv->card_alive_init,
1947 &pkt->u.alive_frame, 1947 &pkt->u.alive_frame,
1948 sizeof(struct iwl4965_init_alive_resp)); 1948 sizeof(struct iwl_init_alive_resp));
1949 pwork = &priv->init_alive_start; 1949 pwork = &priv->init_alive_start;
1950 } else { 1950 } else {
1951 IWL_DEBUG_INFO("Runtime Alive received.\n"); 1951 IWL_DEBUG_INFO("Runtime Alive received.\n");
1952 memcpy(&priv->card_alive, &pkt->u.alive_frame, 1952 memcpy(&priv->card_alive, &pkt->u.alive_frame,
1953 sizeof(struct iwl4965_alive_resp)); 1953 sizeof(struct iwl_alive_resp));
1954 pwork = &priv->alive_start; 1954 pwork = &priv->alive_start;
1955 } 1955 }
1956 1956
@@ -2279,7 +2279,7 @@ static void iwl4965_rx_card_state_notif(struct iwl_priv *priv,
2279 */ 2279 */
2280static void iwl4965_setup_rx_handlers(struct iwl_priv *priv) 2280static void iwl4965_setup_rx_handlers(struct iwl_priv *priv)
2281{ 2281{
2282 priv->rx_handlers[REPLY_ALIVE] = iwl4965_rx_reply_alive; 2282 priv->rx_handlers[REPLY_ALIVE] = iwl_rx_reply_alive;
2283 priv->rx_handlers[REPLY_ADD_STA] = iwl4965_rx_reply_add_sta; 2283 priv->rx_handlers[REPLY_ADD_STA] = iwl4965_rx_reply_add_sta;
2284 priv->rx_handlers[REPLY_ERROR] = iwl4965_rx_reply_error; 2284 priv->rx_handlers[REPLY_ERROR] = iwl4965_rx_reply_error;
2285 priv->rx_handlers[CHANNEL_SWITCH_NOTIFICATION] = iwl4965_rx_csa; 2285 priv->rx_handlers[CHANNEL_SWITCH_NOTIFICATION] = iwl4965_rx_csa;
@@ -3423,7 +3423,7 @@ static void __iwl4965_down(struct iwl_priv *priv)
3423 priv->cfg->ops->lib->free_shared_mem(priv); 3423 priv->cfg->ops->lib->free_shared_mem(priv);
3424 3424
3425 exit: 3425 exit:
3426 memset(&priv->card_alive, 0, sizeof(struct iwl4965_alive_resp)); 3426 memset(&priv->card_alive, 0, sizeof(struct iwl_alive_resp));
3427 3427
3428 if (priv->ibss_beacon) 3428 if (priv->ibss_beacon)
3429 dev_kfree_skb(priv->ibss_beacon); 3429 dev_kfree_skb(priv->ibss_beacon);
@@ -5075,7 +5075,7 @@ static ssize_t show_version(struct device *d,
5075 struct device_attribute *attr, char *buf) 5075 struct device_attribute *attr, char *buf)
5076{ 5076{
5077 struct iwl_priv *priv = d->driver_data; 5077 struct iwl_priv *priv = d->driver_data;
5078 struct iwl4965_alive_resp *palive = &priv->card_alive; 5078 struct iwl_alive_resp *palive = &priv->card_alive;
5079 5079
5080 if (palive->is_valid) 5080 if (palive->is_valid)
5081 return sprintf(buf, "fw version: 0x%01X.0x%01X.0x%01X.0x%01X\n" 5081 return sprintf(buf, "fw version: 0x%01X.0x%01X.0x%01X.0x%01X\n"