diff options
author | Ben Greear <greearb@candelatech.com> | 2010-10-07 19:12:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-11 15:04:19 -0400 |
commit | b38afa87698375179026224522c2e48dcbf17e65 (patch) | |
tree | d2c205a3b8cded83f6d0ccb5dfdab480eca2b560 /net/mac80211/mlme.c | |
parent | 7623225f905263424c7254dc6a07bff083a498dd (diff) |
mac80211: Improve mlme probe response log messages.
Old messages didn't mention the device in question.
Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 5695c94c49aa..a3a9421555af 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1864,10 +1864,12 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata) | |||
1864 | 1864 | ||
1865 | else if (ifmgd->probe_send_count < IEEE80211_MAX_PROBE_TRIES) { | 1865 | else if (ifmgd->probe_send_count < IEEE80211_MAX_PROBE_TRIES) { |
1866 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG | 1866 | #ifdef CONFIG_MAC80211_VERBOSE_DEBUG |
1867 | printk(KERN_DEBUG "No probe response from AP %pM" | 1867 | wiphy_debug(local->hw.wiphy, |
1868 | " after %dms, try %d\n", bssid, | 1868 | "%s: No probe response from AP %pM" |
1869 | (1000 * IEEE80211_PROBE_WAIT)/HZ, | 1869 | " after %dms, try %d\n", |
1870 | ifmgd->probe_send_count); | 1870 | sdata->name, |
1871 | bssid, (1000 * IEEE80211_PROBE_WAIT)/HZ, | ||
1872 | ifmgd->probe_send_count); | ||
1871 | #endif | 1873 | #endif |
1872 | ieee80211_mgd_probe_ap_send(sdata); | 1874 | ieee80211_mgd_probe_ap_send(sdata); |
1873 | } else { | 1875 | } else { |
@@ -1877,9 +1879,11 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata) | |||
1877 | */ | 1879 | */ |
1878 | ifmgd->flags &= ~(IEEE80211_STA_CONNECTION_POLL | | 1880 | ifmgd->flags &= ~(IEEE80211_STA_CONNECTION_POLL | |
1879 | IEEE80211_STA_BEACON_POLL); | 1881 | IEEE80211_STA_BEACON_POLL); |
1880 | printk(KERN_DEBUG "No probe response from AP %pM" | 1882 | wiphy_debug(local->hw.wiphy, |
1881 | " after %dms, disconnecting.\n", | 1883 | "%s: No probe response from AP %pM" |
1882 | bssid, (1000 * IEEE80211_PROBE_WAIT)/HZ); | 1884 | " after %dms, disconnecting.\n", |
1885 | sdata->name, | ||
1886 | bssid, (1000 * IEEE80211_PROBE_WAIT)/HZ); | ||
1883 | ieee80211_set_disassoc(sdata, true, true); | 1887 | ieee80211_set_disassoc(sdata, true, true); |
1884 | mutex_unlock(&ifmgd->mtx); | 1888 | mutex_unlock(&ifmgd->mtx); |
1885 | mutex_lock(&local->mtx); | 1889 | mutex_lock(&local->mtx); |