Skip to content

Commit b38afa8

Browse files
greearblinvjw
authored andcommitted
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>
1 parent 7623225 commit b38afa8

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

‎net/mac80211/mlme.c‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1864,10 +1864,12 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata)
18641864

18651865
else if (ifmgd->probe_send_count < IEEE80211_MAX_PROBE_TRIES) {
18661866
#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
1867-
printk(KERN_DEBUG "No probe response from AP %pM"
1868-
" after %dms, try %d\n", bssid,
1869-
(1000 * IEEE80211_PROBE_WAIT)/HZ,
1870-
ifmgd->probe_send_count);
1867+
wiphy_debug(local->hw.wiphy,
1868+
"%s: No probe response from AP %pM"
1869+
" after %dms, try %d\n",
1870+
sdata->name,
1871+
bssid, (1000 * IEEE80211_PROBE_WAIT)/HZ,
1872+
ifmgd->probe_send_count);
18711873
#endif
18721874
ieee80211_mgd_probe_ap_send(sdata);
18731875
} else {
@@ -1877,9 +1879,11 @@ void ieee80211_sta_work(struct ieee80211_sub_if_data *sdata)
18771879
*/
18781880
ifmgd->flags &= ~(IEEE80211_STA_CONNECTION_POLL |
18791881
IEEE80211_STA_BEACON_POLL);
1880-
printk(KERN_DEBUG "No probe response from AP %pM"
1881-
" after %dms, disconnecting.\n",
1882-
bssid, (1000 * IEEE80211_PROBE_WAIT)/HZ);
1882+
wiphy_debug(local->hw.wiphy,
1883+
"%s: No probe response from AP %pM"
1884+
" after %dms, disconnecting.\n",
1885+
sdata->name,
1886+
bssid, (1000 * IEEE80211_PROBE_WAIT)/HZ);
18831887
ieee80211_set_disassoc(sdata, true, true);
18841888
mutex_unlock(&ifmgd->mtx);
18851889
mutex_lock(&local->mtx);

0 commit comments

Comments
 (0)