wl12xx: fix station channel switch
authorVictor Goldenshtein <victorg@ti.com>
Mon, 12 Mar 2012 14:36:48 +0000 (16:36 +0200)
committerLuciano Coelho <coelho@ti.com>
Tue, 10 Apr 2012 09:13:35 +0000 (12:13 +0300)
Channel switch complete event wasn't handled
properly in station mode, as we checked wrong
CS flag.

Signed-off-by: Victor Goldenshtein <victorg@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/event.c

index c953717f38ebab69ed3acdbd117563925916a139..60e6f27566aa6ca2fe719076ceea1f67ccaeb9f1 100644 (file)
@@ -196,7 +196,7 @@ static int wl1271_event_process(struct wl1271 *wl, struct event_mailbox *mbox)
                        bool success;
 
                        if (!test_and_clear_bit(WLVIF_FLAG_CS_PROGRESS,
-                                               &wl->flags))
+                                               &wlvif->flags))
                                continue;
 
                        success = mbox->channel_switch_status ? false : true;