I am trying to understand the configuration options for wpa_supplicant. WEP is almost irrelevant, but it does occasionally exist in the wild, so I looked up an example configuration (from here):
network={
ssid="MYWEAKLYENCRYPTEDWLAN"
key_mgmt=NONE
wep_key0="12345"
wep_tx_keyidx=0
}
This is simple enough. But I've found other examples with multiple keys, such as:
network={
ssid="static-wep-test"
key_mgmt=NONE
wep_key0="abcde"
wep_key1=0102030405
wep_key2="1234567890123"
wep_tx_keyidx=0
priority=5
}
In fact, that is from the example in the wpa_supplicant repository. It seems you are allowed to have up to four keys (wep_key0-wep_key3) and wep_tx_keyidx specifies which is the default.
The question is, what is the purpose of providing more than one key? Are there situations where that is necessary?