On Wed, 2024-04-03 at 12:30 +0200, Felix Fietkau wrote: > > From: Peter Chiu <chui-hao.chiu@xxxxxxxxxxxx> > > Add pre-calibration for mt7986 and mt7916. It has different data size > with mt7915. Group cal needs 54k and 94k for 2G + 5G and 2G + 6G, > respectively. DPD cal needs 300k. > > Signed-off-by: Peter Chiu <chui-hao.chiu@xxxxxxxxxxxx> > Signed-off-by: StanleyYP Wang <StanleyYP.Wang@xxxxxxxxxxxx> > Signed-off-by: Felix Fietkau <nbd@xxxxxxxx> > --- [...] > -static int mt7915_dpd_freq_idx(u16 freq, u8 bw) > +static int mt7915_dpd_freq_idx(struct mt7915_dev *dev, u16 freq, u8 bw) > { > - static const u16 freq_list[] = { > + const u16 freq_list_v1[] = { > 5180, 5200, 5220, 5240, > 5260, 5280, 5300, 5320, > 5500, 5520, 5540, 5560, > 'static const' would be better than 'const', because 'static const' is only a copy of rodata, but 'const' is a copy of rodata plus a local copy in stack.