]> git.ipfire.org Git - thirdparty/hostap.git/commit
nl80211: Reduce the number of nlctrl name resolution calls
authorMasashi Honma <masashi.honma@gmail.com>
Fri, 20 Aug 2021 09:26:33 +0000 (18:26 +0900)
committerJouni Malinen <j@w1.fi>
Wed, 25 Aug 2021 09:01:06 +0000 (12:01 +0300)
commit4c80937c7fb32370d90a44deb165b932089e199d
tree7314942f02a0529646c795dd7557efe1ae8c786d
parent2bbc5a2b092c4a1330b19070672c5f9d6ade8fbd
nl80211: Reduce the number of nlctrl name resolution calls

The number of nlctrl name resolution calls required to connect to a
WPA2-PSK AP is 12. And each nlctrl name resolution call spends 55 micro
seconds on a lower spec CPU like Intel Atom N270. Reduce the number of
nctrl name resolution calls from 12 to 1 by caching the results of nctrl
name resolution calls on int size memory to speed up the connection
process a little bit.

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
src/drivers/driver_nl80211.c
src/drivers/driver_nl80211.h