Copied the collection of the download space and timeout to ramdl_enable().

This commit is contained in:
mark 2000-02-03 21:20:40 +00:00
parent 09d37de5f1
commit 3094d96b73
2 changed files with 17 additions and 2 deletions

View File

@ -510,6 +510,21 @@ int hfa384x_drvr_ramdl_enable(hfa384x_t *hw, UINT32 exeaddr)
WLAN_LOG_DEBUG0(1,"Download state not disabled.\n");
return -EINVAL;
}
/* Retrieve the buffer loc&size and timeout */
if ( (result = hfa384x_drvr_getconfig(hw, HFA384x_RID_DOWNLOADBUFFER,
&(hw->bufinfo), sizeof(hw->bufinfo))) ) {
return result;
}
hw->bufinfo.page = hfa384x2host_16(hw->bufinfo.page);
hw->bufinfo.offset = hfa384x2host_16(hw->bufinfo.offset);
hw->bufinfo.len = hfa384x2host_16(hw->bufinfo.len);
if ( (result = hfa384x_drvr_getconfig16(hw, HFA384x_RID_MAXLOADTIME,
&(hw->dltimeout))) ) {
return result;
}
hw->dltimeout = hfa384x2host_16(hw->dltimeout);
#if 0
WLAN_LOG_DEBUG1(1,"ramdl_enable, exeaddr=0x%08x\n", exeaddr);
hw->dlstate = HFA384x_DLSTATE_RAMENABLED;

View File

@ -1217,9 +1217,9 @@ int prism2mgmt_start(wlandevice_t *wlandev, void *msgp)
/* Validate the command, if BSStype=infra is the tertiary loaded? */
if ( (msg->bsstype.data == P80211ENUM_bsstype_independent &&
priv->cap_sup_sta.role != 4) ||
priv->cap_sup_sta.id != 4) ||
(msg->bsstype.data == P80211ENUM_bsstype_infrastructure &&
priv->cap_sup_sta.role != 5) ) {
priv->cap_sup_sta.id != 5) ) {
msg->resultcode.data = P80211ENUM_resultcode_invalid_parameters;
return 0;
}