Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 184540
b: refs/heads/master
c: b446918
h: refs/heads/master
v: v3
  • Loading branch information
Helmut Schaa authored and John W. Linville committed Feb 26, 2010
1 parent b54f050 commit d87d58c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7bfbae10dc10a5c94a780d117a57e875d77e8e5a
refs/heads/master: b446918b77c717a34eaa853dfab55f579d330551
6 changes: 5 additions & 1 deletion trunk/net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,12 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)

debugfs_hw_add(local);

/*
* if the driver doesn't specify a max listen interval we
* use 5 which should be a safe default
*/
if (local->hw.max_listen_interval == 0)
local->hw.max_listen_interval = 1;
local->hw.max_listen_interval = 5;

local->hw.conf.listen_interval = local->hw.max_listen_interval;

Expand Down

0 comments on commit d87d58c

Please sign in to comment.