aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/main.c6
-rw-r--r--net/mac80211/work.c1
2 files changed, 6 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index ec8f767ba95b..06c33b68d8e5 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -558,8 +558,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
558 558
559 debugfs_hw_add(local); 559 debugfs_hw_add(local);
560 560
561 /*
562 * if the driver doesn't specify a max listen interval we
563 * use 5 which should be a safe default
564 */
561 if (local->hw.max_listen_interval == 0) 565 if (local->hw.max_listen_interval == 0)
562 local->hw.max_listen_interval = 1; 566 local->hw.max_listen_interval = 5;
563 567
564 local->hw.conf.listen_interval = local->hw.max_listen_interval; 568 local->hw.conf.listen_interval = local->hw.max_listen_interval;
565 569
diff --git a/net/mac80211/work.c b/net/mac80211/work.c
index 7e708d5c88b4..1e1ea3007b06 100644
--- a/net/mac80211/work.c
+++ b/net/mac80211/work.c
@@ -869,6 +869,7 @@ static void ieee80211_work_work(struct work_struct *work)
869 break; 869 break;
870 case IEEE80211_WORK_ABORT: 870 case IEEE80211_WORK_ABORT:
871 rma = WORK_ACT_TIMEOUT; 871 rma = WORK_ACT_TIMEOUT;
872 break;
872 case IEEE80211_WORK_DIRECT_PROBE: 873 case IEEE80211_WORK_DIRECT_PROBE:
873 rma = ieee80211_direct_probe(wk); 874 rma = ieee80211_direct_probe(wk);
874 break; 875 break;