mwifiex: handle auto authentication mode correctly
[deliverable/linux.git] / drivers / net / wireless / mwifiex / join.c
index ee439fc2f4f361eb0ee233351c26f8309468b40e..5c95e48390047664106898779c39591edfb63e9e 100644 (file)
@@ -585,7 +585,7 @@ int mwifiex_ret_802_11_associate(struct mwifiex_private *priv,
                       le16_to_cpu(assoc_rsp->cap_info_bitmap),
                       le16_to_cpu(assoc_rsp->a_id));
 
-               ret = -1;
+               ret = le16_to_cpu(assoc_rsp->status_code);
                goto done;
        }
 
This page took 0.027224 seconds and 5 git commands to generate.