P2P: Make the default p2p_find delay value configurable
authorNirav Shah <nnshah@qti.qualcomm.com>
Mon, 9 Jun 2014 16:43:26 +0000 (19:43 +0300)
committerJouni Malinen <j@w1.fi>
Mon, 9 Jun 2014 16:43:26 +0000 (19:43 +0300)
commitd3b204694a39e6c57a4c6689b87f4192e1b93a06
tree607d31ab7d57f8bbf9d4cbfeb149d789eeb32b60
parent3dacd3ece743d938e848813d8935808c260eda2f
P2P: Make the default p2p_find delay value configurable

This makes the p2p_find default delay value configurable as
p2p_search_delay parameter through the configuration file (and through
control interface "SET p2p_search_delay <value>" on the P2P management
interface.

This parameter controls the number milliseconds of extra delay that is
added between search iterations when there is a concurrent operation in
progress. This can be used, e.g., p2p_search_delay=100 to make p2p_find
friendlier to concurrent operations by avoiding it from taking 100% of
the radio resources. The default value is the previous default, i.e.,
500 ms. Smaller values can be used to find peers more quickly at the
cost of larger effect to concurrent operations while a larger value
leaves more time for the concurrent operations at the cost of making
device discovery take longer time.

The optional p2p_find delay argument can still be used to override the
search delay for each search operation.

Since the P2P_CONCURRENT_SEARCH_DELAY macro is not used anymore, the
driver specific build parameter for bcmdhd from Android.mk is also
removed. Similar configuration can now be achieved with
p2p_search_delay=0 in the p2p0 interface configuration file.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant/Android.mk
wpa_supplicant/README-P2P
wpa_supplicant/config.c
wpa_supplicant/config.h
wpa_supplicant/config_file.c
wpa_supplicant/dbus/dbus_new_handlers_p2p.c
wpa_supplicant/p2p_supplicant.c
wpa_supplicant/wpa_cli.c
wpa_supplicant/wpa_supplicant.conf