> Lorenzo Bianconi <lorenzo.bianconi@xxxxxxxxxx> writes: > > >> > >> Lorenzo Bianconi <lorenzo.bianconi@xxxxxxxxxx> writes: > >> > >> >> Lorenzo Bianconi <lorenzo.bianconi@xxxxxxxxxx> writes: > >> >> > >> >> > Report correct eeprom per channel power value. > >> >> > Fix chan_vs_power map in mt76x0_get_power_info routine > >> >> > > >> >> > Fixes: f2a2e819d672 ("mt76x0: remove eeprom dependency from mt76x0_get_power_info") > >> >> > Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@xxxxxxxxxx> > >> >> > >> >> So what's the actual bug this fixes? The commit log is not really clear > >> >> on that. Wondering because you marked this for wireless-drivers. > >> > > >> > Hi Kalle, > >> > > >> > You are right, I have been not so clear in the commit log. > >> > Offsets in chan_map were wrong since mt76x02_eeprom_get() reads at even addresses. > >> > Moreover 'if' condition in the for loop was wrong (chan->hw_value and > >> > chan_map[i].chan were swapped) > >> > >> But how does this affect from user's point of view? I mean what feature > >> is broken and how does this fix that? > >> > >> -- > >> Kalle Valo > > > > mt76x0_get_power_info() is used to read from eeprom the global max tx > > power according to the operating channel. > > mt76x02_eeprom_get() reads just at even addresses and it reports -1 > > for odd ones (so offset must be a even). > > This issue will affect the tx power that userspace is able to configure. > > Do you think it is better to merge it in wireless-drivers-next? > > Ok, I think this is fine for wireless-drivers. I just want to understand > the bug being fixed before I apply the patch to w-d. > > If no objections I'll queue this for 5.0. ack, thx. I will be more clear next time :) Regards, Lorenzo > > -- > Kalle Valo