Parcourir la source

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.
Jouni Malinen il y a 15 ans
Parent
commit
5be5305b7e
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/p2p/p2p.c

+ 3 - 0
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);