Fixed sytnax errors in SetGroupAddress.

This commit is contained in:
joellen 2000-01-26 20:55:30 +00:00
parent d654be6f5a
commit fe80cb0fa5
1 changed files with 4 additions and 5 deletions

View File

@ -553,9 +553,9 @@ int prism2mgmt_mibset_mibget(wlandevice_t *wlandev, void *msgp)
prism2mgmt_GetGroupAddress(mibitem->did,
pstr, priv );
} else {
if (result = prism2mgmt_SetGroupAddress(mibitem->did, bytebuf,
pstr, priv ) == 0 ) {
if ( (priv->cnt) <= 16 ) {
if ( (result = prism2mgmt_SetGroupAddress(mibitem->did, bytebuf,
pstr, priv)) == 0 ) {
if ( (priv->grpcnt) <= MAX_GRP_ADDR ) {
memcpy( bytebuf,
priv->GroupAddresses[0],
((priv->grpcnt) * WLAN_ADDR_LEN));
@ -1623,7 +1623,6 @@ int prism2mgmt_SetGroupAddress(UINT32 did, UINT8 *prism2buf,
p80211pstrd_t *pstr, prism2sta_priv_t *priv )
{
UINT8 no_addr[WLAN_ADDR_LEN];
int i;
int index;
int result;
@ -1635,7 +1634,7 @@ int prism2mgmt_SetGroupAddress(UINT32 did, UINT8 *prism2buf,
trying to add more than the maximum allowed
number of group addresses in the list */
if ( memcmp(no_addr, pstr->data, WLAN_ADDR_LEN) != 0) {
if ( priv->grpcnt < MAX ) {
if ( priv->grpcnt < MAX_GRP_ADDR ) {
memcpy( priv->GroupAddresses[priv->grpcnt],
pstr->data, WLAN_ADDR_LEN);
priv->grpcnt += 1;