]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
wl12xx: don't use WL1271_SCAN_OPT_PRIORITY_HIGH flag
authorEliad Peller <eliad@wizery.com>
Sun, 28 Aug 2011 12:11:54 +0000 (15:11 +0300)
committerLuciano Coelho <coelho@ti.com>
Wed, 14 Sep 2011 08:47:26 +0000 (11:47 +0300)
When setting the WL1271_SCAN_OPT_PRIORITY_HIGH flag, the
driver requests a scan *now*, and the fw doesn't enter psm
before scanning, which in turn might cause packets loss.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/scan.c

index af4ad2353f59ef45ddc897a299529ee7748f3a24..b2e2abd400455274a2d9fb5e572820bbf226f1d6 100644 (file)
@@ -164,9 +164,6 @@ static int wl1271_scan_send(struct wl1271 *wl, enum ieee80211_band band,
                goto out;
        }
 
-       /* We always use high priority scans */
-       scan_options = WL1271_SCAN_OPT_PRIORITY_HIGH;
-
        /* No SSIDs means that we have a forced passive scan */
        if (passive || wl->scan.req->n_ssids == 0)
                scan_options |= WL1271_SCAN_OPT_PASSIVE;