|
@@ -13,12 +13,10 @@ $Id$
|
13
|
13
|
* your option) any later version.
|
14
|
14
|
*/
|
15
|
15
|
|
16
|
|
-/* to get some global routines like printf */
|
17
|
16
|
#include "etherboot.h"
|
18
|
|
-/* to get the interface to the body of the program */
|
19
|
17
|
#include "nic.h"
|
20
|
|
-/* to get the PCI support functions, if this is a PCI NIC */
|
21
|
18
|
#include <gpxe/pci.h>
|
|
19
|
+#include <gpxe/ethernet.h>
|
22
|
20
|
|
23
|
21
|
/*
|
24
|
22
|
* Hard-coded SSID
|
|
@@ -770,9 +768,10 @@ static int prism2_probe ( struct nic *nic, hfa384x_t *hw ) {
|
770
|
768
|
hfa384x_setreg(hw, 0, HFA384x_INTEN); /* Disable interrupts */
|
771
|
769
|
hfa384x_setreg(hw, 0xffff, HFA384x_EVACK); /* Acknowledge any spurious events */
|
772
|
770
|
|
|
771
|
+ DBG ( "MAC address %s\n", eth_ntoa ( nic->node_addr ) );
|
|
772
|
+
|
773
|
773
|
/* Retrieve MAC address (and fill out nic->node_addr) */
|
774
|
774
|
hfa384x_drvr_getconfig ( hw, HFA384x_RID_CNFOWNMACADDR, nic->node_addr, HFA384x_RID_CNFOWNMACADDR_LEN );
|
775
|
|
- printf ( "MAC address %!\n", nic->node_addr );
|
776
|
775
|
|
777
|
776
|
/* Prepare card for autojoin */
|
778
|
777
|
/* This procedure is reverse-engineered from a register-level trace of the Linux driver's join process */
|
|
@@ -841,7 +840,9 @@ static int prism2_probe ( struct nic *nic, hfa384x_t *hw ) {
|
841
|
840
|
|
842
|
841
|
/* Retrieve BSSID and print Connected message */
|
843
|
842
|
result = hfa384x_drvr_getconfig(hw, HFA384x_RID_CURRENTBSSID, hw->bssid, WLAN_BSSID_LEN);
|
844
|
|
- printf ( "Link connected (BSSID %! - MAC address %!)\n", hw->bssid, nic->node_addr );
|
|
843
|
+
|
|
844
|
+ DBG ( "Link connected (BSSID %s - ", eth_ntoa ( hw->bssid ) );
|
|
845
|
+ DBG ( " MAC address %s)\n", eth_ntoa (nic->node_addr ) );
|
845
|
846
|
|
846
|
847
|
/* point to NIC specific routines */
|
847
|
848
|
nic->nic_op = &prism2_operations;
|