]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
fix TCP wowlan bug
authorJohannes Berg <johannes.berg@intel.com>
Tue, 26 Feb 2013 12:54:32 +0000 (13:54 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 26 Feb 2013 12:54:32 +0000 (13:54 +0100)
wowlan.c

index 4be43d96e6919e0dba9caebe1fce7070a0de6c6d..b4a27150ff605fa87876619d0c96427f6c05bbdb 100644 (file)
--- a/wowlan.c
+++ b/wowlan.c
@@ -94,7 +94,7 @@ static int wowlan_parse_tcp_file(struct nl_msg *msg, const char *fn)
                        free(pkt);
                } else if (strncmp(buf, "data.interval=", 14) == 0) {
                        NLA_PUT_U32(msg, NL80211_WOWLAN_TCP_DATA_INTERVAL,
-                                   atoi(buf));
+                                   atoi(buf + 14));
                } else if (strncmp(buf, "wake=", 5) == 0) {
                        unsigned char *pat, *mask;
                        size_t patlen;