]> git.baikalelectronics.ru Git - kernel.git/commit
mt7601u: don't warn about devices without per-rate power table
authorJakub Kicinski <kubakici@wp.pl>
Wed, 10 Jun 2015 18:10:09 +0000 (20:10 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 15 Jun 2015 09:49:35 +0000 (12:49 +0300)
commit918efba173e4bda30a05e90135dd7c281ff1a335
treea64d713b67481abfc04de23566c2ab00c45d1744
parent97a36f4bfc5760e5d939c495efde4bc5e50cfadd
mt7601u: don't warn about devices without per-rate power table

We expect EEPROM per-rate power table to be filled with
s6 values and warn user if values are invalid.  However,
there appear to be devices which don't have this section
of EEPROM initialized.  In such case we should ignore
the values and leave the driver power tables set to zero.

Note that vendor driver doesn't care about this case but
mt76x2 skips 0xff per value.  We take mt76x2's approach.

Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt7601u/eeprom.c