Handle join failure

In case join fails driver leaves hardware in joined state.
That will cause different side effects like next join will
always fail and scan does not work properly. As a fix just
delete bss  in case join failed.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Do not forget to remove sta in AP mode

In AP mode sometimes HW remained misconfigured because of
previous sta was not removed.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Do not encrypt EAPOL keys

Keys are coming in data frames. So do not encrypt
data packets until key exchange is finished.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Configure correct AID and sta_index in AP mode

Encrypted AP mode was not working because of misconfiguration.

Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
Merge pull request #65 from KrasnikovEugene/ap_en

Support encryption in AP mode