diff options
author | Christoph Hellwig <hch@lst.de> | 2007-10-25 05:15:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:03:25 -0500 |
commit | c8b0e6e19c0bcd30689cb6c6f64eb140f5d61894 (patch) | |
tree | 5c9ef861d391a3d8d56f3e24cd9920f19161f7d2 /drivers/net/wireless/iwlwifi/iwl4965-base.c | |
parent | 5d08cd1dfdc57dc834c47eb9f023fcf861f3d6bf (diff) |
iwlwifi: cleanup Kconfig and ifdefs to split 3945 and 4965
Currently the iwl3945 & iwl4965 drivers share some common Kconfig
symbols. This split it up into options for the individual drivers
and gets rid of all the CONFIG_IWLWIFI cruft.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl4965-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl4965-base.c | 168 |
1 files changed, 84 insertions, 84 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl4965-base.c b/drivers/net/wireless/iwlwifi/iwl4965-base.c index 1e7b589ac86..6fb49b0738a 100644 --- a/drivers/net/wireless/iwlwifi/iwl4965-base.c +++ b/drivers/net/wireless/iwlwifi/iwl4965-base.c | |||
@@ -59,7 +59,7 @@ | |||
59 | #include "iwl-4965.h" | 59 | #include "iwl-4965.h" |
60 | #include "iwl-helpers.h" | 60 | #include "iwl-helpers.h" |
61 | 61 | ||
62 | #ifdef CONFIG_IWLWIFI_DEBUG | 62 | #ifdef CONFIG_IWL4965_DEBUG |
63 | u32 iwl_debug_level; | 63 | u32 iwl_debug_level; |
64 | #endif | 64 | #endif |
65 | 65 | ||
@@ -88,13 +88,13 @@ int iwl_param_queues_num = IWL_MAX_NUM_QUEUES; | |||
88 | 88 | ||
89 | #define DRV_DESCRIPTION "Intel(R) Wireless WiFi Link 4965AGN driver for Linux" | 89 | #define DRV_DESCRIPTION "Intel(R) Wireless WiFi Link 4965AGN driver for Linux" |
90 | 90 | ||
91 | #ifdef CONFIG_IWLWIFI_DEBUG | 91 | #ifdef CONFIG_IWL4965_DEBUG |
92 | #define VD "d" | 92 | #define VD "d" |
93 | #else | 93 | #else |
94 | #define VD | 94 | #define VD |
95 | #endif | 95 | #endif |
96 | 96 | ||
97 | #ifdef CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT | 97 | #ifdef CONFIG_IWL4965_SPECTRUM_MEASUREMENT |
98 | #define VS "s" | 98 | #define VS "s" |
99 | #else | 99 | #else |
100 | #define VS | 100 | #define VS |
@@ -179,7 +179,7 @@ static const char *iwl_escape_essid(const char *essid, u8 essid_len) | |||
179 | 179 | ||
180 | static void iwl_print_hex_dump(int level, void *p, u32 len) | 180 | static void iwl_print_hex_dump(int level, void *p, u32 len) |
181 | { | 181 | { |
182 | #ifdef CONFIG_IWLWIFI_DEBUG | 182 | #ifdef CONFIG_IWL4965_DEBUG |
183 | if (!(iwl_debug_level & level)) | 183 | if (!(iwl_debug_level & level)) |
184 | return; | 184 | return; |
185 | 185 | ||
@@ -507,12 +507,12 @@ u8 iwl_add_station(struct iwl_priv *priv, const u8 *addr, int is_ap, u8 flags) | |||
507 | station->sta.sta.sta_id = index; | 507 | station->sta.sta.sta_id = index; |
508 | station->sta.station_flags = 0; | 508 | station->sta.station_flags = 0; |
509 | 509 | ||
510 | #ifdef CONFIG_IWLWIFI_HT | 510 | #ifdef CONFIG_IWL4965_HT |
511 | /* BCAST station and IBSS stations do not work in HT mode */ | 511 | /* BCAST station and IBSS stations do not work in HT mode */ |
512 | if (index != priv->hw_setting.bcast_sta_id && | 512 | if (index != priv->hw_setting.bcast_sta_id && |
513 | priv->iw_mode != IEEE80211_IF_TYPE_IBSS) | 513 | priv->iw_mode != IEEE80211_IF_TYPE_IBSS) |
514 | iwl4965_set_ht_add_station(priv, index); | 514 | iwl4965_set_ht_add_station(priv, index); |
515 | #endif /*CONFIG_IWLWIFI_HT*/ | 515 | #endif /*CONFIG_IWL4965_HT*/ |
516 | 516 | ||
517 | spin_unlock_irqrestore(&priv->sta_lock, flags_spin); | 517 | spin_unlock_irqrestore(&priv->sta_lock, flags_spin); |
518 | iwl_send_add_station(priv, &station->sta, flags); | 518 | iwl_send_add_station(priv, &station->sta, flags); |
@@ -1112,13 +1112,13 @@ static int iwl_commit_rxon(struct iwl_priv *priv) | |||
1112 | /* station table will be cleared */ | 1112 | /* station table will be cleared */ |
1113 | priv->assoc_station_added = 0; | 1113 | priv->assoc_station_added = 0; |
1114 | 1114 | ||
1115 | #ifdef CONFIG_IWLWIFI_SENSITIVITY | 1115 | #ifdef CONFIG_IWL4965_SENSITIVITY |
1116 | priv->sensitivity_data.state = IWL_SENS_CALIB_NEED_REINIT; | 1116 | priv->sensitivity_data.state = IWL_SENS_CALIB_NEED_REINIT; |
1117 | if (!priv->error_recovering) | 1117 | if (!priv->error_recovering) |
1118 | priv->start_calib = 0; | 1118 | priv->start_calib = 0; |
1119 | 1119 | ||
1120 | iwl4965_init_sensitivity(priv, CMD_ASYNC, 1); | 1120 | iwl4965_init_sensitivity(priv, CMD_ASYNC, 1); |
1121 | #endif /* CONFIG_IWLWIFI_SENSITIVITY */ | 1121 | #endif /* CONFIG_IWL4965_SENSITIVITY */ |
1122 | 1122 | ||
1123 | /* If we are currently associated and the new config requires | 1123 | /* If we are currently associated and the new config requires |
1124 | * an RXON_ASSOC and the new config wants the associated mask enabled, | 1124 | * an RXON_ASSOC and the new config wants the associated mask enabled, |
@@ -1162,13 +1162,13 @@ static int iwl_commit_rxon(struct iwl_priv *priv) | |||
1162 | 1162 | ||
1163 | iwl_clear_stations_table(priv); | 1163 | iwl_clear_stations_table(priv); |
1164 | 1164 | ||
1165 | #ifdef CONFIG_IWLWIFI_SENSITIVITY | 1165 | #ifdef CONFIG_IWL4965_SENSITIVITY |
1166 | if (!priv->error_recovering) | 1166 | if (!priv->error_recovering) |
1167 | priv->start_calib = 0; | 1167 | priv->start_calib = 0; |
1168 | 1168 | ||
1169 | priv->sensitivity_data.state = IWL_SENS_CALIB_NEED_REINIT; | 1169 | priv->sensitivity_data.state = IWL_SENS_CALIB_NEED_REINIT; |
1170 | iwl4965_init_sensitivity(priv, CMD_ASYNC, 1); | 1170 | iwl4965_init_sensitivity(priv, CMD_ASYNC, 1); |
1171 | #endif /* CONFIG_IWLWIFI_SENSITIVITY */ | 1171 | #endif /* CONFIG_IWL4965_SENSITIVITY */ |
1172 | 1172 | ||
1173 | memcpy(active_rxon, &priv->staging_rxon, sizeof(*active_rxon)); | 1173 | memcpy(active_rxon, &priv->staging_rxon, sizeof(*active_rxon)); |
1174 | 1174 | ||
@@ -1635,7 +1635,7 @@ done: | |||
1635 | * Misc. internal state and helper functions | 1635 | * Misc. internal state and helper functions |
1636 | * | 1636 | * |
1637 | ******************************************************************************/ | 1637 | ******************************************************************************/ |
1638 | #ifdef CONFIG_IWLWIFI_DEBUG | 1638 | #ifdef CONFIG_IWL4965_DEBUG |
1639 | 1639 | ||
1640 | /** | 1640 | /** |
1641 | * iwl_report_frame - dump frame to syslog during debug sessions | 1641 | * iwl_report_frame - dump frame to syslog during debug sessions |
@@ -1818,7 +1818,7 @@ static u16 iwl_supported_rate_to_ie(u8 *ie, u16 supported_rate, | |||
1818 | return ret_rates; | 1818 | return ret_rates; |
1819 | } | 1819 | } |
1820 | 1820 | ||
1821 | #ifdef CONFIG_IWLWIFI_HT | 1821 | #ifdef CONFIG_IWL4965_HT |
1822 | void static iwl_set_ht_capab(struct ieee80211_hw *hw, | 1822 | void static iwl_set_ht_capab(struct ieee80211_hw *hw, |
1823 | struct ieee80211_ht_capability *ht_cap, | 1823 | struct ieee80211_ht_capability *ht_cap, |
1824 | u8 use_wide_chan); | 1824 | u8 use_wide_chan); |
@@ -1916,7 +1916,7 @@ static u16 iwl_fill_probe_req(struct iwl_priv *priv, | |||
1916 | if (*pos > 0) | 1916 | if (*pos > 0) |
1917 | len += 2 + *pos; | 1917 | len += 2 + *pos; |
1918 | 1918 | ||
1919 | #ifdef CONFIG_IWLWIFI_HT | 1919 | #ifdef CONFIG_IWL4965_HT |
1920 | if (is_direct && priv->is_ht_enabled) { | 1920 | if (is_direct && priv->is_ht_enabled) { |
1921 | u8 use_wide_chan = 1; | 1921 | u8 use_wide_chan = 1; |
1922 | 1922 | ||
@@ -1929,7 +1929,7 @@ static u16 iwl_fill_probe_req(struct iwl_priv *priv, | |||
1929 | use_wide_chan); | 1929 | use_wide_chan); |
1930 | len += 2 + sizeof(struct ieee80211_ht_capability); | 1930 | len += 2 + sizeof(struct ieee80211_ht_capability); |
1931 | } | 1931 | } |
1932 | #endif /*CONFIG_IWLWIFI_HT */ | 1932 | #endif /*CONFIG_IWL4965_HT */ |
1933 | 1933 | ||
1934 | fill_end: | 1934 | fill_end: |
1935 | return (u16)len; | 1935 | return (u16)len; |
@@ -1938,7 +1938,7 @@ static u16 iwl_fill_probe_req(struct iwl_priv *priv, | |||
1938 | /* | 1938 | /* |
1939 | * QoS support | 1939 | * QoS support |
1940 | */ | 1940 | */ |
1941 | #ifdef CONFIG_IWLWIFI_QOS | 1941 | #ifdef CONFIG_IWL4965_QOS |
1942 | static int iwl_send_qos_params_command(struct iwl_priv *priv, | 1942 | static int iwl_send_qos_params_command(struct iwl_priv *priv, |
1943 | struct iwl_qosparam_cmd *qos) | 1943 | struct iwl_qosparam_cmd *qos) |
1944 | { | 1944 | { |
@@ -2055,10 +2055,10 @@ static void iwl_activate_qos(struct iwl_priv *priv, u8 force) | |||
2055 | priv->qos_data.def_qos_parm.qos_flags |= | 2055 | priv->qos_data.def_qos_parm.qos_flags |= |
2056 | QOS_PARAM_FLG_UPDATE_EDCA_MSK; | 2056 | QOS_PARAM_FLG_UPDATE_EDCA_MSK; |
2057 | 2057 | ||
2058 | #ifdef CONFIG_IWLWIFI_HT | 2058 | #ifdef CONFIG_IWL4965_HT |
2059 | if (priv->is_ht_enabled && priv->current_assoc_ht.is_ht) | 2059 | if (priv->is_ht_enabled && priv->current_assoc_ht.is_ht) |
2060 | priv->qos_data.def_qos_parm.qos_flags |= QOS_PARAM_FLG_TGN_MSK; | 2060 | priv->qos_data.def_qos_parm.qos_flags |= QOS_PARAM_FLG_TGN_MSK; |
2061 | #endif /* CONFIG_IWLWIFI_HT */ | 2061 | #endif /* CONFIG_IWL4965_HT */ |
2062 | 2062 | ||
2063 | spin_unlock_irqrestore(&priv->lock, flags); | 2063 | spin_unlock_irqrestore(&priv->lock, flags); |
2064 | 2064 | ||
@@ -2072,7 +2072,7 @@ static void iwl_activate_qos(struct iwl_priv *priv, u8 force) | |||
2072 | } | 2072 | } |
2073 | } | 2073 | } |
2074 | 2074 | ||
2075 | #endif /* CONFIG_IWLWIFI_QOS */ | 2075 | #endif /* CONFIG_IWL4965_QOS */ |
2076 | /* | 2076 | /* |
2077 | * Power management (not Tx power!) functions | 2077 | * Power management (not Tx power!) functions |
2078 | */ | 2078 | */ |
@@ -2835,7 +2835,7 @@ static int iwl_tx_skb(struct iwl_priv *priv, | |||
2835 | 2835 | ||
2836 | fc = le16_to_cpu(hdr->frame_control); | 2836 | fc = le16_to_cpu(hdr->frame_control); |
2837 | 2837 | ||
2838 | #ifdef CONFIG_IWLWIFI_DEBUG | 2838 | #ifdef CONFIG_IWL4965_DEBUG |
2839 | if (ieee80211_is_auth(fc)) | 2839 | if (ieee80211_is_auth(fc)) |
2840 | IWL_DEBUG_TX("Sending AUTH frame\n"); | 2840 | IWL_DEBUG_TX("Sending AUTH frame\n"); |
2841 | else if (ieee80211_is_assoc_request(fc)) | 2841 | else if (ieee80211_is_assoc_request(fc)) |
@@ -2873,13 +2873,13 @@ static int iwl_tx_skb(struct iwl_priv *priv, | |||
2873 | (hdr->seq_ctrl & | 2873 | (hdr->seq_ctrl & |
2874 | __constant_cpu_to_le16(IEEE80211_SCTL_FRAG)); | 2874 | __constant_cpu_to_le16(IEEE80211_SCTL_FRAG)); |
2875 | seq_number += 0x10; | 2875 | seq_number += 0x10; |
2876 | #ifdef CONFIG_IWLWIFI_HT | 2876 | #ifdef CONFIG_IWL4965_HT |
2877 | #ifdef CONFIG_IWLWIFI_HT_AGG | 2877 | #ifdef CONFIG_IWL4965_HT_AGG |
2878 | /* aggregation is on for this <sta,tid> */ | 2878 | /* aggregation is on for this <sta,tid> */ |
2879 | if (ctl->flags & IEEE80211_TXCTL_HT_MPDU_AGG) | 2879 | if (ctl->flags & IEEE80211_TXCTL_HT_MPDU_AGG) |
2880 | txq_id = priv->stations[sta_id].tid[tid].agg.txq_id; | 2880 | txq_id = priv->stations[sta_id].tid[tid].agg.txq_id; |
2881 | #endif /* CONFIG_IWLWIFI_HT_AGG */ | 2881 | #endif /* CONFIG_IWL4965_HT_AGG */ |
2882 | #endif /* CONFIG_IWLWIFI_HT */ | 2882 | #endif /* CONFIG_IWL4965_HT */ |
2883 | } | 2883 | } |
2884 | txq = &priv->txq[txq_id]; | 2884 | txq = &priv->txq[txq_id]; |
2885 | q = &txq->q; | 2885 | q = &txq->q; |
@@ -3289,7 +3289,7 @@ int is_duplicate_packet(struct iwl_priv *priv, struct ieee80211_hdr *header) | |||
3289 | return 1; | 3289 | return 1; |
3290 | } | 3290 | } |
3291 | 3291 | ||
3292 | #ifdef CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT | 3292 | #ifdef CONFIG_IWL4965_SPECTRUM_MEASUREMENT |
3293 | 3293 | ||
3294 | #include "iwl-spectrum.h" | 3294 | #include "iwl-spectrum.h" |
3295 | 3295 | ||
@@ -3497,8 +3497,8 @@ static int iwl_is_tx_success(u32 status) | |||
3497 | * Generic RX handler implementations | 3497 | * Generic RX handler implementations |
3498 | * | 3498 | * |
3499 | ******************************************************************************/ | 3499 | ******************************************************************************/ |
3500 | #ifdef CONFIG_IWLWIFI_HT | 3500 | #ifdef CONFIG_IWL4965_HT |
3501 | #ifdef CONFIG_IWLWIFI_HT_AGG | 3501 | #ifdef CONFIG_IWL4965_HT_AGG |
3502 | 3502 | ||
3503 | static inline int iwl_get_ra_sta_id(struct iwl_priv *priv, | 3503 | static inline int iwl_get_ra_sta_id(struct iwl_priv *priv, |
3504 | struct ieee80211_hdr *hdr) | 3504 | struct ieee80211_hdr *hdr) |
@@ -3654,8 +3654,8 @@ static void iwl_rx_reply_tx(struct iwl_priv *priv, | |||
3654 | struct ieee80211_tx_status *tx_status; | 3654 | struct ieee80211_tx_status *tx_status; |
3655 | struct iwl_tx_resp *tx_resp = (void *)&pkt->u.raw[0]; | 3655 | struct iwl_tx_resp *tx_resp = (void *)&pkt->u.raw[0]; |
3656 | u32 status = le32_to_cpu(tx_resp->status); | 3656 | u32 status = le32_to_cpu(tx_resp->status); |
3657 | #ifdef CONFIG_IWLWIFI_HT | 3657 | #ifdef CONFIG_IWL4965_HT |
3658 | #ifdef CONFIG_IWLWIFI_HT_AGG | 3658 | #ifdef CONFIG_IWL4965_HT_AGG |
3659 | int tid, sta_id; | 3659 | int tid, sta_id; |
3660 | #endif | 3660 | #endif |
3661 | #endif | 3661 | #endif |
@@ -3668,8 +3668,8 @@ static void iwl_rx_reply_tx(struct iwl_priv *priv, | |||
3668 | return; | 3668 | return; |
3669 | } | 3669 | } |
3670 | 3670 | ||
3671 | #ifdef CONFIG_IWLWIFI_HT | 3671 | #ifdef CONFIG_IWL4965_HT |
3672 | #ifdef CONFIG_IWLWIFI_HT_AGG | 3672 | #ifdef CONFIG_IWL4965_HT_AGG |
3673 | if (txq->sched_retry) { | 3673 | if (txq->sched_retry) { |
3674 | const u32 scd_ssn = iwl_get_scd_ssn(tx_resp); | 3674 | const u32 scd_ssn = iwl_get_scd_ssn(tx_resp); |
3675 | struct ieee80211_hdr *hdr = | 3675 | struct ieee80211_hdr *hdr = |
@@ -3706,8 +3706,8 @@ static void iwl_rx_reply_tx(struct iwl_priv *priv, | |||
3706 | iwl_tx_queue_reclaim(priv, txq_id, index); | 3706 | iwl_tx_queue_reclaim(priv, txq_id, index); |
3707 | } | 3707 | } |
3708 | } else { | 3708 | } else { |
3709 | #endif /* CONFIG_IWLWIFI_HT_AGG */ | 3709 | #endif /* CONFIG_IWL4965_HT_AGG */ |
3710 | #endif /* CONFIG_IWLWIFI_HT */ | 3710 | #endif /* CONFIG_IWL4965_HT */ |
3711 | tx_status = &(txq->txb[txq->q.read_ptr].status); | 3711 | tx_status = &(txq->txb[txq->q.read_ptr].status); |
3712 | 3712 | ||
3713 | tx_status->retry_count = tx_resp->failure_frame; | 3713 | tx_status->retry_count = tx_resp->failure_frame; |
@@ -3729,11 +3729,11 @@ static void iwl_rx_reply_tx(struct iwl_priv *priv, | |||
3729 | IWL_DEBUG_TX_REPLY("Tx queue reclaim %d\n", index); | 3729 | IWL_DEBUG_TX_REPLY("Tx queue reclaim %d\n", index); |
3730 | if (index != -1) | 3730 | if (index != -1) |
3731 | iwl_tx_queue_reclaim(priv, txq_id, index); | 3731 | iwl_tx_queue_reclaim(priv, txq_id, index); |
3732 | #ifdef CONFIG_IWLWIFI_HT | 3732 | #ifdef CONFIG_IWL4965_HT |
3733 | #ifdef CONFIG_IWLWIFI_HT_AGG | 3733 | #ifdef CONFIG_IWL4965_HT_AGG |
3734 | } | 3734 | } |
3735 | #endif /* CONFIG_IWLWIFI_HT_AGG */ | 3735 | #endif /* CONFIG_IWL4965_HT_AGG */ |
3736 | #endif /* CONFIG_IWLWIFI_HT */ | 3736 | #endif /* CONFIG_IWL4965_HT */ |
3737 | 3737 | ||
3738 | if (iwl_check_bits(status, TX_ABORT_REQUIRED_MSK)) | 3738 | if (iwl_check_bits(status, TX_ABORT_REQUIRED_MSK)) |
3739 | IWL_ERROR("TODO: Implement Tx ABORT REQUIRED!!!\n"); | 3739 | IWL_ERROR("TODO: Implement Tx ABORT REQUIRED!!!\n"); |
@@ -3815,7 +3815,7 @@ static void iwl_rx_csa(struct iwl_priv *priv, struct iwl_rx_mem_buffer *rxb) | |||
3815 | static void iwl_rx_spectrum_measure_notif(struct iwl_priv *priv, | 3815 | static void iwl_rx_spectrum_measure_notif(struct iwl_priv *priv, |
3816 | struct iwl_rx_mem_buffer *rxb) | 3816 | struct iwl_rx_mem_buffer *rxb) |
3817 | { | 3817 | { |
3818 | #ifdef CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT | 3818 | #ifdef CONFIG_IWL4965_SPECTRUM_MEASUREMENT |
3819 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; | 3819 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; |
3820 | struct iwl_spectrum_notification *report = &(pkt->u.spectrum_notif); | 3820 | struct iwl_spectrum_notification *report = &(pkt->u.spectrum_notif); |
3821 | 3821 | ||
@@ -3833,7 +3833,7 @@ static void iwl_rx_spectrum_measure_notif(struct iwl_priv *priv, | |||
3833 | static void iwl_rx_pm_sleep_notif(struct iwl_priv *priv, | 3833 | static void iwl_rx_pm_sleep_notif(struct iwl_priv *priv, |
3834 | struct iwl_rx_mem_buffer *rxb) | 3834 | struct iwl_rx_mem_buffer *rxb) |
3835 | { | 3835 | { |
3836 | #ifdef CONFIG_IWLWIFI_DEBUG | 3836 | #ifdef CONFIG_IWL4965_DEBUG |
3837 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; | 3837 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; |
3838 | struct iwl_sleep_notification *sleep = &(pkt->u.sleep_notif); | 3838 | struct iwl_sleep_notification *sleep = &(pkt->u.sleep_notif); |
3839 | IWL_DEBUG_RX("sleep mode: %d, src: %d\n", | 3839 | IWL_DEBUG_RX("sleep mode: %d, src: %d\n", |
@@ -3879,7 +3879,7 @@ static void iwl_bg_beacon_update(struct work_struct *work) | |||
3879 | static void iwl_rx_beacon_notif(struct iwl_priv *priv, | 3879 | static void iwl_rx_beacon_notif(struct iwl_priv *priv, |
3880 | struct iwl_rx_mem_buffer *rxb) | 3880 | struct iwl_rx_mem_buffer *rxb) |
3881 | { | 3881 | { |
3882 | #ifdef CONFIG_IWLWIFI_DEBUG | 3882 | #ifdef CONFIG_IWL4965_DEBUG |
3883 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; | 3883 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; |
3884 | struct iwl_beacon_notif *beacon = &(pkt->u.beacon_status); | 3884 | struct iwl_beacon_notif *beacon = &(pkt->u.beacon_status); |
3885 | u8 rate = iwl_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); | 3885 | u8 rate = iwl_hw_get_rate(beacon->beacon_notify_hdr.rate_n_flags); |
@@ -3902,7 +3902,7 @@ static void iwl_rx_beacon_notif(struct iwl_priv *priv, | |||
3902 | static void iwl_rx_reply_scan(struct iwl_priv *priv, | 3902 | static void iwl_rx_reply_scan(struct iwl_priv *priv, |
3903 | struct iwl_rx_mem_buffer *rxb) | 3903 | struct iwl_rx_mem_buffer *rxb) |
3904 | { | 3904 | { |
3905 | #ifdef CONFIG_IWLWIFI_DEBUG | 3905 | #ifdef CONFIG_IWL4965_DEBUG |
3906 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; | 3906 | struct iwl_rx_packet *pkt = (void *)rxb->skb->data; |
3907 | struct iwl_scanreq_notification *notif = | 3907 | struct iwl_scanreq_notification *notif = |
3908 | (struct iwl_scanreq_notification *)pkt->u.raw; | 3908 | (struct iwl_scanreq_notification *)pkt->u.raw; |
@@ -4700,7 +4700,7 @@ static int iwl_tx_queue_update_write_ptr(struct iwl_priv *priv, | |||
4700 | return rc; | 4700 | return rc; |
4701 | } | 4701 | } |
4702 | 4702 | ||
4703 | #ifdef CONFIG_IWLWIFI_DEBUG | 4703 | #ifdef CONFIG_IWL4965_DEBUG |
4704 | static void iwl_print_rx_config_cmd(struct iwl_rxon_cmd *rxon) | 4704 | static void iwl_print_rx_config_cmd(struct iwl_rxon_cmd *rxon) |
4705 | { | 4705 | { |
4706 | DECLARE_MAC_BUF(mac); | 4706 | DECLARE_MAC_BUF(mac); |
@@ -4924,7 +4924,7 @@ static void iwl_irq_handle_error(struct iwl_priv *priv) | |||
4924 | /* Cancel currently queued command. */ | 4924 | /* Cancel currently queued command. */ |
4925 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); | 4925 | clear_bit(STATUS_HCMD_ACTIVE, &priv->status); |
4926 | 4926 | ||
4927 | #ifdef CONFIG_IWLWIFI_DEBUG | 4927 | #ifdef CONFIG_IWL4965_DEBUG |
4928 | if (iwl_debug_level & IWL_DL_FW_ERRORS) { | 4928 | if (iwl_debug_level & IWL_DL_FW_ERRORS) { |
4929 | iwl_dump_nic_error_log(priv); | 4929 | iwl_dump_nic_error_log(priv); |
4930 | iwl_dump_nic_event_log(priv); | 4930 | iwl_dump_nic_event_log(priv); |
@@ -4973,7 +4973,7 @@ static void iwl_irq_tasklet(struct iwl_priv *priv) | |||
4973 | u32 inta, handled = 0; | 4973 | u32 inta, handled = 0; |
4974 | u32 inta_fh; | 4974 | u32 inta_fh; |
4975 | unsigned long flags; | 4975 | unsigned long flags; |
4976 | #ifdef CONFIG_IWLWIFI_DEBUG | 4976 | #ifdef CONFIG_IWL4965_DEBUG |
4977 | u32 inta_mask; | 4977 | u32 inta_mask; |
4978 | #endif | 4978 | #endif |
4979 | 4979 | ||
@@ -4991,7 +4991,7 @@ static void iwl_irq_tasklet(struct iwl_priv *priv) | |||
4991 | inta_fh = iwl_read32(priv, CSR_FH_INT_STATUS); | 4991 | inta_fh = iwl_read32(priv, CSR_FH_INT_STATUS); |
4992 | iwl_write32(priv, CSR_FH_INT_STATUS, inta_fh); | 4992 | iwl_write32(priv, CSR_FH_INT_STATUS, inta_fh); |
4993 | 4993 | ||
4994 | #ifdef CONFIG_IWLWIFI_DEBUG | 4994 | #ifdef CONFIG_IWL4965_DEBUG |
4995 | if (iwl_debug_level & IWL_DL_ISR) { | 4995 | if (iwl_debug_level & IWL_DL_ISR) { |
4996 | inta_mask = iwl_read32(priv, CSR_INT_MASK); /* just for debug */ | 4996 | inta_mask = iwl_read32(priv, CSR_INT_MASK); /* just for debug */ |
4997 | IWL_DEBUG_ISR("inta 0x%08x, enabled 0x%08x, fh 0x%08x\n", | 4997 | IWL_DEBUG_ISR("inta 0x%08x, enabled 0x%08x, fh 0x%08x\n", |
@@ -5024,7 +5024,7 @@ static void iwl_irq_tasklet(struct iwl_priv *priv) | |||
5024 | return; | 5024 | return; |
5025 | } | 5025 | } |
5026 | 5026 | ||
5027 | #ifdef CONFIG_IWLWIFI_DEBUG | 5027 | #ifdef CONFIG_IWL4965_DEBUG |
5028 | if (iwl_debug_level & (IWL_DL_ISR)) { | 5028 | if (iwl_debug_level & (IWL_DL_ISR)) { |
5029 | /* NIC fires this, but we don't use it, redundant with WAKEUP */ | 5029 | /* NIC fires this, but we don't use it, redundant with WAKEUP */ |
5030 | if (inta & CSR_INT_BIT_MAC_CLK_ACTV) | 5030 | if (inta & CSR_INT_BIT_MAC_CLK_ACTV) |
@@ -5114,7 +5114,7 @@ static void iwl_irq_tasklet(struct iwl_priv *priv) | |||
5114 | /* Re-enable all interrupts */ | 5114 | /* Re-enable all interrupts */ |
5115 | iwl_enable_interrupts(priv); | 5115 | iwl_enable_interrupts(priv); |
5116 | 5116 | ||
5117 | #ifdef CONFIG_IWLWIFI_DEBUG | 5117 | #ifdef CONFIG_IWL4965_DEBUG |
5118 | if (iwl_debug_level & (IWL_DL_ISR)) { | 5118 | if (iwl_debug_level & (IWL_DL_ISR)) { |
5119 | inta = iwl_read32(priv, CSR_INT); | 5119 | inta = iwl_read32(priv, CSR_INT); |
5120 | inta_mask = iwl_read32(priv, CSR_INT_MASK); | 5120 | inta_mask = iwl_read32(priv, CSR_INT_MASK); |
@@ -7148,7 +7148,7 @@ static void iwl_bg_post_associate(struct work_struct *data) | |||
7148 | 7148 | ||
7149 | priv->staging_rxon.filter_flags |= RXON_FILTER_ASSOC_MSK; | 7149 | priv->staging_rxon.filter_flags |= RXON_FILTER_ASSOC_MSK; |
7150 | 7150 | ||
7151 | #ifdef CONFIG_IWLWIFI_HT | 7151 | #ifdef CONFIG_IWL4965_HT |
7152 | if (priv->is_ht_enabled && priv->current_assoc_ht.is_ht) | 7152 | if (priv->is_ht_enabled && priv->current_assoc_ht.is_ht) |
7153 | iwl4965_set_rxon_ht(priv, &priv->current_assoc_ht); | 7153 | iwl4965_set_rxon_ht(priv, &priv->current_assoc_ht); |
7154 | else { | 7154 | else { |
@@ -7156,7 +7156,7 @@ static void iwl_bg_post_associate(struct work_struct *data) | |||
7156 | priv->active_rate_ht[1] = 0; | 7156 | priv->active_rate_ht[1] = 0; |
7157 | priv->current_channel_width = IWL_CHANNEL_WIDTH_20MHZ; | 7157 | priv->current_channel_width = IWL_CHANNEL_WIDTH_20MHZ; |
7158 | } | 7158 | } |
7159 | #endif /* CONFIG_IWLWIFI_HT*/ | 7159 | #endif /* CONFIG_IWL4965_HT*/ |
7160 | iwl4965_set_rxon_chain(priv); | 7160 | iwl4965_set_rxon_chain(priv); |
7161 | priv->staging_rxon.assoc_id = cpu_to_le16(priv->assoc_id); | 7161 | priv->staging_rxon.assoc_id = cpu_to_le16(priv->assoc_id); |
7162 | 7162 | ||
@@ -7206,18 +7206,18 @@ static void iwl_bg_post_associate(struct work_struct *data) | |||
7206 | 7206 | ||
7207 | iwl_sequence_reset(priv); | 7207 | iwl_sequence_reset(priv); |
7208 | 7208 | ||
7209 | #ifdef CONFIG_IWLWIFI_SENSITIVITY | 7209 | #ifdef CONFIG_IWL4965_SENSITIVITY |
7210 | /* Enable Rx differential gain and sensitivity calibrations */ | 7210 | /* Enable Rx differential gain and sensitivity calibrations */ |
7211 | iwl4965_chain_noise_reset(priv); | 7211 | iwl4965_chain_noise_reset(priv); |
7212 | priv->start_calib = 1; | 7212 | priv->start_calib = 1; |
7213 | #endif /* CONFIG_IWLWIFI_SENSITIVITY */ | 7213 | #endif /* CONFIG_IWL4965_SENSITIVITY */ |
7214 | 7214 | ||
7215 | if (priv->iw_mode == IEEE80211_IF_TYPE_IBSS) | 7215 | if (priv->iw_mode == IEEE80211_IF_TYPE_IBSS) |
7216 | priv->assoc_station_added = 1; | 7216 | priv->assoc_station_added = 1; |
7217 | 7217 | ||
7218 | #ifdef CONFIG_IWLWIFI_QOS | 7218 | #ifdef CONFIG_IWL4965_QOS |
7219 | iwl_activate_qos(priv, 0); | 7219 | iwl_activate_qos(priv, 0); |
7220 | #endif /* CONFIG_IWLWIFI_QOS */ | 7220 | #endif /* CONFIG_IWL4965_QOS */ |
7221 | mutex_unlock(&priv->mutex); | 7221 | mutex_unlock(&priv->mutex); |
7222 | } | 7222 | } |
7223 | 7223 | ||
@@ -7399,7 +7399,7 @@ static int iwl_mac_config(struct ieee80211_hw *hw, struct ieee80211_conf *conf) | |||
7399 | return -EINVAL; | 7399 | return -EINVAL; |
7400 | } | 7400 | } |
7401 | 7401 | ||
7402 | #ifdef CONFIG_IWLWIFI_HT | 7402 | #ifdef CONFIG_IWL4965_HT |
7403 | /* if we are switching fron ht to 2.4 clear flags | 7403 | /* if we are switching fron ht to 2.4 clear flags |
7404 | * from any ht related info since 2.4 does not | 7404 | * from any ht related info since 2.4 does not |
7405 | * support ht */ | 7405 | * support ht */ |
@@ -7409,7 +7409,7 @@ static int iwl_mac_config(struct ieee80211_hw *hw, struct ieee80211_conf *conf) | |||
7409 | #endif | 7409 | #endif |
7410 | ) | 7410 | ) |
7411 | priv->staging_rxon.flags = 0; | 7411 | priv->staging_rxon.flags = 0; |
7412 | #endif /* CONFIG_IWLWIFI_HT */ | 7412 | #endif /* CONFIG_IWL4965_HT */ |
7413 | 7413 | ||
7414 | iwl_set_rxon_channel(priv, conf->phymode, conf->channel); | 7414 | iwl_set_rxon_channel(priv, conf->phymode, conf->channel); |
7415 | 7415 | ||
@@ -7509,7 +7509,7 @@ static void iwl_config_ap(struct iwl_priv *priv) | |||
7509 | /* restore RXON assoc */ | 7509 | /* restore RXON assoc */ |
7510 | priv->staging_rxon.filter_flags |= RXON_FILTER_ASSOC_MSK; | 7510 | priv->staging_rxon.filter_flags |= RXON_FILTER_ASSOC_MSK; |
7511 | iwl_commit_rxon(priv); | 7511 | iwl_commit_rxon(priv); |
7512 | #ifdef CONFIG_IWLWIFI_QOS | 7512 | #ifdef CONFIG_IWL4965_QOS |
7513 | iwl_activate_qos(priv, 1); | 7513 | iwl_activate_qos(priv, 1); |
7514 | #endif | 7514 | #endif |
7515 | iwl_rxon_add_station(priv, BROADCAST_ADDR, 0); | 7515 | iwl_rxon_add_station(priv, BROADCAST_ADDR, 0); |
@@ -7805,7 +7805,7 @@ static int iwl_mac_conf_tx(struct ieee80211_hw *hw, int queue, | |||
7805 | const struct ieee80211_tx_queue_params *params) | 7805 | const struct ieee80211_tx_queue_params *params) |
7806 | { | 7806 | { |
7807 | struct iwl_priv *priv = hw->priv; | 7807 | struct iwl_priv *priv = hw->priv; |
7808 | #ifdef CONFIG_IWLWIFI_QOS | 7808 | #ifdef CONFIG_IWL4965_QOS |
7809 | unsigned long flags; | 7809 | unsigned long flags; |
7810 | int q; | 7810 | int q; |
7811 | #endif /* CONFIG_IWL_QOS */ | 7811 | #endif /* CONFIG_IWL_QOS */ |
@@ -7822,7 +7822,7 @@ static int iwl_mac_conf_tx(struct ieee80211_hw *hw, int queue, | |||
7822 | return 0; | 7822 | return 0; |
7823 | } | 7823 | } |
7824 | 7824 | ||
7825 | #ifdef CONFIG_IWLWIFI_QOS | 7825 | #ifdef CONFIG_IWL4965_QOS |
7826 | if (!priv->qos_data.qos_enable) { | 7826 | if (!priv->qos_data.qos_enable) { |
7827 | priv->qos_data.qos_active = 0; | 7827 | priv->qos_data.qos_active = 0; |
7828 | IWL_DEBUG_MAC80211("leave - qos not enabled\n"); | 7828 | IWL_DEBUG_MAC80211("leave - qos not enabled\n"); |
@@ -7851,7 +7851,7 @@ static int iwl_mac_conf_tx(struct ieee80211_hw *hw, int queue, | |||
7851 | 7851 | ||
7852 | mutex_unlock(&priv->mutex); | 7852 | mutex_unlock(&priv->mutex); |
7853 | 7853 | ||
7854 | #endif /*CONFIG_IWLWIFI_QOS */ | 7854 | #endif /*CONFIG_IWL4965_QOS */ |
7855 | 7855 | ||
7856 | IWL_DEBUG_MAC80211("leave\n"); | 7856 | IWL_DEBUG_MAC80211("leave\n"); |
7857 | return 0; | 7857 | return 0; |
@@ -7918,11 +7918,11 @@ static void iwl_mac_reset_tsf(struct ieee80211_hw *hw) | |||
7918 | IWL_DEBUG_MAC80211("enter\n"); | 7918 | IWL_DEBUG_MAC80211("enter\n"); |
7919 | 7919 | ||
7920 | priv->lq_mngr.lq_ready = 0; | 7920 | priv->lq_mngr.lq_ready = 0; |
7921 | #ifdef CONFIG_IWLWIFI_HT | 7921 | #ifdef CONFIG_IWL4965_HT |
7922 | spin_lock_irqsave(&priv->lock, flags); | 7922 | spin_lock_irqsave(&priv->lock, flags); |
7923 | memset(&priv->current_assoc_ht, 0, sizeof(struct sta_ht_info)); | 7923 | memset(&priv->current_assoc_ht, 0, sizeof(struct sta_ht_info)); |
7924 | spin_unlock_irqrestore(&priv->lock, flags); | 7924 | spin_unlock_irqrestore(&priv->lock, flags); |
7925 | #ifdef CONFIG_IWLWIFI_HT_AGG | 7925 | #ifdef CONFIG_IWL4965_HT_AGG |
7926 | /* if (priv->lq_mngr.agg_ctrl.granted_ba) | 7926 | /* if (priv->lq_mngr.agg_ctrl.granted_ba) |
7927 | iwl4965_turn_off_agg(priv, TID_ALL_SPECIFIED);*/ | 7927 | iwl4965_turn_off_agg(priv, TID_ALL_SPECIFIED);*/ |
7928 | 7928 | ||
@@ -7933,10 +7933,10 @@ static void iwl_mac_reset_tsf(struct ieee80211_hw *hw) | |||
7933 | 7933 | ||
7934 | if (priv->lq_mngr.agg_ctrl.auto_agg) | 7934 | if (priv->lq_mngr.agg_ctrl.auto_agg) |
7935 | priv->lq_mngr.agg_ctrl.requested_ba = TID_ALL_ENABLED; | 7935 | priv->lq_mngr.agg_ctrl.requested_ba = TID_ALL_ENABLED; |
7936 | #endif /*CONFIG_IWLWIFI_HT_AGG */ | 7936 | #endif /*CONFIG_IWL4965_HT_AGG */ |
7937 | #endif /* CONFIG_IWLWIFI_HT */ | 7937 | #endif /* CONFIG_IWL4965_HT */ |
7938 | 7938 | ||
7939 | #ifdef CONFIG_IWLWIFI_QOS | 7939 | #ifdef CONFIG_IWL4965_QOS |
7940 | iwl_reset_qos(priv); | 7940 | iwl_reset_qos(priv); |
7941 | #endif | 7941 | #endif |
7942 | 7942 | ||
@@ -8028,7 +8028,7 @@ static int iwl_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
8028 | IWL_DEBUG_MAC80211("leave\n"); | 8028 | IWL_DEBUG_MAC80211("leave\n"); |
8029 | spin_unlock_irqrestore(&priv->lock, flags); | 8029 | spin_unlock_irqrestore(&priv->lock, flags); |
8030 | 8030 | ||
8031 | #ifdef CONFIG_IWLWIFI_QOS | 8031 | #ifdef CONFIG_IWL4965_QOS |
8032 | iwl_reset_qos(priv); | 8032 | iwl_reset_qos(priv); |
8033 | #endif | 8033 | #endif |
8034 | 8034 | ||
@@ -8039,7 +8039,7 @@ static int iwl_mac_beacon_update(struct ieee80211_hw *hw, struct sk_buff *skb, | |||
8039 | return 0; | 8039 | return 0; |
8040 | } | 8040 | } |
8041 | 8041 | ||
8042 | #ifdef CONFIG_IWLWIFI_HT | 8042 | #ifdef CONFIG_IWL4965_HT |
8043 | union ht_cap_info { | 8043 | union ht_cap_info { |
8044 | struct { | 8044 | struct { |
8045 | u16 advanced_coding_cap :1; | 8045 | u16 advanced_coding_cap :1; |
@@ -8231,7 +8231,7 @@ static void iwl_mac_get_ht_capab(struct ieee80211_hw *hw, | |||
8231 | iwl_set_ht_capab(hw, ht_cap, use_wide_channel); | 8231 | iwl_set_ht_capab(hw, ht_cap, use_wide_channel); |
8232 | IWL_DEBUG_MAC80211("leave: \n"); | 8232 | IWL_DEBUG_MAC80211("leave: \n"); |
8233 | } | 8233 | } |
8234 | #endif /*CONFIG_IWLWIFI_HT*/ | 8234 | #endif /*CONFIG_IWL4965_HT*/ |
8235 | 8235 | ||
8236 | /***************************************************************************** | 8236 | /***************************************************************************** |
8237 | * | 8237 | * |
@@ -8239,7 +8239,7 @@ static void iwl_mac_get_ht_capab(struct ieee80211_hw *hw, | |||
8239 | * | 8239 | * |
8240 | *****************************************************************************/ | 8240 | *****************************************************************************/ |
8241 | 8241 | ||
8242 | #ifdef CONFIG_IWLWIFI_DEBUG | 8242 | #ifdef CONFIG_IWL4965_DEBUG |
8243 | 8243 | ||
8244 | /* | 8244 | /* |
8245 | * The following adds a new attribute to the sysfs representation | 8245 | * The following adds a new attribute to the sysfs representation |
@@ -8272,7 +8272,7 @@ static ssize_t store_debug_level(struct device_driver *d, | |||
8272 | static DRIVER_ATTR(debug_level, S_IWUSR | S_IRUGO, | 8272 | static DRIVER_ATTR(debug_level, S_IWUSR | S_IRUGO, |
8273 | show_debug_level, store_debug_level); | 8273 | show_debug_level, store_debug_level); |
8274 | 8274 | ||
8275 | #endif /* CONFIG_IWLWIFI_DEBUG */ | 8275 | #endif /* CONFIG_IWL4965_DEBUG */ |
8276 | 8276 | ||
8277 | static ssize_t show_rf_kill(struct device *d, | 8277 | static ssize_t show_rf_kill(struct device *d, |
8278 | struct device_attribute *attr, char *buf) | 8278 | struct device_attribute *attr, char *buf) |
@@ -8484,7 +8484,7 @@ static ssize_t store_tune(struct device *d, | |||
8484 | 8484 | ||
8485 | static DEVICE_ATTR(tune, S_IWUSR | S_IRUGO, show_tune, store_tune); | 8485 | static DEVICE_ATTR(tune, S_IWUSR | S_IRUGO, show_tune, store_tune); |
8486 | 8486 | ||
8487 | #ifdef CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT | 8487 | #ifdef CONFIG_IWL4965_SPECTRUM_MEASUREMENT |
8488 | 8488 | ||
8489 | static ssize_t show_measurement(struct device *d, | 8489 | static ssize_t show_measurement(struct device *d, |
8490 | struct device_attribute *attr, char *buf) | 8490 | struct device_attribute *attr, char *buf) |
@@ -8555,7 +8555,7 @@ static ssize_t store_measurement(struct device *d, | |||
8555 | 8555 | ||
8556 | static DEVICE_ATTR(measurement, S_IRUSR | S_IWUSR, | 8556 | static DEVICE_ATTR(measurement, S_IRUSR | S_IWUSR, |
8557 | show_measurement, store_measurement); | 8557 | show_measurement, store_measurement); |
8558 | #endif /* CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT */ | 8558 | #endif /* CONFIG_IWL4965_SPECTRUM_MEASUREMENT */ |
8559 | 8559 | ||
8560 | static ssize_t store_retry_rate(struct device *d, | 8560 | static ssize_t store_retry_rate(struct device *d, |
8561 | struct device_attribute *attr, | 8561 | struct device_attribute *attr, |
@@ -8908,7 +8908,7 @@ static struct attribute *iwl_sysfs_entries[] = { | |||
8908 | &dev_attr_dump_events.attr, | 8908 | &dev_attr_dump_events.attr, |
8909 | &dev_attr_flags.attr, | 8909 | &dev_attr_flags.attr, |
8910 | &dev_attr_filter_flags.attr, | 8910 | &dev_attr_filter_flags.attr, |
8911 | #ifdef CONFIG_IWLWIFI_SPECTRUM_MEASUREMENT | 8911 | #ifdef CONFIG_IWL4965_SPECTRUM_MEASUREMENT |
8912 | &dev_attr_measurement.attr, | 8912 | &dev_attr_measurement.attr, |
8913 | #endif | 8913 | #endif |
8914 | &dev_attr_power_level.attr, | 8914 | &dev_attr_power_level.attr, |
@@ -8946,16 +8946,16 @@ static struct ieee80211_ops iwl_hw_ops = { | |||
8946 | .reset_tsf = iwl_mac_reset_tsf, | 8946 | .reset_tsf = iwl_mac_reset_tsf, |
8947 | .beacon_update = iwl_mac_beacon_update, | 8947 | .beacon_update = iwl_mac_beacon_update, |
8948 | .erp_ie_changed = iwl_mac_erp_ie_changed, | 8948 | .erp_ie_changed = iwl_mac_erp_ie_changed, |
8949 | #ifdef CONFIG_IWLWIFI_HT | 8949 | #ifdef CONFIG_IWL4965_HT |
8950 | .conf_ht = iwl_mac_conf_ht, | 8950 | .conf_ht = iwl_mac_conf_ht, |
8951 | .get_ht_capab = iwl_mac_get_ht_capab, | 8951 | .get_ht_capab = iwl_mac_get_ht_capab, |
8952 | #ifdef CONFIG_IWLWIFI_HT_AGG | 8952 | #ifdef CONFIG_IWL4965_HT_AGG |
8953 | .ht_tx_agg_start = iwl_mac_ht_tx_agg_start, | 8953 | .ht_tx_agg_start = iwl_mac_ht_tx_agg_start, |
8954 | .ht_tx_agg_stop = iwl_mac_ht_tx_agg_stop, | 8954 | .ht_tx_agg_stop = iwl_mac_ht_tx_agg_stop, |
8955 | .ht_rx_agg_start = iwl_mac_ht_rx_agg_start, | 8955 | .ht_rx_agg_start = iwl_mac_ht_rx_agg_start, |
8956 | .ht_rx_agg_stop = iwl_mac_ht_rx_agg_stop, | 8956 | .ht_rx_agg_stop = iwl_mac_ht_rx_agg_stop, |
8957 | #endif /* CONFIG_IWLWIFI_HT_AGG */ | 8957 | #endif /* CONFIG_IWL4965_HT_AGG */ |
8958 | #endif /* CONFIG_IWLWIFI_HT */ | 8958 | #endif /* CONFIG_IWL4965_HT */ |
8959 | .hw_scan = iwl_mac_hw_scan | 8959 | .hw_scan = iwl_mac_hw_scan |
8960 | }; | 8960 | }; |
8961 | 8961 | ||
@@ -8997,7 +8997,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
8997 | 8997 | ||
8998 | priv->pci_dev = pdev; | 8998 | priv->pci_dev = pdev; |
8999 | priv->antenna = (enum iwl_antenna)iwl_param_antenna; | 8999 | priv->antenna = (enum iwl_antenna)iwl_param_antenna; |
9000 | #ifdef CONFIG_IWLWIFI_DEBUG | 9000 | #ifdef CONFIG_IWL4965_DEBUG |
9001 | iwl_debug_level = iwl_param_debug; | 9001 | iwl_debug_level = iwl_param_debug; |
9002 | atomic_set(&priv->restrict_refcnt, 0); | 9002 | atomic_set(&priv->restrict_refcnt, 0); |
9003 | #endif | 9003 | #endif |
@@ -9018,11 +9018,11 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
9018 | hw->flags = IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE; | 9018 | hw->flags = IEEE80211_HW_HOST_GEN_BEACON_TEMPLATE; |
9019 | 9019 | ||
9020 | hw->queues = 4; | 9020 | hw->queues = 4; |
9021 | #ifdef CONFIG_IWLWIFI_HT | 9021 | #ifdef CONFIG_IWL4965_HT |
9022 | #ifdef CONFIG_IWLWIFI_HT_AGG | 9022 | #ifdef CONFIG_IWL4965_HT_AGG |
9023 | hw->queues = 16; | 9023 | hw->queues = 16; |
9024 | #endif /* CONFIG_IWLWIFI_HT_AGG */ | 9024 | #endif /* CONFIG_IWL4965_HT_AGG */ |
9025 | #endif /* CONFIG_IWLWIFI_HT */ | 9025 | #endif /* CONFIG_IWL4965_HT */ |
9026 | 9026 | ||
9027 | spin_lock_init(&priv->lock); | 9027 | spin_lock_init(&priv->lock); |
9028 | spin_lock_init(&priv->power_data.lock); | 9028 | spin_lock_init(&priv->power_data.lock); |
@@ -9103,7 +9103,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
9103 | goto out_iounmap; | 9103 | goto out_iounmap; |
9104 | } | 9104 | } |
9105 | 9105 | ||
9106 | #ifdef CONFIG_IWLWIFI_QOS | 9106 | #ifdef CONFIG_IWL4965_QOS |
9107 | if (iwl_param_qos_enable) | 9107 | if (iwl_param_qos_enable) |
9108 | priv->qos_data.qos_enable = 1; | 9108 | priv->qos_data.qos_enable = 1; |
9109 | 9109 | ||
@@ -9111,7 +9111,7 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
9111 | 9111 | ||
9112 | priv->qos_data.qos_active = 0; | 9112 | priv->qos_data.qos_active = 0; |
9113 | priv->qos_data.qos_cap.val = 0; | 9113 | priv->qos_data.qos_cap.val = 0; |
9114 | #endif /* CONFIG_IWLWIFI_QOS */ | 9114 | #endif /* CONFIG_IWL4965_QOS */ |
9115 | 9115 | ||
9116 | iwl_set_rxon_channel(priv, MODE_IEEE80211G, 6); | 9116 | iwl_set_rxon_channel(priv, MODE_IEEE80211G, 6); |
9117 | iwl_setup_deferred_work(priv); | 9117 | iwl_setup_deferred_work(priv); |
@@ -9371,7 +9371,7 @@ static int __init iwl_init(void) | |||
9371 | IWL_ERROR("Unable to initialize PCI module\n"); | 9371 | IWL_ERROR("Unable to initialize PCI module\n"); |
9372 | return ret; | 9372 | return ret; |
9373 | } | 9373 | } |
9374 | #ifdef CONFIG_IWLWIFI_DEBUG | 9374 | #ifdef CONFIG_IWL4965_DEBUG |
9375 | ret = driver_create_file(&iwl_driver.driver, &driver_attr_debug_level); | 9375 | ret = driver_create_file(&iwl_driver.driver, &driver_attr_debug_level); |
9376 | if (ret) { | 9376 | if (ret) { |
9377 | IWL_ERROR("Unable to create driver sysfs file\n"); | 9377 | IWL_ERROR("Unable to create driver sysfs file\n"); |
@@ -9385,7 +9385,7 @@ static int __init iwl_init(void) | |||
9385 | 9385 | ||
9386 | static void __exit iwl_exit(void) | 9386 | static void __exit iwl_exit(void) |
9387 | { | 9387 | { |
9388 | #ifdef CONFIG_IWLWIFI_DEBUG | 9388 | #ifdef CONFIG_IWL4965_DEBUG |
9389 | driver_remove_file(&iwl_driver.driver, &driver_attr_debug_level); | 9389 | driver_remove_file(&iwl_driver.driver, &driver_attr_debug_level); |
9390 | #endif | 9390 | #endif |
9391 | pci_unregister_driver(&iwl_driver); | 9391 | pci_unregister_driver(&iwl_driver); |