[PATCH] zd1211rw: Make CCK gain patching conditional on RF type
authorDaniel Drake <dsd@gentoo.org>
Thu, 24 May 2007 00:07:15 +0000 (01:07 +0100)
committerJeff Garzik <jeff@garzik.org>
Mon, 9 Jul 2007 02:16:37 +0000 (22:16 -0400)
commitaaf83d4fc4a596929306c894d341e17fbdfba758
treecf54c8bcc0d8be6b895e754f6cff6f9681b759ee
parent4481d6093e62e168ab06e9bbb4e67a9bebb8c7f7
[PATCH] zd1211rw: Make CCK gain patching conditional on RF type

The vendor driver code suggests that CR47 patching happens on every channel
change for every RF (depending on bit 8 in POD).

Due to a bug in their driver (upper bits of RF_Mode get zeroed out, then
are examined for 1s when setting some other flags), this isn't actually
what happens, and their generic CCK patching routine never takes effect.

Some of their RF configurations do include explicit (duplicated) code
for CR47 patching though. This patch makes zd1211rw match that
behaviour.

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/zd1211rw/zd_chip.c
drivers/net/wireless/zd1211rw/zd_rf.h
drivers/net/wireless/zd1211rw/zd_rf_al2230.c
drivers/net/wireless/zd1211rw/zd_rf_al7230b.c