int qeth_core_hardsetup_card(struct qeth_card *);
 void qeth_print_status_message(struct qeth_card *);
 int qeth_init_qdio_queues(struct qeth_card *);
-int qeth_send_startlan(struct qeth_card *);
 int qeth_send_ipa_cmd(struct qeth_card *, struct qeth_cmd_buffer *,
                  int (*reply_cb)
                  (struct qeth_card *, struct qeth_reply *, unsigned long),
 
 }
 EXPORT_SYMBOL_GPL(qeth_send_ipa_cmd);
 
-int qeth_send_startlan(struct qeth_card *card)
+static int qeth_send_startlan(struct qeth_card *card)
 {
        int rc;
        struct qeth_cmd_buffer *iob;
        rc = qeth_send_ipa_cmd(card, iob, NULL, NULL);
        return rc;
 }
-EXPORT_SYMBOL_GPL(qeth_send_startlan);
 
 static int qeth_default_setadapterparms_cb(struct qeth_card *card,
                struct qeth_reply *reply, unsigned long data)
                goto out;
        }
 
+       rc = qeth_send_startlan(card);
+       if (rc) {
+               QETH_DBF_TEXT_(SETUP, 2, "6err%d", rc);
+               if (rc == IPA_RC_LAN_OFFLINE) {
+                       dev_warn(&card->gdev->dev,
+                               "The LAN is offline\n");
+                       card->lan_online = 0;
+               } else {
+                       rc = -ENODEV;
+                       goto out;
+               }
+       } else
+               card->lan_online = 1;
+
        card->options.ipa4.supported_funcs = 0;
        card->options.ipa6.supported_funcs = 0;
        card->options.adp.supported_funcs = 0;
        if (qeth_is_supported(card, IPA_SETADAPTERPARMS)) {
                rc = qeth_query_setadapterparms(card);
                if (rc < 0) {
-                       QETH_DBF_TEXT_(SETUP, 2, "6err%d", rc);
+                       QETH_DBF_TEXT_(SETUP, 2, "7err%d", rc);
                        goto out;
                }
        }
        if (qeth_adp_supported(card, IPA_SETADP_SET_DIAG_ASSIST)) {
                rc = qeth_query_setdiagass(card);
                if (rc < 0) {
-                       QETH_DBF_TEXT_(SETUP, 2, "7err%d", rc);
+                       QETH_DBF_TEXT_(SETUP, 2, "8err%d", rc);
                        goto out;
                }
        }
 
        /* softsetup */
        QETH_DBF_TEXT(SETUP, 2, "softsetp");
 
-       rc = qeth_send_startlan(card);
-       if (rc) {
-               QETH_DBF_TEXT_(SETUP, 2, "1err%d", rc);
-               if (rc == 0xe080) {
-                       dev_warn(&card->gdev->dev,
-                               "The LAN is offline\n");
-                       card->lan_online = 0;
-                       goto contin;
-               }
-               rc = -ENODEV;
-               goto out_remove;
-       } else
-               card->lan_online = 1;
-
-contin:
        if ((card->info.type == QETH_CARD_TYPE_OSD) ||
            (card->info.type == QETH_CARD_TYPE_OSX)) {
                rc = qeth_l2_start_ipassists(card);
 
        /* softsetup */
        QETH_DBF_TEXT(SETUP, 2, "softsetp");
 
-       rc = qeth_send_startlan(card);
-       if (rc) {
-               QETH_DBF_TEXT_(SETUP, 2, "1err%d", rc);
-               if (rc == 0xe080) {
-                       dev_warn(&card->gdev->dev,
-                               "The LAN is offline\n");
-                       card->lan_online = 0;
-                       goto contin;
-               }
-               rc = -ENODEV;
-               goto out_remove;
-       } else
-               card->lan_online = 1;
-
-contin:
        rc = qeth_l3_setadapter_parms(card);
        if (rc)
                QETH_DBF_TEXT_(SETUP, 2, "2err%04x", rc);