wlcore/wl12xx/wl18xx: don't use TX align quirk for wl127x
authorLuciano Coelho <coelho@ti.com>
Mon, 4 Jun 2012 21:02:25 +0000 (00:02 +0300)
committerLuciano Coelho <coelho@ti.com>
Tue, 5 Jun 2012 13:07:16 +0000 (16:07 +0300)
commitb5d6d9b28ca1fac178e05f185ee38e9c0770e268
tree32b41a3b7d44344c0253453e912e55db3a416f81
parent3d62eb5a7eb8d0be68442e119583508926731887
wlcore/wl12xx/wl18xx: don't use TX align quirk for wl127x

Commit 4afc37 (wlcore: reorder identify_chip and get_hw_info) broke
support for wl127x chips.

When we moved the identify_chip operation to an earlier stage (ie. to
the probe function), we broke wl127x support because during HW init we
would set the WLCORE_QUIRK_TX_BLOCKSIZE_ALIGN.

To avoid this, set this quirk in the identify_chip operations and only
force it to be unset if the bus module doesn't support it.  We were
doing the opposite and setting the flag if the bus module supports it.

Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wl12xx/main.c
drivers/net/wireless/ti/wl18xx/main.c
drivers/net/wireless/ti/wlcore/main.c