wl12xx: set max_sched_scan_ie_len correctly
authorLuciano Coelho <coelho@ti.com>
Tue, 27 Sep 2011 13:22:35 +0000 (16:22 +0300)
committerLuciano Coelho <coelho@ti.com>
Fri, 7 Oct 2011 05:31:44 +0000 (08:31 +0300)
The wiphy max_sched_scan_ie_len attribute was not set correctly and
remained as 0, so when IEs were being passed in a scheduled scan, we
were returning -EINVAL.

Fix this by setting the attribute properly.

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

index e2d6edd..b1b405b 100644 (file)
@@ -4679,6 +4679,9 @@ int wl1271_init_ieee80211(struct wl1271 *wl)
        wl->hw->wiphy->max_scan_ie_len = WL1271_CMD_TEMPL_DFLT_SIZE -
                        sizeof(struct ieee80211_header);
 
+       wl->hw->wiphy->max_sched_scan_ie_len = WL1271_CMD_TEMPL_DFLT_SIZE -
+               sizeof(struct ieee80211_header);
+
        wl->hw->wiphy->flags |= WIPHY_FLAG_AP_UAPSD;
 
        /* make sure all our channels fit in the scanned_ch bitmask */