]> git.baikalelectronics.ru Git - kernel.git/commit
rtl8180: fix wrong parameter in grf5101_rf_set_channel
authorAndrea Merello <andrea.merello@gmail.com>
Sat, 10 May 2008 11:34:16 +0000 (13:34 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 28 May 2008 20:43:40 +0000 (16:43 -0400)
commitcae1bab0b7852a66ce05fd18979734e7958d1f62
treed544beec5d609c67ab3ffa8598455605c2c3c35c
parentb75b92a03d0aa2d1edd88322034eb0efa7f5166f
rtl8180: fix wrong parameter in grf5101_rf_set_channel

The grf5101 RF code needs to invoke grf5101_write_phy_antenna every time the
channel is being switch.

This should be done passing the channel number to that function.
Incorrectly we were passing the same value that is written on the
channel RF register.
This may cause problems when operating on ch 14.

This patch fixes it.

Thanks to Alessandro Di Marco who found this issue!

Signed-off-by: Andrea Merello <andreamrl@tiscali.it>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl8180_grf5101.c