Configure bss when encryption is set

Before setting keys update HW with encryption type.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Format TKIP key in the right order

Supplicant is sending TKIP key in the wrong format:
Temporal Key (16 bytes) - TX MIC (8 bytes) - RX MIC (8 bytes)
But HW is expecting TKIP key in another order:
Temporal Key (16 bytes) - RX MIC (8 bytes) - TX MIC (8 bytes)
As a result connection to AP will fail. So make sure key is
transferred properly.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>