Fixed last of the few bugs as a result of testing mibset_mibget.

This commit is contained in:
joellen 2000-01-28 02:56:13 +00:00
parent 62aa7f9e7b
commit d011a76bd3
1 changed files with 21 additions and 55 deletions

View File

@ -557,8 +557,6 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp)
case DIDmib_dot11mac_dot11GroupAddressesTable_dot11Address30:
case DIDmib_dot11mac_dot11GroupAddressesTable_dot11Address31:
case DIDmib_dot11mac_dot11GroupAddressesTable_dot11Address32:
/*TODO: change this code to call support functions
for handling group addresses */
if ( isget ) {
prism2mgmt_GetGroupAddress(mibitem->did,
pstr, priv );
@ -619,15 +617,10 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp)
}
break;
case DIDmib_dot11phy_dot11PhyOperationTable_dot11CurrentRegDomain:
if ( isget ) {
result = hfa384x_drvr_getconfig16( hw, HFA384x_RID_REGULATORYDOMAINS,
wordbuf);
prism2mgmt_prism2int2p80211int(wordbuf, uint32);
} else {
/* this is read only established by the MAC */
msg->resultcode.data =
P80211ENUM_resultcode_cant_set_readonly_mib;
}
/* TODO: wlan has this set up as an enumerated type. However,
it can have multiple values, i.e. a list of domains. Need
to add support. For now, it's not supported */
msg->resultcode.data = P80211ENUM_resultcode_not_supported;
break;
case DIDmib_dot11phy_dot11PhyOperationTable_dot11TempType:
/* This is an enumerated type. The Prism2 enumerated values
@ -656,6 +649,7 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp)
/* Need to determine if this is read only or if we do something
here; it depends on the RID */
}
msg->resultcode.data = P80211ENUM_resultcode_not_supported;
break;
case DIDmib_dot11phy_dot11PhyOperationTable_dot11ChannelAgilityEnabled:
/*TODO: we need to locate RID and place it here */
@ -671,6 +665,7 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp)
/* Need to determine if this is read only or if we do something
here; it depends on the RID */
}
msg->resultcode.data = P80211ENUM_resultcode_not_supported;
break;
case DIDmib_dot11phy_dot11PhyDSSSTable_dot11CurrentChannel:
if ( isget ) {
@ -719,66 +714,37 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp)
/* Need to determine if this is read only or if we do something
here; it depends on the RID */
}
msg->resultcode.data = P80211ENUM_resultcode_not_supported;
break;
case DIDmib_dot11phy_dot11RegDomainsSupportedTable_dot11RegDomainsSupportIndex:
/* TODO: I'm confused as to what to do with this data item */
/* for now, set resultcode.data to "not supported" */
/* TODO: add support for this data item. For now, set
resultcode.data to "not supported" */
msg->resultcode.data = P80211ENUM_resultcode_not_supported;
break;
case DIDmib_dot11phy_dot11RegDomainsSupportedTable_dot11RegDomainsSupportValue:
/* TODO: need to investigate why wlan has this as enumerated and
Prism2 has this as btye str */
/* This is an enumerated type. The Prism2 enumerated values
are a 1-to-1 match against the wlan enumerated values for this item */
if ( isget ) {
result = hfa384x_drvr_getconfig16( hw, HFA384x_RID_REGULATORYDOMAINS,
wordbuf);
prism2mgmt_prism2int2p80211int(wordbuf, uint32);
} else {
/* this is read only established by the MAC */
msg->resultcode.data =
P80211ENUM_resultcode_cant_set_readonly_mib;
}
Prism2 has this as btye str. For now, not supported */
msg->resultcode.data = P80211ENUM_resultcode_not_supported;
break;
case DIDmib_dot11phy_dot11SupportedDataRatesTxTable_dot11SupportedDataRatesTxIndex:
/* TODO: I'm confused as to what to do with this data item */
/* for now, set resultcode.data to "not supported" */
/* TODO: add support for this data item. For now, set
resultcode.data to "not supported" */
msg->resultcode.data = P80211ENUM_resultcode_not_supported;
break;
case DIDmib_dot11phy_dot11SupportedDataRatesTxTable_dot11SupportedDataRatesTxValue:
/* TODO: need to investigate why wlan has this as enumerated and
Prism2 has this as btye str */
/* This is an enumerated type. The Prism2 enumerated values
are a 1-to-1 match against the wlan enumerated values for this item */
if ( isget ) {
result = hfa384x_drvr_getconfig16( hw, HFA384x_RID_SUPPORTEDDATARATES,
wordbuf);
prism2mgmt_prism2int2p80211int(wordbuf, uint32);
} else {
/* this is read only established by the MAC */
msg->resultcode.data =
P80211ENUM_resultcode_cant_set_readonly_mib;
}
/* TODO: add support for this data item. For now, set
resultcode.data to "not supported" */
msg->resultcode.data = P80211ENUM_resultcode_not_supported;
break;
case DIDmib_dot11phy_dot11SupportedDataRatesRxTable_dot11SupportedDataRatesRxIndex:
/* TODO: I'm confused as to what to do with this data item */
/* for now, set resultcode.data to "not supported" */
/* TODO: add support for this data item. For now, set
resultcode.data to "not supported" */
msg->resultcode.data = P80211ENUM_resultcode_not_supported;
break;
case DIDmib_dot11phy_dot11SupportedDataRatesRxTable_dot11SupportedDataRatesRxValue:
/* TODO: need to investigate why wlan has this as enumerated and
Prism2 has this as btye str */
/* This is an enumerated type. The Prism2 enumerated values
are a 1-to-1 match against the wlan enumerated values for this item */
if ( isget ) {
result = hfa384x_drvr_getconfig16( hw, HFA384x_RID_SUPPORTEDDATARATES,
wordbuf);
prism2mgmt_prism2int2p80211int(wordbuf, uint32);
} else {
/* this is read only established by the MAC */
msg->resultcode.data =
P80211ENUM_resultcode_cant_set_readonly_mib;
}
/* TODO: add support for this data item. For now, set
resultcode.data to "not supported" */
msg->resultcode.data = P80211ENUM_resultcode_not_supported;
break;
/* These items are not supported at this time */
case DIDmib_dot11smt_dot11WEPDefaultKeysTable_dot11WEPDefaultKeyIndex: