30c371e8a5
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> |
||
---|---|---|
.. | ||
Makefile | ||
p2p.c | ||
p2p.h | ||
p2p_build.c | ||
p2p_dev_disc.c | ||
p2p_go_neg.c | ||
p2p_group.c | ||
p2p_i.h | ||
p2p_invitation.c | ||
p2p_parse.c | ||
p2p_pd.c | ||
p2p_sd.c | ||
p2p_utils.c |