Modified a few handlers for mibitems in mibset_mibget function. Added new API enhancement RID #define's to header file.

This commit is contained in:
joellen 2000-01-31 03:20:10 +00:00
parent a5d1388fe3
commit 58384a6b67
2 changed files with 45 additions and 14 deletions

View File

@ -445,6 +445,42 @@ Information RID Lengths: Modem Information
#define HFA384x_RID_CCAMODE_LEN (0)
#define HFA384x_RID_SUPPORTEDDATARATES_LEN (0)
======================================================================
API ENHANCEMENTS (NOT ALREADY IMPLEMENTED)
======================================================================
#define HFA384x_RID_CNFWEPDEFAULTKEYID (0xFC23)
#define HFA384x_RID_CNFWEPDEFAULTKEY0 (0xFC24)
#define HFA384x_RID_CNFWEPDEFAULTKEY1 (0xFC25)
#define HFA384x_RID_CNFWEPDEFAULTKEY2 (0xFC26)
#define HFA384x_RID_CNFWEPDEFAULTKEY3 (0xFC27)
#define HFA384x_RID_CNFWEPFLAGS (0xFC28)
#define HFA384x_RID_CNFWEPKEYMAPTABLE (0xFC29)
#define HFA384x_RID_CNFAUTHENTICATION (0xFC2A)
#define HFA384x_RID_CNFMAXASSOCSTATIONS (0xFC2B)
#define HFA384x_RID_CNFTXCONTROL (0xFC2C)
#define HFA384x_RID_CNFROAMINGMODE (0xFC2D)
#define HFA384x_RID_CNFHOSTAUTH (0xFC2E)
#define HFA384x_RID_CNFRCVCRCERROR (0xFC30)
#define HFA384x_RID_CNFMMLIFE (0xFC31)
#define HFA384x_RID_CNFALTRETRYCNT (0xFC32)
#define HFA384x_RID_CNFAPBCNINT (0xFC33)
#define HFA384x_RID_CNFAPPCFINFO (0xFC34)
#define HFA384x_RID_CNFSTAPCFINFO (0xFC35)
#define HFA384x_RID_CNFBASICRATES (0xFCB3)
#define HFA384x_RID_CNFSHORTPREAMBLE (0xFCB0)
#define HFA384x_RID_CNFEXCLONGPREAMBLE (0xFCB1)
#define HFA384x_RID_CNFAUTHRSPTIMEOUT (0xFCB2)
#define HFA384x_RID_SCANREQUEST (0xFCE1)
#define HFA384x_RID_JOINREQUEST (0xFCE2)
#define HFA384x_RID_AUTHENTICATESTA (0xFCE3)
#define HFA384x_RID_CHANNELINFOREQUEST (0xFCE4)
#define HFA384x_RID_SCANRESULTS (0xF101)
#define HFA384x_RID_CHANNELINFORESULTS (0xF102)
#define HFA384x_RID_LINKSTATUS (0xF200)
#define HFA384x_RID_ASSOCIATIONSTATUS (0xF201)
#define HFA384x_RID_AUTHENTICATIONREQ (0xF202)
#define HFA384x_RID_POWERSAVEUSERCNT (0xF203)
/*--------------------------------------------------------------------
PD Record codes
--------------------------------------------------------------------*/
@ -1903,4 +1939,3 @@ static inline int hfa384x_isgood_pdrcode(UINT16 pdrcode)
}
#endif /* _HFA384x_H */

View File

@ -219,13 +219,13 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp)
break;
case DIDmib_dot11smt_dot11StationConfigTable_dot11AuthenticationResponseTimeOut:
if ( isget ) {
result = hfa384x_drvr_getconfig16( hw, HFA384x_RID_PROTOCOLRSPTIME,
result = hfa384x_drvr_getconfig16( hw, HFA384x_RID_CNFAUTHRSPTIMEOUT,
wordbuf);
prism2mgmt_prism2int2p80211int(wordbuf, uint32);
} else {
/* this is read only established by the MAC */
msg->resultcode.data =
P80211ENUM_resultcode_cant_set_readonly_mib;
prism2mgmt_p80211int2prism2int(wordbuf, uint32);
result = hfa384x_drvr_setconfig16( hw, HFA384x_RID_CNFAUTHRSPTIMEOUT,
wordbuf);
}
break;
case DIDmib_dot11smt_dot11StationConfigTable_dot11PrivacyOptionImplemented:
@ -692,15 +692,11 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp)
}
break;
case DIDmib_dot11phy_dot11PhyDSSSTable_dot11ShortPreambleOptionImplemented:
if ( isget ) {
result = hfa384x_drvr_getconfig16( hw, HFA384x_RID_CNFSHORTPREAMBLE,
wordbuf);
prism2mgmt_prism2int2p80211int(wordbuf, uint32);
} else {
prism2mgmt_p80211int2prism2int(wordbuf, uint32);
result = hfa384x_drvr_setconfig16( hw, HFA384x_RID_CNFSHORTPREAMBLE,
wordbuf);
}
/* TODO: Find out the firmware version number(s) for identifying
whether the firmware is capable of short preamble. TRUE or FALSE
will be returned based on the version of the firmware. For now,
set resultcode.data to "not supported" */
msg->resultcode.data = P80211ENUM_resultcode_not_supported;
break;
case DIDmib_dot11phy_dot11PhyDSSSTable_dot11PBCCOptionImplemented:
/* TODO: Need to locate RID and place it here */