int ipw2100_get_fwversion(struct ipw2100_priv *priv, char *buf, size_t max)
static int ipw2100_get_fwversion(struct ipw2100_priv *priv, char *buf, size_t max)
int ipw2100_get_fwversion(struct ipw2100_priv *priv, char *buf, size_t max){	char ver[MAX_FW_VERSION_LEN];	u32 len = MAX_FW_VERSION_LEN;	u32 tmp;	int i;	/* firmware version is an ascii string (max len of 14) */	if (ipw2100_get_ordinal(priv, IPW_ORD_STAT_FW_VER_NUM,				ver, &len))		return -EIO;	tmp = max;	if (len >= max)		len = max - 1;	for (i = 0; i < len; i++)		buf[i] = ver[i];	buf[i] = '\0';	return tmp;}