]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
Use NIC's connect method.
authorMichael Brown <mcb30@etherboot.org>
Wed, 13 Apr 2005 00:18:35 +0000 (00:18 +0000)
committerMichael Brown <mcb30@etherboot.org>
Wed, 13 Apr 2005 00:18:35 +0000 (00:18 +0000)
src/core/nic.c

index 59344f4a069d49dbd0079a7d2a92417a77778b8b..b8ce252b4a7766850c39b9b3597767a2908f28ae 100644 (file)
@@ -236,9 +236,15 @@ struct nic *nic = &dev.nic;
 /*
  * Find out what our boot parameters are
  */
-static int nic_load_configuration(struct dev *dev __unused)
-{
+static int nic_load_configuration ( struct dev *dev ) {
+       struct nic *nic = &dev->nic;
        int server_found;
+
+       if ( ! nic->nic_op->connect ( nic ) ) {
+               printf ( "No connection to network\n" );
+               return 0;
+       }
+
        /* Find a server to get BOOTP reply from */
 #ifdef RARP_NOT_BOOTP
        printf("Searching for server (RARP)...");