Refactor canAccessScanResult

WifiPermissionUtil.canAccessScanResults is now void. Where it would
return false before it now throws a SecurityException.

Also fixed an existing test that is passing for the wrong reason.
The test should be checking for a failure, but the CAN_READ_PEER_MAC_ADDRESS
permission made it pass.

Bug: 73160471
Test: compile, run ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: If32a546ee646e6c8e786a23c017c86f33be7e304
7 files changed