/* This function converts Tx/Rx rates from the Marvell WLAN format (see Table 2 in Section 3.1) to IEEE80211_RADIOTAP_RATE units (500 Kb/s)  */
static u8 convert_mv_rate_to_radiotap(u8 rate)
/* This function converts Tx/Rx rates from the Marvell WLAN format (see Table 2 in Section 3.1) to IEEE80211_RADIOTAP_RATE units (500 Kb/s)  */
static u8 convert_mv_rate_to_radiotap(u8 rate)
{
	switch (rate) {
	case 0:
		return 2;
	case 1:
		return 4;
	case 2:
		return 11;
	case 3:
		return 22;
	case 5:
		return 12;
	case 6:
		return 18;
	case 7:
		return 24;
	case 8:
		return 36;
	case 9:
		return 48;
	case 10:
		return 72;
	case 11:
		return 96;
	case 12:
		return 108;
	}
	lbs_pr_alert("Invalid Marvell WLAN rate %i\n", rate);
	return 0;
}