[WifiKeyStore] Check needKeyStore before requesting keyStore service

Fix crash in WifiKeyStore#updateNetworkKeys casued when calling keyStore
API when there are no stored keys. Such do not exist for non-TLS
connections.

Bug: 130386682
Test: Add WPA3-Enterprise with PWD, confirm no crash
Test: Add WPA3-Enterprise with RSA 3072 cert, confirm connection
Change-Id: I6bd5b199121d248bbadb281956a800115d6af409
1 file changed
tree: dbf6f8b5e0d02d42a13220d0b4b571b5ee707754
  1. service/
  2. PREUPLOAD.cfg