Added result code to error output for the NV and NVWRITE commands.

This commit is contained in:
mark 2000-11-19 16:31:25 +00:00
parent ca89d16182
commit fc76fe38e4
1 changed files with 7 additions and 4 deletions

View File

@ -899,8 +899,9 @@ WLAN_HEX_DUMP(1, "dldata", buf+(hw->bufinfo.len*i), currlen);
result = hfa384x_cmd_download(hw, HFA384x_PROGMODE_NV, result = hfa384x_cmd_download(hw, HFA384x_PROGMODE_NV,
destlo, desthi, currlen); destlo, desthi, currlen);
if ( result ) { if ( result ) {
WLAN_LOG_ERROR3("download(NV,lo=%x,hi=%x,len=%lx) cmd failed. Aborting d/l\n", WLAN_LOG_ERROR4("download(NV,lo=%x,hi=%x,len=%lx) "
destlo, desthi, currlen); "cmd failed, result=%d. Aborting d/l\n",
destlo, desthi, currlen, result);
kfree_s(verbuf, len); kfree_s(verbuf, len);
return result; return result;
} }
@ -910,8 +911,10 @@ WLAN_HEX_DUMP(1, "dldata", buf+(hw->bufinfo.len*i), currlen);
/* set the download 'write flash' mode */ /* set the download 'write flash' mode */
result = hfa384x_cmd_download(hw, HFA384x_PROGMODE_NVWRITE, 0,0,0); result = hfa384x_cmd_download(hw, HFA384x_PROGMODE_NVWRITE, 0,0,0);
if ( result ) { if ( result ) {
WLAN_LOG_ERROR3("download(NVWRITE,lo=%x,hi=%x,len=%lx) cmd failed. Aborting d/l\n", WLAN_LOG_ERROR4(
destlo, desthi, currlen); "download(NVWRITE,lo=%x,hi=%x,len=%lx) "
"cmd failed, result=%d. Aborting d/l\n",
destlo, desthi, currlen, result);
kfree_s(verbuf, len); kfree_s(verbuf, len);
return result; return result;
} }