staging: rtl8723au: rtw_select_and_join_from_scanned_queue23a() never returns 2
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 9 Jun 2014 13:16:57 +0000 (15:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Jun 2014 21:04:23 +0000 (14:04 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme.c

index d2b38f7abca3830e26e9e6c739269cd0276de9a8..1557088f8cee119317be5ce9c71deea9547cc945 100644 (file)
@@ -742,10 +742,7 @@ rtw_surveydone_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf)
                        pmlmepriv->to_join = false;
                        ret = rtw_select_and_join_from_scanned_queue23a(
                                pmlmepriv);
-                       if (ret == 2) {/* there is no need to wait */
-                               _clr_fwstate_(pmlmepriv, _FW_UNDER_LINKING);
-                               rtw_indicate_connect23a(adapter);
-                       } else if (ret != _SUCCESS) {
+                       if (ret != _SUCCESS) {
                                DBG_8723A("try_to_join, but select scanning "
                                          "queue fail, to_roaming:%d\n",
                                          adapter->mlmepriv.to_roaming);