]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Include Extended Listen Timing attribute in (Re)AssocReq
authorJouni Malinen <jouni.malinen@atheros.com>
Wed, 7 Jul 2010 04:36:08 +0000 (21:36 -0700)
committerJouni Malinen <j@w1.fi>
Thu, 9 Sep 2010 14:17:20 +0000 (07:17 -0700)
If extended listen timing is enabled, it should be advertised in
(Re)Association Request frames sent to GOs.

src/p2p/p2p.c

index 7b498e7a30b1f6ca3abbec0e5f33e8de6f064b55..0adeda2d24ed305d9cac63cc93308f828de24522 100644 (file)
@@ -1670,6 +1670,9 @@ int p2p_assoc_req_ie(struct p2p_data *p2p, const u8 *bssid, u8 *buf,
 
        lpos = p2p_buf_add_ie_hdr(tmp);
        p2p_buf_add_capability(tmp, p2p->dev_capab, 0);
+       if (p2p->ext_listen_interval)
+               p2p_buf_add_ext_listen_timing(tmp, p2p->ext_listen_period,
+                                             p2p->ext_listen_interval);
        p2p_buf_add_device_info(tmp, p2p, peer);
        p2p_buf_update_ie_hdr(tmp, lpos);