wlan: fix for WEP with EAP-SIM/AKA method

In the case if AP is configured with dynamic WEP,station
is not able to connect to the AP. Using auth type driver
cannot distinguish between STATIC and Dynamic WEP, as
auth type can be OPEN for both static and dynamic WEP.
For WEP (both static and dynamic),TL is moving to
connected state once association completed. TL is moved
to AUTHENTICATED state, when supplicant do change station
with AUTHORIZED flag set for the AP. For dynamic WEP as
key length is not known at the time of connect,supplicant
send WEP104 as default key length in connect command,
which will be changed in set key in case AP is configured
with WEP 40. Setting the unicast and broadcast encryption
type based on the key length received in set_default_key.
As driver is passing encryption type as DYNAMIC WEP to
SME in connect command,keys passed in connect command are
not getting plumbed automatically by SME,once association
is completed.
So Forcefully setting default key to
SME/PE/Firmware during set_default_key ops even if
default key_idx is same as what is received in connect
command.

CRs-fixed: 469675
Change-Id: Idd792cc042058745540b53e6de54bfa2730e8d10
3 files changed
tree: b3af8bca0bf736bd0997955cf5200ead33982829
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig