Fixed i,j loop in initmac()

This commit is contained in:
mark 2000-05-04 00:24:59 +00:00
parent 7b24c9b69f
commit 627cfda659
2 changed files with 6 additions and 5 deletions

View File

@ -728,6 +728,7 @@ int prism2sta_initmac(wlandevice_t *wlandev)
hfa384x_t *hw = priv->hw;
UINT16 reg;
int i;
int j;
UINT8 snum[12];
DBFENTER;
@ -763,13 +764,13 @@ int prism2sta_initmac(wlandevice_t *wlandev)
WLAN_LOG_ERROR0("Allocate(tx) command failed.\n");
goto failed;
}
i = 0;
j = 0;
do {
reg = wlan_inw_le16_to_cpu(HFA384x_EVSTAT(hw->iobase));
udelay(10);
i++;
} while ( !HFA384x_INTEN_ISALLOC(reg) && i < 50); /* 50 is timeout */
if ( i >= 50 ) {
j++;
} while ( !HFA384x_INTEN_ISALLOC(reg) && j < 50); /* 50 is timeout */
if ( j >= 50 ) {
WLAN_LOG_ERROR0("Timed out waiting for evalloc(tx).\n");
result = -ETIMEDOUT;
goto failed;

View File

@ -63,7 +63,7 @@
#define MAX_GRP_ADDR (32)
#define MAX_PRISM2_GRP_ADDR (16)
#define P2_DSCP_MAX (64)
#define PRISM2_FIDSTACKLEN_MAX (10)
#define PRISM2_FIDSTACKLEN_MAX (20)
#define MM_SAT_PCF (BIT14)
#define MM_GCSD_PCF (BIT15)