diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2010-07-06 21:36:08 -0700 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2010-09-09 07:17:20 -0700 |
commit | 5be5305b7eea4b0c01d011d4b65dc0b8c72cd5d2 (patch) | |
tree | 3e27e2249b21621dac7bd635b0466b380aedcefe /src | |
parent | 31fd64cc2f47b610a998d9cb0faf9c33bd0e9f9f (diff) | |
download | external_wpa_supplicant_8_ti-5be5305b7eea4b0c01d011d4b65dc0b8c72cd5d2.zip external_wpa_supplicant_8_ti-5be5305b7eea4b0c01d011d4b65dc0b8c72cd5d2.tar.gz external_wpa_supplicant_8_ti-5be5305b7eea4b0c01d011d4b65dc0b8c72cd5d2.tar.bz2 |
P2P: Include Extended Listen Timing attribute in (Re)AssocReq
If extended listen timing is enabled, it should be advertised in
(Re)Association Request frames sent to GOs.
Diffstat (limited to 'src')
-rw-r--r-- | src/p2p/p2p.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index 7b498e7..0adeda2 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -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); |