Wifi: validate the wep key specified by the key index

WEP supports multiple keys and wifi should check the corresponding one,
but not always the first one.

Bug: 140541572
Test: atest FrameworksWifiApiTests
Change-Id: I0aa653db069b2811e1d6ede7f34bd7150b16d64c
3 files changed