diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2016-12-19 11:52:52 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-12-30 13:34:19 +0200 |
commit | bc0077053948cdc4705a7b190459904c7c0fe086 (patch) | |
tree | 78f3a6599bbdab488a9438bcb834b049fc705e2d /drivers/net | |
parent | 8845254112ac139445bc039952ddcc43b2b122da (diff) |
rt2800: warn if doing VCO recalibration for unknow RF chip
Since we reset TX_PIN_CFG register, we have to finish recalibration.
Warn if this is not possible.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index 81da77161730..017cbbd16a07 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -4346,6 +4346,8 @@ void rt2800_vco_calibration(struct rt2x00_dev *rt2x00dev) rt2800_rfcsr_write(rt2x00dev, 3, rfcsr); break; default: + WARN_ONCE(1, "Not supported RF chipet %x for VCO recalibration", + rt2x00dev->chip.rf); return; } |