hostap/src/p2p
Masashi Honma 30c371e8a5 P2P: Reduce redundant PSK generation for GO
The PSK generation done by pbkdf2_sha1() is one of the longest CPU time
users according to our profiling from boot to GO started.

So I have reduced some steps.

I could boot a GO by this command sequence.
-------------
add_net
set_network 0 ssid '"DIRECT-XX"'
set_network 0 psk
'"123456789012345678901234567890123456789012345678901234567890123"'
set_network 0 proto RSN
set_network 0 key_mgmt WPA-PSK
set_network 0 pairwise CCMP
set_network 0 auth_alg OPEN
set_network 0 mode 3
set_network 0 disabled 2
p2p_group_add persistent=0 freq=2412
-------------

By this sequence, pbkdf2_sha1() was called three times and the function
calculates the same value each time. Reduce number of calls to
pbkdf2_sha1() from 3 to 1 by caching the previous result.

Signed-hostap: Masashi Honma <masashi.honma at gmail.com>
2012-11-11 11:39:24 +02:00
..
Makefile P2P: Add initial version of P2P Module 2010-09-09 07:17:17 -07:00
p2p.c P2P: Allow discoverable interval for p2p_find to be configured 2012-10-30 15:12:04 +02:00
p2p.h P2P: Reduce redundant PSK generation for GO 2012-11-11 11:39:24 +02:00
p2p_build.c P2P: Show own channel list in debug log 2012-09-24 22:14:50 +03:00
p2p_dev_disc.c Remove the GPL notification from files contributed by Atheros 2012-02-11 19:39:36 +02:00
p2p_go_neg.c P2P: Improve robustness against lost ctrl::ack frames 2012-10-13 17:33:16 +03:00
p2p_group.c WFD: Add Wi-Fi Display support 2012-08-29 19:51:29 +03:00
p2p_i.h P2P: Allow discoverable interval for p2p_find to be configured 2012-10-30 15:12:04 +02:00
p2p_invitation.c P2P: Allow peer to propose channel in invitation process 2012-09-24 22:15:58 +03:00
p2p_parse.c WFD: Add Wi-Fi Display support 2012-08-29 19:51:29 +03:00
p2p_pd.c P2P: Fix ignoring of PD Response due to dialog token mismatch 2012-09-25 21:41:52 +03:00
p2p_sd.c WFD: Add support for sending Wi-Fi Display service discovery requests 2012-08-29 19:51:29 +03:00
p2p_utils.c Remove the GPL notification from files contributed by Atheros 2012-02-11 19:39:36 +02:00