wl12xx: Set End-of-transaction Flag at Wl127x AP Mode
authorShahar Levi <shahar_levi@ti.com>
Mon, 4 Apr 2011 07:20:39 +0000 (10:20 +0300)
committerLuciano Coelho <coelho@ti.com>
Mon, 2 May 2011 07:25:17 +0000 (10:25 +0300)
End-of-transaction flag should be set when working with
wl127x chip on AP mode.

Thanks Ido Yariv <ido@wizery.com> for the guidance with that.

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

index 0c69e959d0dee5c9341b9698a76c509383c66192..11497a90463b1410e4030400321bea50f4600b89 100644 (file)
@@ -1011,6 +1011,10 @@ static int wl1271_chip_wakeup(struct wl1271 *wl)
                wl1271_debug(DEBUG_BOOT, "chip id 0x%x (1271 PG20)",
                             wl->chip.id);
 
+               /* end-of-transaction flag should be set in wl127x AP mode */
+               if (wl->bss_type == BSS_TYPE_AP_BSS)
+                       wl->quirks |= WL12XX_QUIRK_END_OF_TRANSACTION;
+
                ret = wl1271_setup(wl);
                if (ret < 0)
                        goto out;