aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p/p2p_i.h
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2012-10-30 13:12:04 (GMT)
committerJouni Malinen <j@w1.fi>2012-10-30 13:12:04 (GMT)
commit96beff11d152dafc0dac45a42f5d6c5ac51e3bbe (patch)
treee09092e9fbd9d9f06add31be8589b3f84768f2d9 /src/p2p/p2p_i.h
parent23270cd8f56768188f4b725d257ad2bdf009c96e (diff)
downloadhostap-96beff11d152dafc0dac45a42f5d6c5ac51e3bbe.zip
hostap-96beff11d152dafc0dac45a42f5d6c5ac51e3bbe.tar.gz
hostap-96beff11d152dafc0dac45a42f5d6c5ac51e3bbe.tar.bz2
P2P: Allow discoverable interval for p2p_find to be configured
The new P2P_SET parameter disc_int can now be used to configure discoverable interval for p2p_find operations. The format of the command for setting the values is "P2P_SET disc_int <minDiscoverableInterval> <maxDiscoverableInterval> <max TUs for discoverable interval>". The first two parameters are given in units of 100 TUs (102.4 ms). The third parameter can be used to further limit the interval into a specific TU amount. If it is set to -1, no such additional limitation is enforced. It should be noted that the P2P specification describes the random Listen state interval to be in units of 100 TUs, so setting the max TU value to anything else than -1 is not compliant with the specification and should not be used in normal cases. The default parameters can be set with "P2P_SET disc_int 1 3 -1". Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src/p2p/p2p_i.h')
-rw-r--r--src/p2p/p2p_i.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index 0f00c54..c38eb3b 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -226,6 +226,11 @@ struct p2p_data {
int max_disc_int;
/**
+ * max_disc_tu - Maximum number of TUs for discoverable interval
+ */
+ int max_disc_tu;
+
+ /**
* devices - List of known P2P Device peers
*/
struct dl_list devices;