diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-dev.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h index 4786194c0454..0a37ff4d98b6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-dev.h +++ b/drivers/net/wireless/iwlwifi/iwl-dev.h | |||
@@ -1194,6 +1194,7 @@ struct iwl_priv { | |||
1194 | 1194 | ||
1195 | #ifdef CONFIG_IWLWIFI_DEBUG | 1195 | #ifdef CONFIG_IWLWIFI_DEBUG |
1196 | /* debugging info */ | 1196 | /* debugging info */ |
1197 | u32 debug_level; | ||
1197 | u32 framecnt_to_us; | 1198 | u32 framecnt_to_us; |
1198 | atomic_t restrict_refcnt; | 1199 | atomic_t restrict_refcnt; |
1199 | #ifdef CONFIG_IWLWIFI_DEBUGFS | 1200 | #ifdef CONFIG_IWLWIFI_DEBUGFS |
@@ -1246,6 +1247,23 @@ static inline int is_channel_ibss(const struct iwl_channel_info *ch) | |||
1246 | return ((ch->flags & EEPROM_CHANNEL_IBSS)) ? 1 : 0; | 1247 | return ((ch->flags & EEPROM_CHANNEL_IBSS)) ? 1 : 0; |
1247 | } | 1248 | } |
1248 | 1249 | ||
1250 | #ifdef CONFIG_IWLWIFI_DEBUG | ||
1251 | static inline void iwl_print_hex_dump(struct iwl_priv *priv, int level, | ||
1252 | void *p, u32 len) | ||
1253 | { | ||
1254 | if (!(priv->debug_level & level)) | ||
1255 | return; | ||
1256 | |||
1257 | print_hex_dump(KERN_DEBUG, "iwl data: ", DUMP_PREFIX_OFFSET, 16, 1, | ||
1258 | p, len, 1); | ||
1259 | } | ||
1260 | #else | ||
1261 | static inline void iwl_print_hex_dump(struct iwl_priv *priv, int level, | ||
1262 | void *p, u32 len) | ||
1263 | { | ||
1264 | } | ||
1265 | #endif | ||
1266 | |||
1249 | extern const struct iwl_channel_info *iwl_get_channel_info( | 1267 | extern const struct iwl_channel_info *iwl_get_channel_info( |
1250 | const struct iwl_priv *priv, enum ieee80211_band band, u16 channel); | 1268 | const struct iwl_priv *priv, enum ieee80211_band band, u16 channel); |
1251 | 1269 | ||