Commit b38afa87 authored by Ben Greear's avatar Ben Greear Committed by John W. Linville

mac80211: Improve mlme probe response log messages.

Old messages didn't mention the device in question.
Signed-off-by: default avatarBen Greear <greearb@candelatech.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7623225f
...@@ -1864,10 +1864,12 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata) ...@@ -1864,10 +1864,12 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata)
else if (ifmgd->probe_send_count < IEEE80211_MAX_PROBE_TRIES) { else if (ifmgd->probe_send_count < IEEE80211_MAX_PROBE_TRIES) {
#ifdef CONFIG_MAC80211_VERBOSE_DEBUG #ifdef CONFIG_MAC80211_VERBOSE_DEBUG
printk(KERN_DEBUG "No probe response from AP %pM" wiphy_debug(local->hw.wiphy,
" after %dms, try %d\n", bssid, "%s: No probe response from AP %pM"
(1000 * IEEE80211_PROBE_WAIT)/HZ, " after %dms, try %d\n",
ifmgd->probe_send_count); sdata->name,
bssid, (1000 * IEEE80211_PROBE_WAIT)/HZ,
ifmgd->probe_send_count);
#endif #endif
ieee80211_mgd_probe_ap_send(sdata); ieee80211_mgd_probe_ap_send(sdata);
} else { } else {
...@@ -1877,9 +1879,11 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata) ...@@ -1877,9 +1879,11 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata)
*/ */
ifmgd->flags &= ~(IEEE80211_STA_CONNECTION_POLL | ifmgd->flags &= ~(IEEE80211_STA_CONNECTION_POLL |
IEEE80211_STA_BEACON_POLL); IEEE80211_STA_BEACON_POLL);
printk(KERN_DEBUG "No probe response from AP %pM" wiphy_debug(local->hw.wiphy,
" after %dms, disconnecting.\n", "%s: No probe response from AP %pM"
bssid, (1000 * IEEE80211_PROBE_WAIT)/HZ); " after %dms, disconnecting.\n",
sdata->name,
bssid, (1000 * IEEE80211_PROBE_WAIT)/HZ);
ieee80211_set_disassoc(sdata, true, true); ieee80211_set_disassoc(sdata, true, true);
mutex_unlock(&ifmgd->mtx); mutex_unlock(&ifmgd->mtx);
mutex_lock(&local->mtx); mutex_lock(&local->mtx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment