projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d339d5c
)
cfg80211: prohibit zero keepalive interval
author
Johannes Berg
<johannes.berg@intel.com>
Tue, 26 Feb 2013 12:56:40 +0000
(13:56 +0100)
committer
Johannes Berg
<johannes.berg@intel.com>
Wed, 6 Mar 2013 15:35:50 +0000
(16:35 +0100)
It's not useful to specify a 0 keepalive interval, this
would send too much data. Prohibit this to also avoid
device issues.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/nl80211.c
b/net/wireless/nl80211.c
index 3acde3f88d3a92226bd34e15bc4a2aabb229649b..a8bd453d22b946cb39e2f65a95996aa92a2a2180 100644
(file)
--- a/
net/wireless/nl80211.c
+++ b/
net/wireless/nl80211.c
@@
-7636,7
+7636,8
@@
static int nl80211_parse_wowlan_tcp(struct cfg80211_registered_device *rdev,
return -EINVAL;
if (nla_get_u32(tb[NL80211_WOWLAN_TCP_DATA_INTERVAL]) >
- rdev->wiphy.wowlan.tcp->data_interval_max)
+ rdev->wiphy.wowlan.tcp->data_interval_max ||
+ nla_get_u32(tb[NL80211_WOWLAN_TCP_DATA_INTERVAL]) == 0)
return -EINVAL;
wake_size = nla_len(tb[NL80211_WOWLAN_TCP_WAKE_PAYLOAD]);