Fixed some of the debug code so we still grab the download buffer info.

This commit is contained in:
mark 2000-02-01 22:06:31 +00:00
parent 5a68b9ea19
commit 432c044447
1 changed files with 7 additions and 4 deletions

View File

@ -667,7 +667,10 @@ int hfa384x_drvr_flashdl_enable(hfa384x_t *hw)
DBFENTER;
/* Check that a port isn't active */
for ( i = 0; i < HFA384x_PORTID_MAX; i++) {
if ( hw->port_enabled[i] ) return -EINVAL;
if ( hw->port_enabled[i] ) {
WLAN_LOG_DEBUG0(1,"called when port enabled.\n");
return -EINVAL;
}
}
/* Check that we're not already in a download state */
@ -675,9 +678,6 @@ int hfa384x_drvr_flashdl_enable(hfa384x_t *hw)
return -EINVAL;
}
WLAN_LOG_DEBUG0(1,"flashdl_enable\n");
hw->dlstate = HFA384x_DLSTATE_FLASHENABLED;
#if 0
/* Retrieve the buffer loc&size and timeout */
if ( (result = hfa384x_drvr_getconfig(hw, HFA384x_RID_DOWNLOADBUFFER,
&(hw->bufinfo), sizeof(hw->bufinfo))) ) {
@ -692,6 +692,9 @@ hw->dlstate = HFA384x_DLSTATE_FLASHENABLED;
}
hw->dltimeout = hfa384x2host_16(hw->dltimeout);
WLAN_LOG_DEBUG0(1,"flashdl_enable\n");
hw->dlstate = HFA384x_DLSTATE_FLASHENABLED;
#if 0
/* Enable the aux port */
if ( (result = hfa384x_cmd_aux_enable(hw)) ) {
return result;