]> git.baikalelectronics.ru Git - kernel.git/commit
rtl8180: fix wrong parameter in sa2400_rf_set_channel
authorAndrea Merello <andreamrl@tiscali.it>
Sat, 10 May 2008 11:30:12 +0000 (13:30 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 28 May 2008 20:43:38 +0000 (16:43 -0400)
commit6c9401420cc3e23dd79353bd3b89fb74f15beb20
treeb53f61039d2bf7c6e1ba3ca0ad40ed949aed29e6
parent3e72952945f2dfb21082e92f65e2365368bce85b
rtl8180: fix wrong parameter in sa2400_rf_set_channel

The sa2400 RF code needs to invoke sa2400_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_sa2400.c