summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/wl12xx/rx.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2012-02-06 10:47:54 (GMT)
committerLuciano Coelho <coelho@ti.com>2012-02-15 06:38:35 (GMT)
commit3fcdab7066a31ae90ac2beba7d38e8e606374998 (patch)
tree17cec887b8fa6dc97c31ce0d5c820f9874cfc888 /drivers/net/wireless/wl12xx/rx.c
parentf95f9aad150238236b2338efa60a14891081026e (diff)
downloadlinux-fsl-qoriq-3fcdab7066a31ae90ac2beba7d38e8e606374998.tar.xz
wl12xx: Use a dedicated fw for PLT
A special PLT firmware is used for calibration. Add multiple fw support by introducing a new fw_type member, representing the currently saved fw (the actual fw state can be determined by wl->state). Signed-off-by: Gery Kahn <geryk@ti.com> Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/rx.c')
-rw-r--r--drivers/net/wireless/wl12xx/rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/rx.c b/drivers/net/wireless/wl12xx/rx.c
index 4fbd2a7..cfa6071 100644
--- a/drivers/net/wireless/wl12xx/rx.c
+++ b/drivers/net/wireless/wl12xx/rx.c
@@ -113,7 +113,7 @@ static int wl1271_rx_handle_data(struct wl1271 *wl, u8 *data, u32 length,
* In PLT mode we seem to get frames and mac80211 warns about them,
* workaround this by not retrieving them at all.
*/
- if (unlikely(wl->state == WL1271_STATE_PLT))
+ if (unlikely(wl->plt))
return -EINVAL;
/* the data read starts with the descriptor */