wlan: hdd: send protocol reason code for auth fail

When attempt of connection fails, driver sends the generic
reason code instead of sending protocol reason code.
This restricts application not to reconfigure station to
SHARED-WEP when OPEN-WEP authentication fails.
This change has been done in a way that driver will send exact
protocol reason code in case of OPEN-WEP or SHARED-WEP besides
station interface is not in connected state.

Change-Id: Ic04d9467c7c5cb5b6777671820f2c5bba811a12f
CRs-Fixed: 772872
1 file changed
tree: d6ae6c10a00559574242ad1bf3091bb8394008ff
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile