aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/mlme.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 7ecda9d59d8a..1b14d0204dd2 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -945,9 +945,13 @@ void ieee80211_beacon_loss_work(struct work_struct *work)
945 u.mgd.beacon_loss_work); 945 u.mgd.beacon_loss_work);
946 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; 946 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd;
947 947
948 printk(KERN_DEBUG "%s: driver reports beacon loss from AP %pM " 948#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
949 "- sending probe request\n", sdata->dev->name, 949 if (net_ratelimit()) {
950 sdata->u.mgd.bssid); 950 printk(KERN_DEBUG "%s: driver reports beacon loss from AP %pM "
951 "- sending probe request\n", sdata->dev->name,
952 sdata->u.mgd.bssid);
953 }
954#endif
951 955
952 ifmgd->flags |= IEEE80211_STA_PROBEREQ_POLL; 956 ifmgd->flags |= IEEE80211_STA_PROBEREQ_POLL;
953 ieee80211_send_probe_req(sdata, ifmgd->bssid, ifmgd->ssid, 957 ieee80211_send_probe_req(sdata, ifmgd->bssid, ifmgd->ssid,
@@ -1007,9 +1011,13 @@ static void ieee80211_associated(struct ieee80211_sub_if_data *sdata)
1007 (local->hw.conf.flags & IEEE80211_CONF_PS)) && 1011 (local->hw.conf.flags & IEEE80211_CONF_PS)) &&
1008 time_after(jiffies, 1012 time_after(jiffies,
1009 ifmgd->last_beacon + IEEE80211_MONITORING_INTERVAL)) { 1013 ifmgd->last_beacon + IEEE80211_MONITORING_INTERVAL)) {
1010 printk(KERN_DEBUG "%s: beacon loss from AP %pM " 1014#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
1011 "- sending probe request\n", 1015 if (net_ratelimit()) {
1012 sdata->dev->name, ifmgd->bssid); 1016 printk(KERN_DEBUG "%s: beacon loss from AP %pM "
1017 "- sending probe request\n",
1018 sdata->dev->name, ifmgd->bssid);
1019 }
1020#endif
1013 ifmgd->flags |= IEEE80211_STA_PROBEREQ_POLL; 1021 ifmgd->flags |= IEEE80211_STA_PROBEREQ_POLL;
1014 ieee80211_send_probe_req(sdata, ifmgd->bssid, ifmgd->ssid, 1022 ieee80211_send_probe_req(sdata, ifmgd->bssid, ifmgd->ssid,
1015 ifmgd->ssid_len, NULL, 0); 1023 ifmgd->ssid_len, NULL, 0);