summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-05-16 10:24:28 +0200
committerJohannes Berg <johannes.berg@intel.com>2013-05-16 22:38:09 +0200
commite248ad30204eff6559b4d2d94d49d9d46c08185a (patch)
treef1aec8826c778a1be30962f5fcd543d0eb7dcc29 /net
parentde3d43a37de9549356d1bc4a6a2a3f07ccbdf072 (diff)
downloadlinux-e248ad30204eff6559b4d2d94d49d9d46c08185a.tar.gz
linux-e248ad30204eff6559b4d2d94d49d9d46c08185a.tar.bz2
linux-e248ad30204eff6559b4d2d94d49d9d46c08185a.zip
cfg80211: fix sending WoWLAN TCP wakeup settings
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>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/nl80211.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 0dca987abae4..dfdb5e643211 100644
--- 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;
}