aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-4965.c
diff options
context:
space:
mode:
authorEster Kummer <ester.kummer@intel.com>2008-05-04 22:22:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-05-14 16:29:45 -0400
commitbf403db8a2f5580a5eb355a109d29b9287ca51e1 (patch)
tree90a462e9256170ebbf2025ffc9c01e48bb1c08d8 /drivers/net/wireless/iwlwifi/iwl-4965.c
parent2469bf2e9938eef3c6ab0951985b050ff1f8c94f (diff)
iwlwifi: move per driverdebug_level to per device
This patch ports the debug_level to iwl_priv and changes the format of the debug prints. Signed-off-by: Ester Kummer <ester.kummer@intel.com> 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/iwl-4965.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-4965.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-4965.c b/drivers/net/wireless/iwlwifi/iwl-4965.c
index 0644e22fe780..b4f2c3c89542 100644
--- a/drivers/net/wireless/iwlwifi/iwl-4965.c
+++ b/drivers/net/wireless/iwlwifi/iwl-4965.c
@@ -2743,7 +2743,7 @@ static int iwl4965_set_decrypted_flag(struct iwl_priv *priv,
2743 return 0; 2743 return 0;
2744} 2744}
2745 2745
2746static u32 iwl4965_translate_rx_status(u32 decrypt_in) 2746static u32 iwl4965_translate_rx_status(struct iwl_priv *priv, u32 decrypt_in)
2747{ 2747{
2748 u32 decrypt_out = 0; 2748 u32 decrypt_out = 0;
2749 2749
@@ -2855,7 +2855,7 @@ static void iwl4965_handle_data_packet(struct iwl_priv *priv, int is_data,
2855 if (!include_phy) { 2855 if (!include_phy) {
2856 /* New status scheme, need to translate */ 2856 /* New status scheme, need to translate */
2857 ampdu_status_legacy = ampdu_status; 2857 ampdu_status_legacy = ampdu_status;
2858 ampdu_status = iwl4965_translate_rx_status(ampdu_status); 2858 ampdu_status = iwl4965_translate_rx_status(priv, ampdu_status);
2859 } 2859 }
2860 2860
2861 /* start from MAC */ 2861 /* start from MAC */
@@ -2887,7 +2887,8 @@ static void iwl4965_handle_data_packet(struct iwl_priv *priv, int is_data,
2887} 2887}
2888 2888
2889/* Calc max signal level (dBm) among 3 possible receivers */ 2889/* Calc max signal level (dBm) among 3 possible receivers */
2890static int iwl4965_calc_rssi(struct iwl4965_rx_phy_res *rx_resp) 2890static int iwl4965_calc_rssi(struct iwl_priv *priv,
2891 struct iwl4965_rx_phy_res *rx_resp)
2891{ 2892{
2892 /* data from PHY/DSP regarding signal strength, etc., 2893 /* data from PHY/DSP regarding signal strength, etc.,
2893 * contents are always there, not configurable by host. */ 2894 * contents are always there, not configurable by host. */
@@ -2991,7 +2992,7 @@ static void iwl4965_dbg_report_frame(struct iwl_priv *priv,
2991 struct iwl4965_rx_frame_end *rx_end = IWL_RX_END(pkt); 2992 struct iwl4965_rx_frame_end *rx_end = IWL_RX_END(pkt);
2992 u8 *data = IWL_RX_DATA(pkt); 2993 u8 *data = IWL_RX_DATA(pkt);
2993 2994
2994 if (likely(!(iwl_debug_level & IWL_DL_RX))) 2995 if (likely(!(priv->debug_level & IWL_DL_RX)))
2995 return; 2996 return;
2996 2997
2997 /* MAC header */ 2998 /* MAC header */
@@ -3094,7 +3095,7 @@ static void iwl4965_dbg_report_frame(struct iwl_priv *priv,
3094 } 3095 }
3095 } 3096 }
3096 if (print_dump) 3097 if (print_dump)
3097 iwl_print_hex_dump(IWL_DL_RX, data, length); 3098 iwl_print_hex_dump(priv, IWL_DL_RX, data, length);
3098} 3099}
3099#else 3100#else
3100static inline void iwl4965_dbg_report_frame(struct iwl_priv *priv, 3101static inline void iwl4965_dbg_report_frame(struct iwl_priv *priv,
@@ -3187,7 +3188,7 @@ static void iwl4965_rx_reply_rx(struct iwl_priv *priv,
3187 priv->ucode_beacon_time = le32_to_cpu(rx_start->beacon_time_stamp); 3188 priv->ucode_beacon_time = le32_to_cpu(rx_start->beacon_time_stamp);
3188 3189
3189 /* Find max signal strength (dBm) among 3 antenna/receiver chains */ 3190 /* Find max signal strength (dBm) among 3 antenna/receiver chains */
3190 rx_status.ssi = iwl4965_calc_rssi(rx_start); 3191 rx_status.ssi = iwl4965_calc_rssi(priv, rx_start);
3191 3192
3192 /* Meaningful noise values are available only from beacon statistics, 3193 /* Meaningful noise values are available only from beacon statistics,
3193 * which are gathered only when associated, and indicate noise 3194 * which are gathered only when associated, and indicate noise