/* To recreate the curves we read here the points and interpolate later. Note that in most cases only 2 (higher and lower) curves are used (like RF5112) but vendors have the oportunity to include all 4 curves on eeprom. The final curve (higher power) has an extra point for better accuracy like RF5112.  */
static unsigned int ath5k_pdgains_size_2413(struct ath5k_eeprom_info *ee, unsigned int mode)
/* To recreate the curves we read here the points and interpolate later. Note that in most cases only 2 (higher and lower) curves are used (like RF5112) but vendors have the oportunity to include all 4 curves on eeprom. The final curve (higher power) has an extra point for better accuracy like RF5112.  */
static unsigned int ath5k_pdgains_size_2413(struct ath5k_eeprom_info *ee, unsigned int mode)
{
	static const unsigned int pdgains_size[] = { 4, 6, 9, 12 };
	unsigned int sz;
	sz = pdgains_size[ee->ee_pd_gains[mode] - 1];
	sz *= ee->ee_n_piers[mode];
	return sz;
}