projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de3d43a
)
cfg80211: fix sending WoWLAN TCP wakeup settings
author
Johannes Berg
<johannes.berg@intel.com>
Thu, 16 May 2013 08:24:28 +0000
(10:24 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Thu, 16 May 2013 20:38:09 +0000
(22:38 +0200)
The code sending the current WoWLAN TCP wakeup settings in
nl80211_send_wowlan_tcp() is not closing the nested attribute,
thus causing the parser to get confused on the receiver side
in userspace (iw). Fix this.
Cc: stable@vger.kernel.org [3.9]
Reported-by: Deepak Arora <deepakx.arora@intel.com>
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 0dca987abae492d4eb0a539b7483e53ad4cc53a4..dfdb5e6432110f15afa4730e9fae0f05d7b011e8 100644
(file)
--- a/
net/wireless/nl80211.c
+++ b/
net/wireless/nl80211.c
@@
-7577,6
+7577,8
@@
static int nl80211_send_wowlan_tcp(struct sk_buff *msg,
&tcp->payload_tok))
return -ENOBUFS;
+ nla_nest_end(msg, nl_tcp);
+
return 0;
}