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

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