@@ -2106,9 +2106,9 @@ static int ieee80211_set_txq_params(struct wiphy *wiphy,
sdata->tx_conf[params->ac] = p;
if (drv_conf_tx(local, sdata, params->ac, &p)) {
- wiphy_debug(local->hw.wiphy,
- "failed to set TX queue parameters for AC %d\n",
- params->ac);
+ wiphy_dbg(local->hw.wiphy,
+ "failed to set TX queue parameters for AC %d\n",
+ params->ac);
return -EINVAL;
}
@@ -994,8 +994,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
result = ieee80211_wep_init(local);
if (result < 0)
- wiphy_debug(local->hw.wiphy, "Failed to initialize wep: %d\n",
- result);
+ wiphy_dbg(local->hw.wiphy, "Failed to initialize wep: %d\n",
+ result);
local->hw.conf.flags = IEEE80211_CONF_IDLE;
@@ -1006,8 +1006,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
result = ieee80211_init_rate_ctrl_alg(local,
hw->rate_control_algorithm);
if (result < 0) {
- wiphy_debug(local->hw.wiphy,
- "Failed to initialize rate control algorithm\n");
+ wiphy_dbg(local->hw.wiphy,
+ "Failed to initialize rate control algorithm\n");
goto fail_rate;
}
@@ -3523,11 +3523,11 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata)
* We actually lost the connection ... or did we?
* Let's make sure!
*/
- wiphy_debug(local->hw.wiphy,
- "%s: No probe response from AP %pM"
- " after %dms, disconnecting.\n",
- sdata->name,
- bssid, probe_wait_ms);
+ wiphy_dbg(local->hw.wiphy,
+ "%s: No probe response from AP %pM"
+ " after %dms, disconnecting.\n",
+ sdata->name,
+ bssid, probe_wait_ms);
ieee80211_sta_connection_lost(sdata, bssid,
WLAN_REASON_DISASSOC_DUE_TO_INACTIVITY, false);
@@ -739,8 +739,8 @@ int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local,
WARN_ON(local->rate_ctrl);
local->rate_ctrl = ref;
- wiphy_debug(local->hw.wiphy, "Selected rate control algorithm '%s'\n",
- ref->ops->name);
+ wiphy_dbg(local->hw.wiphy, "Selected rate control algorithm '%s'\n",
+ ref->ops->name);
return 0;
}
@@ -3176,9 +3176,9 @@ static bool ieee80211_prepare_and_rx_handle(struct ieee80211_rx_data *rx,
skb = skb_copy(skb, GFP_ATOMIC);
if (!skb) {
if (net_ratelimit())
- wiphy_debug(local->hw.wiphy,
- "failed to copy skb for %s\n",
- sdata->name);
+ wiphy_dbg(local->hw.wiphy,
+ "failed to copy skb for %s\n",
+ sdata->name);
return true;
}
@@ -1483,8 +1483,8 @@ static int ieee80211_skb_resize(struct ieee80211_sub_if_data *sdata,
return 0;
if (pskb_expand_head(skb, head_need, tail_need, GFP_ATOMIC)) {
- wiphy_debug(local->hw.wiphy,
- "failed to reallocate TX buffer\n");
+ wiphy_dbg(local->hw.wiphy,
+ "failed to reallocate TX buffer\n");
return -ENOMEM;
}
Both wiphy_debug() and wiphy_dbg() are used in mac80211. Change wiphy_debug() to wiphy_dbg() so all the debug messages can be dynamically controled whether to be generated or not. Signed-off-by: Zhao, Gang <gamerh2o@gmail.com> --- net/mac80211/cfg.c | 6 +++--- net/mac80211/main.c | 8 ++++---- net/mac80211/mlme.c | 10 +++++----- net/mac80211/rate.c | 4 ++-- net/mac80211/rx.c | 6 +++--- net/mac80211/tx.c | 4 ++-- 6 files changed, 19 insertions(+), 19 deletions(-)