Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278142
b: refs/heads/master
c: 2d27c5d
h: refs/heads/master
v: v3
  • Loading branch information
Stanislaw Gruszka committed Nov 15, 2011
1 parent 176bb83 commit df12880
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 29 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 46f16c492e5ca905c2170c11177fb90a58074eab
refs/heads/master: 2d27c5dbd696e7e3a162bba7b948486a9856abca
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/iwlegacy/iwl-3945.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ static void il3945_pass_packet_to_mac80211(struct il_priv *il,

/* We only process data packets if the interface is open */
if (unlikely(!il->is_open)) {
IL_DEBUG_DROP_LIMIT(il,
IL_DEBUG_DROP(il,
"Dropping packet while interface is not open.\n");
return;
}
Expand Down Expand Up @@ -563,7 +563,7 @@ static void il3945_rx_reply_rx(struct il_priv *il,

network_packet = il3945_is_network_packet(il, header);

IL_DEBUG_STATS_LIMIT(il, "[%c] %d RSSI:%d Signal:%u, Rate:%u\n",
IL_DEBUG_STATS(il, "[%c] %d RSSI:%d Signal:%u, Rate:%u\n",
network_packet ? '*' : ' ',
le16_to_cpu(rx_hdr->channel),
rx_status.signal, rx_status.signal,
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/iwlegacy/iwl-4965-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ static void il4965_pass_packet_to_mac80211(struct il_priv *il,

/* We only process data packets if the interface is open */
if (unlikely(!il->is_open)) {
IL_DEBUG_DROP_LIMIT(il,
IL_DEBUG_DROP(il,
"Dropping packet while interface is not open.\n");
return;
}
Expand Down Expand Up @@ -647,7 +647,7 @@ void il4965_rx_reply_rx(struct il_priv *il,
rx_status.signal = il4965_calc_rssi(il, phy_res);

il_dbg_log_rx_data_frame(il, len, header);
IL_DEBUG_STATS_LIMIT(il, "Rssi %d, TSF %llu\n",
IL_DEBUG_STATS(il, "Rssi %d, TSF %llu\n",
rx_status.signal, (unsigned long long)rx_status.mactime);

/*
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/wireless/iwlegacy/iwl-4965-rs.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ il4965_rs_tx_status(void *il_r, struct ieee80211_supported_band *sband,
struct il_station_priv *sta_priv = (void *)sta->drv_priv;
struct il_rxon_context *ctx = sta_priv->common.ctx;

IL_DEBUG_RATE_LIMIT(il,
IL_DEBUG_RATE(il,
"get frame ack response, update rate scale window\n");

/* Treat uninitialized rate scaling data same as non-existing. */
Expand Down Expand Up @@ -2251,7 +2251,7 @@ il4965_rs_get_rate(void *il_r, struct ieee80211_sta *sta, void *il_sta,
struct il_lq_sta *lq_sta = il_sta;
int rate_idx;

IL_DEBUG_RATE_LIMIT(il, "rate scale calculate new rate for skb\n");
IL_DEBUG_RATE(il, "rate scale calculate new rate for skb\n");

/* Get max rate if user set max rate */
if (lq_sta) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/iwlegacy/iwl-4965.c
Original file line number Diff line number Diff line change
Expand Up @@ -1737,7 +1737,7 @@ static u8 il4965_find_station(struct il_priv *il, const u8 *addr)
goto out;
}

IL_DEBUG_ASSOC_LIMIT(il, "can not find STA %pM total %d\n",
IL_DEBUG_ASSOC(il, "can not find STA %pM total %d\n",
addr, il->num_stations);

out:
Expand Down
22 changes: 1 addition & 21 deletions trunk/drivers/net/wireless/iwlegacy/iwl-debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ do { \
__func__ , ## args); \
} while (0)

#define IL_DEBUG_LIMIT(__priv, level, fmt, args...) \
do { \
if ((il_get_debug_level(__priv) & (level)) && net_ratelimit()) \
dev_printk(KERN_ERR, &(__priv->hw->wiphy->dev), \
"%c %s " fmt, in_interrupt() ? 'I' : 'U', \
__func__ , ## args); \
} while (0)

#define il_print_hex_dump(il, level, p, len) \
do { \
if (il_get_debug_level(il) & level) \
Expand All @@ -69,7 +61,6 @@ do { \

#else
#define IL_DEBUG(__priv, level, fmt, args...)
#define IL_DEBUG_LIMIT(__priv, level, fmt, args...)
static inline void il_print_hex_dump(struct il_priv *il, int level,
const void *p, u32 len)
{}
Expand Down Expand Up @@ -169,25 +160,14 @@ static inline void il_dbgfs_unregister(struct il_priv *il)
#define IL_DEBUG_FW(p, f, a...) IL_DEBUG(p, IL_DL_FW, f, ## a)
#define IL_DEBUG_RF_KILL(p, f, a...) IL_DEBUG(p, IL_DL_RF_KILL, f, ## a)
#define IL_DEBUG_DROP(p, f, a...) IL_DEBUG(p, IL_DL_DROP, f, ## a)
#define IL_DEBUG_DROP_LIMIT(p, f, a...) \
IL_DEBUG_LIMIT(p, IL_DL_DROP, f, ## a)
#define IL_DEBUG_AP(p, f, a...) IL_DEBUG(p, IL_DL_AP, f, ## a)
#define IL_DEBUG_TXPOWER(p, f, a...) IL_DEBUG(p, IL_DL_TXPOWER, f, ## a)
#define IL_DEBUG_RATE(p, f, a...) IL_DEBUG(p, IL_DL_RATE, f, ## a)
#define IL_DEBUG_RATE_LIMIT(p, f, a...) \
IL_DEBUG_LIMIT(p, IL_DL_RATE, f, ## a)
#define IL_DEBUG_NOTIF(p, f, a...) IL_DEBUG(p, IL_DL_NOTIF, f, ## a)
#define IL_DEBUG_ASSOC(p, f, a...) \
IL_DEBUG(p, IL_DL_ASSOC | IL_DL_INFO, f, ## a)
#define IL_DEBUG_ASSOC_LIMIT(p, f, a...) \
IL_DEBUG_LIMIT(p, IL_DL_ASSOC | IL_DL_INFO, f, ## a)
#define IL_DEBUG_ASSOC(p, f, a...) IL_DEBUG(p, IL_DL_ASSOC, f, ## a)
#define IL_DEBUG_HT(p, f, a...) IL_DEBUG(p, IL_DL_HT, f, ## a)
#define IL_DEBUG_STATS(p, f, a...) IL_DEBUG(p, IL_DL_STATS, f, ## a)
#define IL_DEBUG_STATS_LIMIT(p, f, a...) \
IL_DEBUG_LIMIT(p, IL_DL_STATS, f, ## a)
#define IL_DEBUG_TX_REPLY(p, f, a...) IL_DEBUG(p, IL_DL_TX_REPLY, f, ## a)
#define IL_DEBUG_TX_REPLY_LIMIT(p, f, a...) \
IL_DEBUG_LIMIT(p, IL_DL_TX_REPLY, f, ## a)
#define IL_DEBUG_QOS(p, f, a...) IL_DEBUG(p, IL_DL_QOS, f, ## a)
#define IL_DEBUG_RADIO(p, f, a...) IL_DEBUG(p, IL_DL_RADIO, f, ## a)
#define IL_DEBUG_POWER(p, f, a...) IL_DEBUG(p, IL_DL_POWER, f, ## a)
Expand Down

0 comments on commit df12880

Please sign in to comment.